@Test public void testToAttachment() { Attachment attachment = card.toAttachment(); Assert.assertNotNull(attachment); Assert.assertEquals("application/vnd.microsoft.card.oauth", attachment.getContentType()); }
public Attachment toAttachment() { return new Attachment() { { setContent(OAuthCard.this); setContentType(CONTENTTYPE); } }; }
OAuthCard { public Attachment toAttachment() { return new Attachment() { { setContent(OAuthCard.this); setContentType(CONTENTTYPE); } }; } }
OAuthCard { public Attachment toAttachment() { return new Attachment() { { setContent(OAuthCard.this); setContentType(CONTENTTYPE); } }; }  }
OAuthCard { public Attachment toAttachment() { return new Attachment() { { setContent(OAuthCard.this); setContentType(CONTENTTYPE); } }; }  String getText(); void setText(String withText); String getConnectionName(); void setConnectionName(String withConnectionName); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); Attachment toAttachment(); }
OAuthCard { public Attachment toAttachment() { return new Attachment() { { setContent(OAuthCard.this); setContentType(CONTENTTYPE); } }; }  String getText(); void setText(String withText); String getConnectionName(); void setConnectionName(String withConnectionName); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); Attachment toAttachment(); @JsonIgnore
    static final String CONTENTTYPE; }