Class FlexTeamsMessage

java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.ffi.microsoftteams.pojos.FlexTeamsMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TeamChannelMessageRequestPojo, TeamsCalendarPojo, UserMessageRequestPojo

public class FlexTeamsMessage extends BasePOJO
An object representing a nicely formatted Teams message. Set relevant fields with setters and adds. Finally call the getHTML method to return the html representation which can be sent via API call to Teams.
See Also:
  • Field Details

    • mSAdditionalHTML

      protected final transient StringBuilder mSAdditionalHTML
    • mSTableEntries

      protected final transient Map<String,String> mSTableEntries
  • Constructor Details

    • FlexTeamsMessage

      public FlexTeamsMessage()
  • Method Details

    • setIconURL

      public void setIconURL(String pIconURL)
    • getIconURL

      public String getIconURL()
    • setText

      public void setText(String pText)
      Set the default text/header of the message
      Parameters:
      pText -
    • getText

      public String getText()
    • setTitle

      public void setTitle(String pTitle)
    • getTitle

      public String getTitle()
    • addAdditionalHTML

      public void addAdditionalHTML(String pHTML)
      Add any custom html to the end of the message
      Parameters:
      pHTML -
    • addTableRow

      public void addTableRow(String pKey, String pValue)
      Adds a table row entry to this message
      Parameters:
      pKey - Table key
      pValue - Table value
    • clearTableRows

      public void clearTableRows()
      Clears all table row data
    • getHTML

      public String getHTML()
      Return the html representation of the content of this instance
      Returns: