@Override public List<Attachment> getCardAttachments(String cardId, Argument... args) { List<Attachment> attachments = Arrays.asList(get(createUrl(GET_CARD_ATTACHMENTS).params(args).asString(), Attachment[].class, cardId)); for (Attachment attachment : attachments) { attachment.setInternalTrello(this); } return attachments; }
@Override public List<Attachment> getCardAttachments(String cardId, Argument... args) { List<Attachment> attachments = Arrays.asList(get(createUrl(GET_CARD_ATTACHMENTS).params(args).asString(), Attachment[].class, cardId)); for (Attachment attachment : attachments) { attachment.setInternalTrello(this); } return attachments; }
@Override public Attachment getCardAttachment(String cardId, String attachmentId, Argument... args) { Attachment attachment = get(createUrl(GET_CARD_ATTACHMENT).params(args).asString(), Attachment.class, cardId, attachmentId); attachment.setInternalTrello(this); return attachment; }
@Override public Attachment getCardAttachment(String cardId, String attachmentId, Argument... args) { Attachment attachment = get(createUrl(GET_CARD_ATTACHMENT).params(args).asString(), Attachment.class, cardId, attachmentId); attachment.setInternalTrello(this); return attachment; }