I'm using dillenmeister's Trello.Net API wrapper, and I see that removing an attachment from a card was added a couple months ago, but the call that I'm using (Trello.Cards.RemoveAttachment()
) calls for a CardId
and an IAttachmentId
. I've figured out how to create a CardId
(new CardID(Card.ID)
), but I'm not seeing how to create the IAttachmentID
that it's looking for.
I have the attachment object, and can get the ID
from there, but that is of type string.
The
Attachment
class itself implementsIAttachmentId
.It's similar for many other objects, for example the
Card
class implementsICardId
. You do not need to create aCardId
object if you have aCard
. Just use the actualCard
.There might be a need for an
AttachmentId
class anyway though. What is your use case?