Exemple #1
0
        /// <summary>
        /// Leaves/Deletes a group chat asynchronously.
        /// </summary>
        /// <param name="roomId">The chat room id.</param>
        /// <param name="parameters">The action parameters.</param>
        /// <returns>The response data.</returns>
        public async Task <ResponseData <object> > DeleteRoomAsync(long roomId, ParametersType parameters)
        {
            var path = string.Format(CultureInfo.InvariantCulture, Path.Room, roomId);

            return(await Communicator.CreateDeleteTask <object, ParametersType>(path, parameters)
                   .ConfigureAwait(false));
        }
Exemple #2
0
        /// <summary>
        /// Leaves/Deletes a group chat.
        /// </summary>
        /// <param name="roomId">The chat room id.</param>
        /// <param name="parameters">The action parameters.</param>
        /// <returns>The response data.</returns>
        public ResponseData <object> DeleteRoom(long roomId, ParametersType parameters)
        {
            var path = string.Format(CultureInfo.InvariantCulture, Path.Room, roomId);

            return(Communicator.Delete <object, ParametersType>(path, parameters));
        }
Exemple #3
0
 /// <summary>
 /// Leaves/Deletes a group chat asynchronously.
 /// </summary>
 /// <param name="token">The API token.</param>
 /// <param name="callback">The callback action.</param>
 /// <param name="roomId">The chat room id.</param>
 /// <param name="parameters">The action parameters.</param>
 public static async void DeleteRoomAsync(string token, Action <ResponseData <object> > callback, long roomId, ParametersType parameters)
 {
     var path = string.Format(CultureInfo.InvariantCulture, Path.Room, roomId);
     await APICommunicator.CreateDeleteTask(token, callback, path, parameters)
     .ConfigureAwait(false);
 }