invite Guest
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?>
Content copied to clipboard
Call this method to invite a Guest
Parameters
context
Context: The application context
phone Number
String: The guest international phone number
first Name
String: The guest first name
last Name
String: The guest last name
email
String: The guest email
details
String: additional details to be sent with the invitation
stw Contact List
{@link List} of {@link STWContact} The list of contacts that exist in the conversation
send Method
{@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>Content copied to clipboard