Skip to content

Commit 9f22588

Browse files
rafaelmf3Rafael Marinho
andauthored
[CHA-1427] Support Polls (#228)
* [CHA-1427] support campaigns * fix format * fix tests * fix tests * [CHA-1427] support polls * fix use of user_id * fix missing params * fix test * fix test * fix test * add channelType enable poll --------- Co-authored-by: Rafael Marinho <rafael.marinho@getstream.io>
1 parent c9979b5 commit 9f22588

File tree

4 files changed

+1413
-0
lines changed

4 files changed

+1413
-0
lines changed

src/main/java/io/getstream/chat/java/models/ChannelType.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ public class ChannelType {
145145
@JsonProperty("count_messages")
146146
private Boolean countMessages;
147147

148+
@Nullable
149+
@JsonProperty("polls")
150+
private Boolean polls;
151+
148152
@Data
149153
@NoArgsConstructor
150154
public static class Threshold {
@@ -427,6 +431,10 @@ public static class ChannelTypeCreateRequestData {
427431
@JsonProperty("count_messages")
428432
private Boolean countMessages;
429433

434+
@Nullable
435+
@JsonProperty("polls")
436+
protected Boolean polls;
437+
430438
public static class ChannelTypeCreateRequest extends StreamRequest<ChannelTypeCreateResponse> {
431439

432440
private static final boolean DEFAULT_PUSH_NOTIFICATIONS = true;
@@ -579,6 +587,10 @@ public static class ChannelTypeUpdateRequestData {
579587
@JsonProperty("count_messages")
580588
private Boolean countMessages;
581589

590+
@Nullable
591+
@JsonProperty("polls")
592+
protected Boolean polls;
593+
582594
public static class ChannelTypeUpdateRequest extends StreamRequest<ChannelTypeUpdateResponse> {
583595
@NotNull private String name;
584596

0 commit comments

Comments
 (0)