public CardsAddLabelRequest(ICardId card, ILabelId labelId)
     : base(card, "idLabels", Method.POST)
 {
     AddParameter("value", labelId.GetLabelId());
 }
示例#2
0
 public LabelsRequest(ILabelId label, string resource = "", Method method = Method.GET)
     : base("labels/{labelId}/" + resource, method)
 {
     Guard.NotNull(label, "label");
     AddParameter("labelId", label.GetLabelId(), ParameterType.UrlSegment);
 }
 public CardsRemoveLabelRequest(ICardId card, ILabelId labelId)
     : base(card, "idLabels", Method.DELETE)
 {
     AddParameter("value", labelId.GetLabelId());
 }