Skip to content
Open
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
12 changes: 12 additions & 0 deletions src/main/java/io/getstream/chat/java/models/ChannelType.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public class ChannelType {
@JsonProperty("count_messages")
private Boolean countMessages;

@Nullable
@JsonProperty("polls")
private Boolean polls;

@Data
@NoArgsConstructor
public static class Threshold {
Expand Down Expand Up @@ -427,6 +431,10 @@ public static class ChannelTypeCreateRequestData {
@JsonProperty("count_messages")
private Boolean countMessages;

@Nullable
@JsonProperty("polls")
protected Boolean polls;

public static class ChannelTypeCreateRequest extends StreamRequest<ChannelTypeCreateResponse> {

private static final boolean DEFAULT_PUSH_NOTIFICATIONS = true;
Expand Down Expand Up @@ -579,6 +587,10 @@ public static class ChannelTypeUpdateRequestData {
@JsonProperty("count_messages")
private Boolean countMessages;

@Nullable
@JsonProperty("polls")
protected Boolean polls;

public static class ChannelTypeUpdateRequest extends StreamRequest<ChannelTypeUpdateResponse> {
@NotNull private String name;

Expand Down
Loading