Class NewsItemRequest

java.lang.Object
com.intercom.api.types.NewsItemRequest

public final class NewsItemRequest extends Object
  • Method Details

    • getTitle

      public String getTitle()
      Returns:
      The title of the news item.
    • getBody

      public Optional<String> getBody()
      Returns:
      The news item body, which may contain HTML.
    • getSenderId

      public int getSenderId()
      Returns:
      The id of the sender of the news item. Must be a teammate on the workspace.
    • getState

      public Optional<NewsItemRequest.State> getState()
      Returns:
      News items will not be visible to your users in the assigned newsfeeds until they are set live.
    • getDeliverSilently

      public Optional<Boolean> getDeliverSilently()
      Returns:
      When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
    • getLabels

      public Optional<List<String>> getLabels()
      Returns:
      Label names displayed to users to categorize the news item.
    • getReactions

      public Optional<List<Optional<String>>> getReactions()
      Returns:
      Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
    • getNewsfeedAssignments

      public Optional<List<NewsfeedAssignment>> getNewsfeedAssignments()
      Returns:
      A list of newsfeed_assignments to assign to the specified newsfeed.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static NewsItemRequest.TitleStage builder()