inviteGuest

suspend fun inviteGuest(    context: Context,     phoneNumber: String,     firstName: String,     lastName: String,     email: String? = null,     details: String? = null,     stwContactList: List<STWContact>? = null,     sendMethod: Int): ApiResult<STWContact?>

Call this method to invite a Guest

Parameters

context

Context: The application context

phoneNumber

String: The guest international phone number

firstName

String: The guest first name

lastName

String: The guest last name

email

String: The guest email

details

String: additional details to be sent with the invitation

stwContactList

{@link List} of {@link STWContact} The list of contacts that exist in the conversation

sendMethod
    {@link STWInviteGuestMode}: send method
        
            {@link STWInviteGuestMode#BY_SMS}: to send invitation by SMS/li>
            {@link STWInviteGuestMode#BY_EMAIL} : to send invitation by Email/li>
            {@link STWInviteGuestMode#BOTH} : to send invitation by SMS and Email/li>
            {@link STWInviteGuestMode#NONE} : no send method is defined/li>