public SetWorkflowItemPositionRequest(WorkflowItem workflowItem) { this.Position = new Position(workflowItem.Position.X, workflowItem.Position.Y); RestUrl = String.Format("/workflowitems/{0}/position", workflowItem.Id); Method = Method.POST; }
public CreateWorkflowItemRequest(int workflowId, WorkflowItem workflowItem) { Type = workflowItem.Type; Position = new Position(workflowItem.Position.X, workflowItem.Position.Y); RestUrl = String.Format("/workflows/{0}/workflowitems", workflowId); Method = Method.PUT; }