public Task ChangeColor(ILabelId label, Color color) { return(_restClient.RequestAsync(new LabelsChangeColorRequest(label, color))); }
public Task Remove(ILabelId label) { return(_restClient.RequestAsync(new LabelsDeleteRequest(label))); }
public void RemoveLabel(ICardId card, ILabelId label) { _restClient.Request(new CardsRemoveLabelRequest(card, label)); }
public Task ChangeName(ILabelId label, string name) { return(_restClient.RequestAsync(new LabelsChangeNameRequest(label, name))); }
public void Remove(ILabelId label) { _restClient.Request(new LabelsDeleteRequest(label)); }
public void AddLabel(ICardId card, ILabelId label) { _restClient.Request(new CardsAddLabelRequest(card, label)); }
public void ChangeName(ILabelId label, string name) { _restClient.Request(new LabelsChangeNameRequest(label, name)); }
public void ChangeColor(ILabelId label, Color color) { _restClient.Request(new LabelsChangeColorRequest(label, color)); }
public CardsAddLabelRequest(ICardId card, ILabelId labelId) : base(card, "idLabels", Method.POST) { AddParameter("value", labelId.GetLabelId()); }
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()); }
public LabelsChangeColorRequest(ILabelId label, Color color) : base(label, "color", Method.PUT) { this.AddValue(color); }
public Task RemoveLabel(ICardId card, ILabelId label) { return(_restClient.RequestAsync(new CardsRemoveLabelRequest(card, label))); }
public LabelsDeleteRequest(ILabelId label) : base(label, method: Method.DELETE) { }
public LabelsChangeNameRequest(ILabelId label, string name) : base(label, "name", Method.PUT) { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }