Class ChatHelper
That will let you share a link to initiate a chat
Inheritance
System.Object
ChatHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class ChatHelper
Methods
ShareChatLink(ShareChatLinkArgs, out String)
Share a link by email or by sms, depend of your licence
Declaration
public static int ShareChatLink(ShareChatLinkArgs args, out string myLink)
Parameters
Type | Name | Description |
---|---|---|
ShareChatLinkArgs | args | |
System.String | myLink |
Returns
Type | Description |
---|---|
System.Int32 | return the status 200 = ok, 403 = forbiden and 500 server error |
Examples
string sessionName = coordonate;
if (!string.IsNullOrEmpty(txtSessionName.Text))
{
sessionName = txtSessionName.Text;
}
string myLink;
int success = ChatHelper.ShareChatLink(new SecureExchangesSDK.Models.Args.ShareChatLinkArgs(SettingsHelper.EndPoint, SettingsHelper.Serial, SettingsHelper.UserAPI, SettingsHelper.PswAPI)
{
Coordonate = coordonate,
ShareMode = shareMode,
MyName = OSecureExchange.Properties.Settings.Default.NickName,
SessionName = sessionName,
CultureID = cmbLanguage.SelectedItem.ToString()
}, out myLink);
switch (success)
{
case 200:
System.Diagnostics.Process.Start(myLink); ///
break;
case 500:
// Server error
break;
case 403:
//Unautorized informations
break;
}
///