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);
		}
        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);
        }
示例#3
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 public ChecklistRequest(IChecklistId checklistId, string resource = "")
     : base("checklists/{checkListId}/" + resource)
 {
     AddParameter("checkListId", checklistId.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 CardsAddChecklistRequest(ICardId card, IChecklistId checklist)
     : base(card, "checklists", Method.POST)
 {
     Guard.NotNull(checklist, "checklist");
     this.AddValue(checklist.GetChecklistId());
 }
示例#9
0
		public CardsAddChecklistRequest(ICardId card, IChecklistId checklist)
			: base(card, "checklists", Method.POST)
		{
			Guard.NotNull(checklist, "checklist");
			this.AddValue(checklist.GetChecklistId());
		}