/// <summary> /// This method is used to create new schedules. /// </summary> /// <param name="apiScheduleRequest">Schedule details.</param> /// <returns>Status of adding schedule in server.</returns> public ApiScheduleResponse AddSchedule(ApiScheduleRequest apiScheduleRequest) { var result = _serverClientV3.Post(apiScheduleRequest, _baseUrl + "/reports/schedule"); var response = new ApiScheduleResponse(); if (result != null) { return(JsonConvert.DeserializeObject <ApiScheduleResponse>(result.Content)); } else { return(response); } }
/// <summary> /// This method is used to add new file into the dashboard server. /// </summary> /// <param name="apiFileAdd">File details (File name, File description, Extension and ItemContent) to be added.</param> /// <returns>Status of adding file to the Server</returns> public ApiItemResponse AddFile(ApiFileAdd apiFileAdd) { var result = _serverClientV3.Post(apiFileAdd, _baseUrl + "/files"); var response = new ApiItemResponse(); if (result != null) { return(JsonConvert.DeserializeObject <ApiItemResponse>(result.Content)); } else { return(response); } }