Class NewsItem.Builder
- All Implemented Interfaces:
NewsItem._FinalStage,NewsItem.BodyStage,NewsItem.CreatedAtStage,NewsItem.IdStage,NewsItem.SenderIdStage,NewsItem.StateStage,NewsItem.TitleStage,NewsItem.WorkspaceIdStage
- Enclosing class:
NewsItem
-
Method Summary
Modifier and TypeMethodDescriptionThe news item body, which may contain HTML.build()coverImageUrl(String coverImageUrl) URL of the image used as cover.coverImageUrl(Optional<String> coverImageUrl) createdAt(int createdAt) Timestamp for when the news item was created.deliverSilently(Boolean deliverSilently) When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.deliverSilently(Optional<Boolean> deliverSilently) The unique identifier for the news item which is given by Intercom.Label names displayed to users to categorize the news item.newsfeedAssignments(List<NewsfeedAssignment> newsfeedAssignments) A list of newsfeed_assignments to assign to the specified newsfeed.newsfeedAssignments(Optional<List<NewsfeedAssignment>> newsfeedAssignments) Ordered list of emoji reactions to the news item.senderId(int senderId) The id of the sender of the news item.state(NewsItem.State state) News items will not be visible to your users in the assigned newsfeeds until they are set live.The title of the news item.Timestamp for when the news item was last updated.workspaceId(String workspaceId) The id of the workspace which the news item belongs to.
-
Method Details
-
from
- Specified by:
fromin interfaceNewsItem.IdStage
-
id
The unique identifier for the news item which is given by Intercom.
- Specified by:
idin interfaceNewsItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
The id of the workspace which the news item belongs to.
- Specified by:
workspaceIdin interfaceNewsItem.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
The title of the news item.
- Specified by:
titlein interfaceNewsItem.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
The news item body, which may contain HTML.
- Specified by:
bodyin interfaceNewsItem.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
senderId
The id of the sender of the news item. Must be a teammate on the workspace.
- Specified by:
senderIdin interfaceNewsItem.SenderIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
News items will not be visible to your users in the assigned newsfeeds until they are set live.
- Specified by:
statein interfaceNewsItem.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
Timestamp for when the news item was created.
- Specified by:
createdAtin interfaceNewsItem.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
Timestamp for when the news item was last updated.
- Specified by:
updatedAtin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceNewsItem._FinalStage
-
deliverSilently
When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
- Specified by:
deliverSilentlyin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
deliverSilently
- Specified by:
deliverSilentlyin interfaceNewsItem._FinalStage
-
reactions
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
- Specified by:
reactionsin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reactions
- Specified by:
reactionsin interfaceNewsItem._FinalStage
-
coverImageUrl
URL of the image used as cover. Must have .jpg or .png extension.
- Specified by:
coverImageUrlin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
coverImageUrl
- Specified by:
coverImageUrlin interfaceNewsItem._FinalStage
-
labels
Label names displayed to users to categorize the news item.
- Specified by:
labelsin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
labels
- Specified by:
labelsin interfaceNewsItem._FinalStage
-
newsfeedAssignments
A list of newsfeed_assignments to assign to the specified newsfeed.
- Specified by:
newsfeedAssignmentsin interfaceNewsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
newsfeedAssignments
public NewsItem._FinalStage newsfeedAssignments(Optional<List<NewsfeedAssignment>> newsfeedAssignments) - Specified by:
newsfeedAssignmentsin interfaceNewsItem._FinalStage
-
build
- Specified by:
buildin interfaceNewsItem._FinalStage
-