Skip to content

Commit

Permalink
feat(truncate): add truncated by id (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme authored Apr 7, 2022
1 parent e6e1d44 commit c302c7a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/io/getstream/chat/java/models/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ public class Channel {
@JsonProperty("last_message_at")
private Date lastMessageAt;

@NotNull
@JsonProperty("truncated_by_id")
private String truncatedById;

@NotNull
@JsonProperty("truncated_by")
private User truncatedBy;

@NotNull @JsonIgnore private Map<String, Object> additionalFields = new HashMap<>();

@JsonAnyGetter
Expand Down Expand Up @@ -678,6 +686,14 @@ public static class ChannelTruncateRequestData {
@JsonProperty("message")
private MessageRequestObject message;

@Nullable
@JsonProperty("user_id")
private String userId;

@Nullable
@JsonProperty("user")
private UserRequestObject user;

public static class ChannelTruncateRequest extends StreamRequest<ChannelTruncateResponse> {
@NotNull private String channelType;

Expand Down

0 comments on commit c302c7a

Please sign in to comment.