Ejemplo n.º 1
0
//--------------------------------------------------------------------------------------

        /// <summary>
        ///     Get list of tasks added to a project.
        /// </summary>
        /// <param name="project_id">The project_id is the identifier of the project.</param>
        /// <param name="parameters">
        ///     The parameters is the Dictionary object which contains the filters in the form of key,value pair to refine the
        ///     list.<br></br>The possible filters are listed below<br></br>
        ///     <table>
        ///         <tr>
        ///             <td>sort_column</td>
        ///             <td>
        ///                 Sort tasks<br></br>Allowed Values: <i>task_name, billed_hours, log_time</i> and <i>un_billed_hours</i>
        ///             </td>
        ///         </tr>
        ///     </table>
        /// </param>
        /// <returns>TasksList object.</returns>
        public TaskList GetTasks(string project_id, Dictionary <object, object> parameters)
        {
            var url      = baseAddress + "/" + project_id + "/tasks";
            var responce = ZohoHttpClient.get(url, getQueryParameters(parameters));

            return(ProjectParser.gatTaskList(responce));
        }