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());
		}
Beispiel #4
0
 public void ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name)
 {
     _restClient.Request(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name));
 }
Beispiel #5
0
		public void ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check)
		{
			_restClient.Request(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check));
		}
Beispiel #6
0
		public void ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name)
		{
			_restClient.Request(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name));
		}
Beispiel #7
0
 public Task ChangeCheckItemName(ICardId card, IChecklistId checklist, ICheckItemId checkItem, string name)
 {
     return _restClient.RequestAsync(new CardsChangeCheckItemNameRequest(card, checklist, checkItem, name));
 }
Beispiel #8
0
 public Task ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check)
 {
     return _restClient.RequestAsync(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check));
 }
Beispiel #9
0
 public Task ChangeCheckItemState(ICardId card, IChecklistId checklist, ICheckItemId checkItem, bool check)
 {
     return(_restClient.RequestAsync(new CardsChangeCheckItemStateRequest(card, checklist, checkItem, check)));
 }
Beispiel #10
0
 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);
 }