예제 #1
0
        /// <summary>
        /// Disables presence for the specified channel.
        /// </summary>
        /// <param name="url">Server containing the presence service.</param>
        /// <param name="isCluster">Specifies if url is cluster.</param>
        /// <param name="applicationKey">Application key with access to presence service.</param>
        /// <param name="privateKey">The private key provided when the ORTC service is purchased.</param>
        /// <param name="channel">Channel to disable presence.</param>
        public static UnityTask <string> DisablePresence(string url, bool isCluster, string applicationKey, string privateKey, string channel)
        {
            var client = new PresenceClient
            {
                Url            = url,
                IsCluster      = isCluster,
                ApplicationKey = applicationKey,
                PrivateKey     = privateKey,
                Channel        = channel,
            };

            return(client.DisablePresence());
        }
예제 #2
0
        /// <summary>
        /// Gets the subscriptions in the specified channel and if active the first 100 unique metadata.
        /// </summary>
        /// <param name="url">Server containing the presence service.</param>
        /// <param name="isCluster">Specifies if url is cluster.</param>
        /// <param name="authenticationToken">Authentication token with access to presence service.</param>
        /// <param name="applicationKey">Application key with access to presence service.</param>
        /// <param name="channel">Channel with presence data active.</param>
        public static UnityTask <Presence> GetPresence(string url, bool isCluster, string applicationKey, string authenticationToken, string channel)
        {
            var client = new PresenceClient
            {
                Url                 = url,
                IsCluster           = isCluster,
                AuthenticationToken = authenticationToken,
                ApplicationKey      = applicationKey,
                Channel             = channel,
            };

            return(client.GetPresence());
        }
 /// <summary>
 /// Disables presence for the specified channel.
 /// </summary>
 /// <param name="url">Server containing the presence service.</param>
 /// <param name="isCluster">Specifies if url is cluster.</param>
 /// <param name="applicationKey">Application key with access to presence service.</param>
 /// <param name="privateKey">The private key provided when the ORTC service is purchased.</param>
 /// <param name="channel">Channel to disable presence.</param>
 public static UnityTask<string> DisablePresence(string url, bool isCluster, string applicationKey, string privateKey, string channel)
 {
     var client = new PresenceClient
     {
         Url = url,
         IsCluster = isCluster,
         ApplicationKey = applicationKey,
         PrivateKey = privateKey,
         Channel = channel,
     };
     return client.DisablePresence();
 }
 /// <summary>
 /// Gets the subscriptions in the specified channel and if active the first 100 unique metadata.
 /// </summary>
 /// <param name="url">Server containing the presence service.</param>
 /// <param name="isCluster">Specifies if url is cluster.</param>
 /// <param name="authenticationToken">Authentication token with access to presence service.</param>
 /// <param name="applicationKey">Application key with access to presence service.</param>
 /// <param name="channel">Channel with presence data active.</param>
 public static UnityTask<Presence> GetPresence(string url, bool isCluster, string applicationKey, string authenticationToken, string channel)
 {
     var client = new PresenceClient
     {
         Url = url,
         IsCluster = isCluster,
         AuthenticationToken = authenticationToken,
         ApplicationKey = applicationKey,
         Channel = channel,
     };
     return client.GetPresence();
 }