Class NewsItem
java.lang.Object
com.intercom.api.resources.news.types.NewsItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic final classstatic interfacestatic interfacestatic interfacestatic final classstatic interfacestatic interfacestatic interface -
Method Summary
-
Method Details
-
getType
- Returns:
- The type of object.
-
getId
- Returns:
- The unique identifier for the news item which is given by Intercom.
-
getWorkspaceId
- Returns:
- The id of the workspace which the news item belongs to.
-
getTitle
- Returns:
- The title of the news item.
-
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
- Returns:
- News items will not be visible to your users in the assigned newsfeeds until they are set live.
-
getNewsfeedAssignments
- Returns:
- A list of newsfeed_assignments to assign to the specified newsfeed.
-
getLabels
- Returns:
- Label names displayed to users to categorize the news item.
-
getCoverImageUrl
- Returns:
- URL of the image used as cover. Must have .jpg or .png extension.
-
getReactions
- Returns:
- Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
-
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
- Returns:
- Timestamp for when the news item was last updated.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-