Class NewsItem

java.lang.Object
com.intercom.api.resources.news.types.NewsItem

public final class NewsItem extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      The type of object.
    • getId

      public String getId()
      Returns:
      The unique identifier for the news item which is given by Intercom.
    • getWorkspaceId

      public String getWorkspaceId()
      Returns:
      The id of the workspace which the news item belongs to.
    • getTitle

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

      public 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 NewsItem.State getState()
      Returns:
      News items will not be visible to your users in the assigned newsfeeds until they are set live.
    • getNewsfeedAssignments

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

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

      public Optional<String> getCoverImageUrl()
      Returns:
      URL of the image used as cover. Must have .jpg or .png extension.
    • getReactions

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

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

      public int getCreatedAt()
      Returns:
      Timestamp for when the news item was created.
    • getUpdatedAt

      public Optional<Integer> getUpdatedAt()
      Returns:
      Timestamp for when the news item was last updated.
    • 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 NewsItem.IdStage builder()