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 void RemoveCheckItem(IChecklistId checklist, string checkItemId) { _restClient.Request(new ChecklistsRemoveCheckItemRequest(checklist, checkItemId)); }
public void AddCheckItem(IChecklistId checklist, string name) { _restClient.Request(new ChecklistsAddCheckItemRequest(checklist, name)); }
public ChecklistsChangeNameRequest(IChecklistId checklist, string name) : base(checklist, "name", Method.PUT) { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }
public void RemoveChecklist(ICardId card, IChecklistId checklist) { _restClient.Request(new CardsRemoveChecklistRequest(card, checklist)); }
public Board GetByChecklist(IChecklistId checklist) { Guard.NotNull(checklist, "checklist"); return _restClient.Request<Board>(new ChecklistBoardRequest(checklist)); }
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 Task <CheckItem> AddCheckItem(IChecklistId checklist, string name) { return(_restClient.RequestAsync <CheckItem>(new ChecklistsAddCheckItemRequest(checklist, name))); }
public Task RemoveCheckItem(IChecklistId checklist, string checkItemId) { return(_restClient.RequestAsync(new ChecklistsRemoveCheckItemRequest(checklist, checkItemId))); }
public ChecklistsRemoveCheckItemRequest(IChecklistId checklist, string checkItemId) : base(checklist, "checkitems/{idCheckItem}", Method.DELETE) { Guard.NotNullOrEmpty(checkItemId, "checkItemId"); AddParameter("idCheckItem", checkItemId, ParameterType.UrlSegment); }
public Task ChangeName(IChecklistId checklist, string name) { return(_restClient.RequestAsync(new ChecklistsChangeNameRequest(checklist, name))); }
public void ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check) { _restClient.Request(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check)); }
public void ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name) { _restClient.Request(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name)); }
public Task ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check) { return _restClient.RequestAsync(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check)); }
public CardsChangeCheckItemNameRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, string name) : base(card, checkList, checkItem, "name") { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }
public void ChangeName(IChecklistId checklist, string name) { _restClient.Request(new ChecklistsChangeNameRequest(checklist, name)); }
public BoardsForChecklistRequest(IChecklistId checkList) : base(checkList, "board") { }
public Task<IEnumerable<Card>> ForChecklist(IChecklistId checklist, CardFilter filter = CardFilter.Default) { return _restClient.RequestListAsync<Card>(new CardsForChecklistRequest(checklist, filter)); }
public CardsForChecklistRequest(IChecklistId checklist, CardFilter filter) : base(checklist, "cards") { this.AddCommonCardParameters(); this.AddFilter(filter); }
public CardsChangeCheckItemStateRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, bool check) : base(card, checkList, checkItem, "state") { this.AddValue(check.ToTrelloString()); }
public Task ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check) { return(_restClient.RequestAsync(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check))); }
public Task ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name) { return _restClient.RequestAsync(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name)); }
public Task <IEnumerable <Card> > ForChecklist(IChecklistId checklist, CardFilter filter = CardFilter.Open) { return(_restClient.RequestListAsync <Card>(new CardsForChecklistRequest(checklist, filter))); }
public CardsRemoveChecklistRequest(ICardId card, IChecklistId checklist) : base(card, "checklists/{idChecklist}", Method.DELETE) { Guard.NotNull(checklist, "checklist"); AddParameter("idChecklist", checklist.GetChecklistId(), ParameterType.UrlSegment); }
public Task ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name) { return(_restClient.RequestAsync(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name))); }
public ChecklistsChangeNameRequest(IChecklistId checklist, string name) : base(checklist, "name", Method.PUT) { Guard.NotNullOrEmpty(name, "name"); this.AddValue(name); }
public Task<Board> ForChecklist(IChecklistId checklist) { return _restClient.RequestAsync<Board>(new BoardsForChecklistRequest(checklist)); }
public ChecklistRequest(IChecklistId checklistId, string resource = "") : base("checklists/{checkListId}/" + resource) { AddParameter("checkListId", checklistId.GetChecklistId(), ParameterType.UrlSegment); }
public ChecklistsAddCheckItemRequest(IChecklistId checklist, string name) : base(checklist, "checkitems", Method.POST) { Guard.RequiredTrelloString(name, "name"); AddParameter("name", name); }
public ChecklistBoardRequest(IChecklistId checkListId) : base(checkListId, "board") { }
public Task RemoveChecklist(ICardId card, IChecklistId checklist) { return(_restClient.RequestAsync(new CardsRemoveChecklistRequest(card, checklist))); }
public Task AddChecklist(ICardId card, IChecklistId checklist) { return _restClient.RequestAsync(new CardsAddChecklistRequest(card, checklist)); }
public Task AddCheckItem(IChecklistId checklist, string name) { return _restClient.RequestAsync(new ChecklistsAddCheckItemRequest(checklist, name)); }
public Board ForChecklist(IChecklistId checklist) { return _restClient.Request<Board>(new BoardsForChecklistRequest(checklist)); }
public Task ChangeName(IChecklistId checklist, string name) { return _restClient.RequestAsync(new ChecklistsChangeNameRequest(checklist, name)); }
public IEnumerable<Card> ForChecklist(IChecklistId checklist, CardFilter filter = CardFilter.Open) { return _restClient.Request<List<Card>>(new CardsForChecklistRequest(checklist, filter)); }
public Task RemoveCheckItem(IChecklistId checklist, string checkItemId) { return _restClient.RequestAsync(new ChecklistsRemoveCheckItemRequest(checklist, checkItemId)); }
public CardsAddChecklistRequest(ICardId card, IChecklistId checklist) : base(card, "checklists", Method.POST) { Guard.NotNull(checklist, "checklist"); this.AddValue(checklist.GetChecklistId()); }