Class MicrosoftTeamsMessageCard
java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.ffi.microsoftteams.pojos.MicrosoftTeamsMessageCard
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAction(String pType, Map<String, Serializable> pFields) voidvoidaddTableRow(List<String> pRow) Adds a table row to the message.voidClears all table row dataJSONArrayJSONArraygetFacts()static StringgetMarkdownLink(Serializable text, String url) voidsetActivityTitle(String pActivityTitle) voidsetIconUrl(String pIconUrl) voidsetSectionText(String pSectionText) voidsetTableHeaders(List<String> pHeader) voidJSONObjecttoString()Returns custom String representation implemented by walking complete object structure.
-
Constructor Details
-
MicrosoftTeamsMessageCard
public MicrosoftTeamsMessageCard()
-
-
Method Details
-
setTitle
-
setActivityTitle
-
setSectionText
-
setIconUrl
-
getFacts
public JSONArray getFacts() -
addFact
-
getActions
public JSONArray getActions() -
addAction
-
addTableRow
Adds a table row to the message. If the table is a simple key/value table then consider using addFact- Parameters:
pRow- - A list of column values for the row
-
setTableHeaders
-
clearTableRows
public void clearTableRows()Clears all table row data -
toJSONObject
public JSONObject toJSONObject() -
getMarkdownLink
-
toString
Description copied from class:BasePOJOReturns custom String representation implemented by walking complete object structure.
-