Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project are documented here. The format follows

### Added

- `InboxItem.moderationStatus` carries the platform's own state for a comment
(`published`, `held`, `spam`, `rejected`), and `InboxAccount.reconnectRequired`
flags an account connected before the inbox asked for a permission it needs.

- `broadcasts()`: one message into every conversation the workspace already has with a
segment of its contacts. `list`, `get`, `create`, `update`, `delete`, `send`, `cancel`
and `recipients`. Reading needs the `inbox` scope; `send` and `cancel` also need `publish`.
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/fopost/sdk/model/InboxAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/**
* A connected account, flagged with whether comments and DMs can be read for it yet.
* {@code canStartConversation} means a new DM can be opened from it by handle.
* {@code reconnectRequired} means the grant predates a permission the inbox read needs, so the
* account is not polled until someone reconnects it.
*/
public record InboxAccount(
String id,
Expand All @@ -15,4 +17,5 @@ public record InboxAccount(
String pendingReason,
Boolean dmSupported,
String dmPendingReason,
Boolean canStartConversation) {}
Boolean canStartConversation,
Boolean reconnectRequired) {}
3 changes: 3 additions & 0 deletions src/main/java/com/fopost/sdk/model/InboxItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* comment someone left or our own reply; {@code canPin} and {@code canEdit} are our own comments
* only; {@code canPrivateReply} means a DM can be opened from it with
* {@code StartConversationParams.privateReply}. {@code reaction} is our reaction on a DM.
* {@code moderationStatus} is the platform's own state for a comment: published, held, spam or
* rejected, and null where the platform does not report one.
*/
public record InboxItem(
String id,
Expand Down Expand Up @@ -49,6 +51,7 @@ public record InboxItem(
Boolean canSendMedia,
Boolean canQuickReply,
Boolean canPrivateReply,
String moderationStatus,
PostRef post,
InboxPostContext postContext,
InboxAccountRef account) {}
Loading