public CardsAddBytesAttachmentRequest(ICardId card, BytesAttachment attachment) : base(card, "attachments", Method.POST) { Guard.NotNull(attachment, "attachment"); Guard.NotNull(attachment.Contents, "attachment.Contents"); Guard.LengthBetween(attachment.Name, 0, 256, "attachment.Name"); AddParameter("name", attachment.Name); AddFile("file", attachment.Contents, attachment.FileName ?? attachment.Name); }
public void AddAttachment(ICardId card, BytesAttachment attachment) { _restClient.Request(new CardsAddBytesAttachmentRequest(card, attachment)); }
public Task AddAttachment(ICardId card, BytesAttachment attachment) { return _restClient.RequestAsync(new CardsAddBytesAttachmentRequest(card, attachment)); }
public Task AddAttachment(ICardId card, BytesAttachment attachment) { return(_restClient.RequestAsync(new CardsAddBytesAttachmentRequest(card, attachment))); }