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); }
public CardsChangeCheckItemStateRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, bool check) : base(card, checkList, checkItem, "state") { this.AddValue(check.ToTrelloString()); }
public void ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name) { _restClient.Request(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, 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 ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name) { return _restClient.RequestAsync(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 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 CardsChangeCheckItemNameRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, string name) : base(card, checkList, checkItem, "name") { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }
public CardsChangeCheckItemStateRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, bool check) : base(card, checkList, checkItem, "state") { this.AddValue(check.ToTrelloString()); }
public CardsChangeCheckItemNameRequest(ICardId card, IChecklistId checkList, ICheckItemId checkItem, string name) : base(card, checkList, checkItem, "name") { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }