inviteGuest

open fun inviteGuest(    @NonNull context: Context,     @NonNull phoneNumber: String,     @NonNull firstName: String,     @NonNull lastName: String,     @Nullable email: String,     @Nullable details: String,     @Nullable recipientPhonesList: List<PhoneItem>,     @Nullable recipientContactList: List<ContactItem>,     sendMethod: Int,     @Nullable inviteGuestCallback: STWInviteGuestCallback)

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

recipientPhonesList

List of PhoneItem The list of international phone numbers that exist in the conversation

recipientContactList

List of ContactItem The list of groups that exist in the conversation

sendMethod

STWInviteGuestMode: send method

  • BY_SMS: to send invitation by SMS/li>
  • BY_EMAIL : to send invitation by Email/li>
  • BOTH : to send invitation by SMS and Email/li>
  • NONE : no send method is defined/li>
inviteGuestCallback

STWInviteGuestCallback: callback to receive invited guest details