Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class ChatHelper

    That will let you share a link to initiate a chat

    Inheritance
    object
    ChatHelper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    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
    string myLink
    Returns
    Type Description
    int

    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;
     }
    ///
    In this article
    Back to top Secure Exchanges Inc. - Documentation