Пример #1
0
        /// <summary>
        /// Get workflow groups and jobs per location. This call will return all groups available to the user.
        /// Group header only contains essential information for displaying the number of jobs to do, total number of orders in the group. Things like Conditions and Action lists are not returned as part of this call.
        /// Jobs - only header of a job is returned, actual list of order ids will be empty in this call. You will need to use GetJob to get actual list of orders allocated to the job
        /// </summary>
        /// <param name="request">Get workflow request</param>
        /// <returns>List of workflow groups with jobs</returns>
        public GetWorkflowResponse GetWorkflow(GetWorkflowRequest request)
        {
            var response = GetResponse("OrderWorkflow/GetWorkflow", "request=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(request)) + "");

            return(JsonFormatter.ConvertFromJson <GetWorkflowResponse>(response));
        }
Пример #2
0
 public static GetWorkflowResponse GetWorkflow(GetWorkflowRequest request, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <GetWorkflowResponse>(Factory.GetResponse("OrderWorkflow/GetWorkflow", "request=" + Newtonsoft.Json.JsonConvert.SerializeObject(request, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
Пример #3
0
        /// <summary>
        /// Get workflow groups and jobs per location. This call will return all groups available to the user.
        /// Group header only contains essential information for displaying the number of jobs to do, total number of orders in the group. Things like Conditions and Action lists are not returned as part of this call.
        /// Jobs - only header of a job is returned, actual list of order ids will be empty in this call. You will need to use GetJob to get actual list of orders allocated to the job
        /// </summary>
        /// <param name="request">Get workflow request</param>
        /// <returns>List of workflow groups with jobs</returns>
        public GetWorkflowResponse GetWorkflow(GetWorkflowRequest request)
        {
            var response = GetResponse("OrderWorkflow/GetWorkflow", "request=" + JsonFormatter.ConvertToJson(request) + "");

            return(JsonFormatter.ConvertFromJson <GetWorkflowResponse>(response));
        }