Ejemplo n.º 1
0
        /// <summary>
        /// Gets the list of tasks associated with the specified chat asynchronously.
        /// </summary>
        /// <param name="roomId">The chat room id.</param>
        /// <param name="parameters">The task's condition parameters.</param>
        /// <returns>The response data.</returns>
        public async Task <ResponseData <DataType> > GetRoomTasksAsync(long roomId, ParametersType parameters = null)
        {
            var path = string.Format(CultureInfo.InvariantCulture, Path.RoomTasks, roomId);

            return(await Communicator.CreateGetTask <DataType, ParametersType>(path, parameters)
                   .ConfigureAwait(false));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the list of tasks associated with the specified chat.
        /// </summary>
        /// <param name="roomId">The chat room id.</param>
        /// <param name="parameters">The task's condition parameters.</param>
        /// <returns>The response data.</returns>
        public ResponseData <DataType> GetRoomTasks(long roomId, ParametersType parameters = null)
        {
            var path = string.Format(CultureInfo.InvariantCulture, Path.RoomTasks, roomId);

            return(Communicator.Get <DataType, ParametersType>(path, parameters));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the list of tasks associated with the specified 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 task's condition parameters.</param>
 public static async void GetRoomTasksAsync(string token, Action <ResponseData <DataType> > callback, long roomId, ParametersType parameters = null)
 {
     var path = string.Format(CultureInfo.InvariantCulture, Path.RoomTasks, roomId);
     await APICommunicator.CreateGetTask(token, callback, path, parameters)
     .ConfigureAwait(false);
 }