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
6 changes: 4 additions & 2 deletions src/main/java/com/fopost/sdk/model/InboxItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.util.List;

/**
* A comment, mention or direct message on a connected account.
* A comment, mention, review or direct message on a connected account.
*
* <p>{@code type} is comment, mention or dm; {@code state} is unread, read, resolved or snoozed.
* <p>{@code type} is comment, mention, review or dm; {@code state} is unread, read, resolved or
* snoozed. {@code rating} is the stars on a review, 1-5, and null on every other type.
* The {@code can*} flags say which actions the platform allows on it. {@code canDelete} covers a
* 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
Expand All @@ -24,6 +25,7 @@ public record InboxItem(
String authorHandle,
String authorAvatarUrl,
String text,
Integer rating,
List<InboxAttachment> attachments,
String permalink,
String postExternalId,
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/fopost/sdk/model/InboxThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.time.Instant;

/** One platform post and the comments it has collected. */
/** One platform post and the comments it has collected, or one review left on the business. */
public record InboxThread(
String workspaceId,
String accountId,
Expand All @@ -12,5 +12,6 @@ public record InboxThread(
Instant lastCommentAt,
String lastCommentText,
String lastCommentAuthor,
Integer rating,
InboxPostContext post,
InboxAccountRef account) {}
2 changes: 1 addition & 1 deletion src/main/java/com/fopost/sdk/param/InboxThreadParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public InboxThreadParams workspaceId(String workspaceId) {

/**
* Threads only: {@code comments} (the default) for threads under our posts, {@code mentions}
* for posts we were tagged in.
* for posts we were tagged in, {@code reviews} for one row per review left on the business.
*/
public InboxThreadParams kind(String kind) {
query.put("kind", kind);
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/fopost/sdk/resource/InboxResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.Map;

/**
* Comments, mentions and direct messages on the connected accounts.
* Comments, mentions, reviews and direct messages on the connected accounts.
*
* <pre>{@code
* InboxPage<InboxItem> unread = client.inbox().list(
Expand Down Expand Up @@ -67,8 +67,9 @@ public InboxPage<InboxThread> threads() {
}

/**
* One row per platform post that has collected comments, or per post the account was tagged
* in with {@code kind("mentions")}. Fetch a thread's items with {@link #list} filtered by
* One row per platform post that has collected comments, per post the account was tagged in
* with {@code kind("mentions")}, or per review with {@code kind("reviews")}. Fetch a thread's
* items with {@link #list} filtered by
* {@code accountId} and {@code postExternalId}.
*/
public InboxPage<InboxThread> threads(InboxThreadParams params) {
Expand Down
Loading