@Test public void testToAttachment() { Attachment attachment = card.toAttachment(); Assert.assertNotNull(attachment); Assert.assertEquals("application/vnd.microsoft.card.audio", attachment.getContentType()); }
public Attachment toAttachment() { return new Attachment() { { setContent(AudioCard.this); setContentType(CONTENTTYPE); } }; }
AudioCard { public Attachment toAttachment() { return new Attachment() { { setContent(AudioCard.this); setContentType(CONTENTTYPE); } }; } }
AudioCard { public Attachment toAttachment() { return new Attachment() { { setContent(AudioCard.this); setContentType(CONTENTTYPE); } }; }  }
AudioCard { public Attachment toAttachment() { return new Attachment() { { setContent(AudioCard.this); setContentType(CONTENTTYPE); } }; }  String getTitle(); void setTitle(String withTitle); String getSubtitle(); void setSubtitle(String withSubtitle); String getText(); void setText(String withText); ThumbnailUrl getImage(); void setImage(ThumbnailUrl withImage); List<MediaUrl> getMedia(); void setMedia(List<MediaUrl> withMedia); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); boolean getShareable(); void setShareable(boolean withShareable); boolean getAutoloop(); void setAutoloop(boolean withAutoloop); boolean getAutostart(); void setAutostart(boolean withAutostart); String getAspect(); void setAspect(String withAspect); String getDuration(); void setDuration(String withDuration); Object getValue(); void setValue(Object withValue); Attachment toAttachment(); }
AudioCard { public Attachment toAttachment() { return new Attachment() { { setContent(AudioCard.this); setContentType(CONTENTTYPE); } }; }  String getTitle(); void setTitle(String withTitle); String getSubtitle(); void setSubtitle(String withSubtitle); String getText(); void setText(String withText); ThumbnailUrl getImage(); void setImage(ThumbnailUrl withImage); List<MediaUrl> getMedia(); void setMedia(List<MediaUrl> withMedia); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); boolean getShareable(); void setShareable(boolean withShareable); boolean getAutoloop(); void setAutoloop(boolean withAutoloop); boolean getAutostart(); void setAutostart(boolean withAutostart); String getAspect(); void setAspect(String withAspect); String getDuration(); void setDuration(String withDuration); Object getValue(); void setValue(Object withValue); Attachment toAttachment(); @JsonIgnore
    static final String CONTENTTYPE; }