protected CardChangeCheckItemRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, string resource) : base(card, "checklist/{idCheckList}/checkItem/{idCheckItem}/" + resource, Method.PUT) { Guard.NotNull(checkList, "checkList"); Guard.NotNull(checkItem, "checkItem"); AddParameter("idCheckList", checkList.GetChecklistId(), ParameterType.UrlSegment); AddParameter("idCheckItem", checkItem.GetCheckItemId(), ParameterType.UrlSegment); }
public ChecklistsRequest(IChecklistId checklist, string resource = "", Method method = Method.GET) : base("checklists/{checkListId}/" + resource, method) { Guard.NotNull(checklist, "checklist"); AddParameter("checkListId", checklist.GetChecklistId(), ParameterType.UrlSegment); }
public CardsRemoveChecklistRequest(ICardId card, IChecklistId checklist) : base(card, "checklists/{idChecklist}", Method.DELETE) { Guard.NotNull(checklist, "checklist"); AddParameter("idChecklist", checklist.GetChecklistId(), ParameterType.UrlSegment); }
public ChecklistRequest(IChecklistId checklistId, string resource = "") : base("checklists/{checkListId}/" + resource) { AddParameter("checkListId", checklistId.GetChecklistId(), ParameterType.UrlSegment); }
public CardsAddChecklistRequest(ICardId card, IChecklistId checklist) : base(card, "checklists", Method.POST) { Guard.NotNull(checklist, "checklist"); this.AddValue(checklist.GetChecklistId()); }