-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathBasicNotification.java
More file actions
4023 lines (2998 loc) · 162 KB
/
Copy pathBasicNotification.java
File metadata and controls
4023 lines (2998 loc) · 162 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* OneSignal
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.11.0
* Contact: devrel@onesignal.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.onesignal.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.onesignal.client.model.BasicNotificationAllOf;
import com.onesignal.client.model.BasicNotificationAllOfAndroidBackgroundLayout;
import com.onesignal.client.model.Button;
import com.onesignal.client.model.FilterExpression;
import com.onesignal.client.model.LanguageStringMap;
import com.onesignal.client.model.NotificationTarget;
import com.onesignal.client.model.WebButton;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.jackson.nullable.JsonNullable;
import java.io.Serializable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import com.onesignal.client.JSON;
/**
* BasicNotification
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BasicNotification {
private static final long serialVersionUID = 1L;
public static final String SERIALIZED_NAME_INCLUDED_SEGMENTS = "included_segments";
@SerializedName(SERIALIZED_NAME_INCLUDED_SEGMENTS)
private List<String> includedSegments = null;
public static final String SERIALIZED_NAME_EXCLUDED_SEGMENTS = "excluded_segments";
@SerializedName(SERIALIZED_NAME_EXCLUDED_SEGMENTS)
private List<String> excludedSegments = null;
public static final String SERIALIZED_NAME_INCLUDE_SUBSCRIPTION_IDS = "include_subscription_ids";
@SerializedName(SERIALIZED_NAME_INCLUDE_SUBSCRIPTION_IDS)
private List<String> includeSubscriptionIds = null;
public static final String SERIALIZED_NAME_INCLUDE_EMAIL_TOKENS = "include_email_tokens";
@SerializedName(SERIALIZED_NAME_INCLUDE_EMAIL_TOKENS)
private List<String> includeEmailTokens = null;
public static final String SERIALIZED_NAME_EMAIL_TO = "email_to";
@SerializedName(SERIALIZED_NAME_EMAIL_TO)
private List<String> emailTo = null;
public static final String SERIALIZED_NAME_INCLUDE_PHONE_NUMBERS = "include_phone_numbers";
@SerializedName(SERIALIZED_NAME_INCLUDE_PHONE_NUMBERS)
private List<String> includePhoneNumbers = null;
public static final String SERIALIZED_NAME_INCLUDE_IOS_TOKENS = "include_ios_tokens";
@SerializedName(SERIALIZED_NAME_INCLUDE_IOS_TOKENS)
private List<String> includeIosTokens = null;
public static final String SERIALIZED_NAME_INCLUDE_WP_WNS_URIS = "include_wp_wns_uris";
@SerializedName(SERIALIZED_NAME_INCLUDE_WP_WNS_URIS)
private List<String> includeWpWnsUris = null;
public static final String SERIALIZED_NAME_INCLUDE_AMAZON_REG_IDS = "include_amazon_reg_ids";
@SerializedName(SERIALIZED_NAME_INCLUDE_AMAZON_REG_IDS)
private List<String> includeAmazonRegIds = null;
public static final String SERIALIZED_NAME_INCLUDE_CHROME_REG_IDS = "include_chrome_reg_ids";
@SerializedName(SERIALIZED_NAME_INCLUDE_CHROME_REG_IDS)
private List<String> includeChromeRegIds = null;
public static final String SERIALIZED_NAME_INCLUDE_CHROME_WEB_REG_IDS = "include_chrome_web_reg_ids";
@SerializedName(SERIALIZED_NAME_INCLUDE_CHROME_WEB_REG_IDS)
private List<String> includeChromeWebRegIds = null;
public static final String SERIALIZED_NAME_INCLUDE_ANDROID_REG_IDS = "include_android_reg_ids";
@SerializedName(SERIALIZED_NAME_INCLUDE_ANDROID_REG_IDS)
private List<String> includeAndroidRegIds = null;
public static final String SERIALIZED_NAME_INCLUDE_ALIASES = "include_aliases";
@SerializedName(SERIALIZED_NAME_INCLUDE_ALIASES)
private Map<String, List<String>> includeAliases = null;
/**
* Gets or Sets targetChannel
*/
@JsonAdapter(TargetChannelEnum.Adapter.class)
public enum TargetChannelEnum {
PUSH("push"),
EMAIL("email"),
SMS("sms");
private String value;
TargetChannelEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TargetChannelEnum fromValue(String value) {
for (TargetChannelEnum b : TargetChannelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<TargetChannelEnum> {
@Override
public void write(final JsonWriter jsonWriter, final TargetChannelEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TargetChannelEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TargetChannelEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TARGET_CHANNEL = "target_channel";
@SerializedName(SERIALIZED_NAME_TARGET_CHANNEL)
private TargetChannelEnum targetChannel;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_VALUE = "value";
@SerializedName(SERIALIZED_NAME_VALUE)
private Integer value;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
/**
* Gets or Sets aggregation
*/
@JsonAdapter(AggregationEnum.Adapter.class)
public enum AggregationEnum {
SUM("sum"),
COUNT("count");
private String value;
AggregationEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static AggregationEnum fromValue(String value) {
for (AggregationEnum b : AggregationEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<AggregationEnum> {
@Override
public void write(final JsonWriter jsonWriter, final AggregationEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public AggregationEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return AggregationEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_AGGREGATION = "aggregation";
@SerializedName(SERIALIZED_NAME_AGGREGATION)
private AggregationEnum aggregation;
public static final String SERIALIZED_NAME_IS_IOS = "isIos";
@SerializedName(SERIALIZED_NAME_IS_IOS)
private Boolean isIos;
public static final String SERIALIZED_NAME_IS_ANDROID = "isAndroid";
@SerializedName(SERIALIZED_NAME_IS_ANDROID)
private Boolean isAndroid;
public static final String SERIALIZED_NAME_IS_HUAWEI = "isHuawei";
@SerializedName(SERIALIZED_NAME_IS_HUAWEI)
private Boolean isHuawei;
public static final String SERIALIZED_NAME_IS_ANY_WEB = "isAnyWeb";
@SerializedName(SERIALIZED_NAME_IS_ANY_WEB)
private Boolean isAnyWeb;
public static final String SERIALIZED_NAME_IS_CHROME_WEB = "isChromeWeb";
@SerializedName(SERIALIZED_NAME_IS_CHROME_WEB)
private Boolean isChromeWeb;
public static final String SERIALIZED_NAME_IS_FIREFOX = "isFirefox";
@SerializedName(SERIALIZED_NAME_IS_FIREFOX)
private Boolean isFirefox;
public static final String SERIALIZED_NAME_IS_SAFARI = "isSafari";
@SerializedName(SERIALIZED_NAME_IS_SAFARI)
private Boolean isSafari;
public static final String SERIALIZED_NAME_IS_W_P_W_N_S = "isWP_WNS";
@SerializedName(SERIALIZED_NAME_IS_W_P_W_N_S)
private Boolean isWPWNS;
public static final String SERIALIZED_NAME_IS_ADM = "isAdm";
@SerializedName(SERIALIZED_NAME_IS_ADM)
private Boolean isAdm;
public static final String SERIALIZED_NAME_IS_CHROME = "isChrome";
@SerializedName(SERIALIZED_NAME_IS_CHROME)
private Boolean isChrome;
public static final String SERIALIZED_NAME_APP_ID = "app_id";
@SerializedName(SERIALIZED_NAME_APP_ID)
private String appId;
public static final String SERIALIZED_NAME_EXTERNAL_ID = "external_id";
@SerializedName(SERIALIZED_NAME_EXTERNAL_ID)
private String externalId;
public static final String SERIALIZED_NAME_IDEMPOTENCY_KEY = "idempotency_key";
@SerializedName(SERIALIZED_NAME_IDEMPOTENCY_KEY)
private String idempotencyKey;
public static final String SERIALIZED_NAME_CONTENTS = "contents";
@SerializedName(SERIALIZED_NAME_CONTENTS)
private LanguageStringMap contents;
public static final String SERIALIZED_NAME_HEADINGS = "headings";
@SerializedName(SERIALIZED_NAME_HEADINGS)
private LanguageStringMap headings;
public static final String SERIALIZED_NAME_SUBTITLE = "subtitle";
@SerializedName(SERIALIZED_NAME_SUBTITLE)
private LanguageStringMap subtitle;
public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
private Object data;
public static final String SERIALIZED_NAME_HUAWEI_MSG_TYPE = "huawei_msg_type";
@SerializedName(SERIALIZED_NAME_HUAWEI_MSG_TYPE)
private String huaweiMsgType;
public static final String SERIALIZED_NAME_URL = "url";
@SerializedName(SERIALIZED_NAME_URL)
private String url;
public static final String SERIALIZED_NAME_WEB_URL = "web_url";
@SerializedName(SERIALIZED_NAME_WEB_URL)
private String webUrl;
public static final String SERIALIZED_NAME_APP_URL = "app_url";
@SerializedName(SERIALIZED_NAME_APP_URL)
private String appUrl;
public static final String SERIALIZED_NAME_IOS_ATTACHMENTS = "ios_attachments";
@SerializedName(SERIALIZED_NAME_IOS_ATTACHMENTS)
private Object iosAttachments;
public static final String SERIALIZED_NAME_TEMPLATE_ID = "template_id";
@SerializedName(SERIALIZED_NAME_TEMPLATE_ID)
private String templateId;
public static final String SERIALIZED_NAME_CONTENT_AVAILABLE = "content_available";
@SerializedName(SERIALIZED_NAME_CONTENT_AVAILABLE)
private Boolean contentAvailable;
public static final String SERIALIZED_NAME_MUTABLE_CONTENT = "mutable_content";
@SerializedName(SERIALIZED_NAME_MUTABLE_CONTENT)
private Boolean mutableContent;
public static final String SERIALIZED_NAME_TARGET_CONTENT_IDENTIFIER = "target_content_identifier";
@SerializedName(SERIALIZED_NAME_TARGET_CONTENT_IDENTIFIER)
private String targetContentIdentifier;
public static final String SERIALIZED_NAME_BIG_PICTURE = "big_picture";
@SerializedName(SERIALIZED_NAME_BIG_PICTURE)
private String bigPicture;
public static final String SERIALIZED_NAME_GLOBAL_IMAGE = "global_image";
@SerializedName(SERIALIZED_NAME_GLOBAL_IMAGE)
private String globalImage;
public static final String SERIALIZED_NAME_HUAWEI_BIG_PICTURE = "huawei_big_picture";
@SerializedName(SERIALIZED_NAME_HUAWEI_BIG_PICTURE)
private String huaweiBigPicture;
public static final String SERIALIZED_NAME_ADM_BIG_PICTURE = "adm_big_picture";
@SerializedName(SERIALIZED_NAME_ADM_BIG_PICTURE)
private String admBigPicture;
public static final String SERIALIZED_NAME_CHROME_BIG_PICTURE = "chrome_big_picture";
@SerializedName(SERIALIZED_NAME_CHROME_BIG_PICTURE)
private String chromeBigPicture;
public static final String SERIALIZED_NAME_CHROME_WEB_IMAGE = "chrome_web_image";
@SerializedName(SERIALIZED_NAME_CHROME_WEB_IMAGE)
private String chromeWebImage;
public static final String SERIALIZED_NAME_BUTTONS = "buttons";
@SerializedName(SERIALIZED_NAME_BUTTONS)
private List<Button> buttons = null;
public static final String SERIALIZED_NAME_WEB_BUTTONS = "web_buttons";
@SerializedName(SERIALIZED_NAME_WEB_BUTTONS)
private List<WebButton> webButtons = null;
public static final String SERIALIZED_NAME_IOS_CATEGORY = "ios_category";
@SerializedName(SERIALIZED_NAME_IOS_CATEGORY)
private String iosCategory;
public static final String SERIALIZED_NAME_ANDROID_CHANNEL_ID = "android_channel_id";
@SerializedName(SERIALIZED_NAME_ANDROID_CHANNEL_ID)
private String androidChannelId;
public static final String SERIALIZED_NAME_HUAWEI_CHANNEL_ID = "huawei_channel_id";
@SerializedName(SERIALIZED_NAME_HUAWEI_CHANNEL_ID)
private String huaweiChannelId;
public static final String SERIALIZED_NAME_EXISTING_ANDROID_CHANNEL_ID = "existing_android_channel_id";
@SerializedName(SERIALIZED_NAME_EXISTING_ANDROID_CHANNEL_ID)
private String existingAndroidChannelId;
public static final String SERIALIZED_NAME_HUAWEI_EXISTING_CHANNEL_ID = "huawei_existing_channel_id";
@SerializedName(SERIALIZED_NAME_HUAWEI_EXISTING_CHANNEL_ID)
private String huaweiExistingChannelId;
public static final String SERIALIZED_NAME_ANDROID_BACKGROUND_LAYOUT = "android_background_layout";
@SerializedName(SERIALIZED_NAME_ANDROID_BACKGROUND_LAYOUT)
private BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout;
public static final String SERIALIZED_NAME_SMALL_ICON = "small_icon";
@SerializedName(SERIALIZED_NAME_SMALL_ICON)
private String smallIcon;
public static final String SERIALIZED_NAME_HUAWEI_SMALL_ICON = "huawei_small_icon";
@SerializedName(SERIALIZED_NAME_HUAWEI_SMALL_ICON)
private String huaweiSmallIcon;
public static final String SERIALIZED_NAME_LARGE_ICON = "large_icon";
@SerializedName(SERIALIZED_NAME_LARGE_ICON)
private String largeIcon;
public static final String SERIALIZED_NAME_HUAWEI_LARGE_ICON = "huawei_large_icon";
@SerializedName(SERIALIZED_NAME_HUAWEI_LARGE_ICON)
private String huaweiLargeIcon;
public static final String SERIALIZED_NAME_ADM_SMALL_ICON = "adm_small_icon";
@SerializedName(SERIALIZED_NAME_ADM_SMALL_ICON)
private String admSmallIcon;
public static final String SERIALIZED_NAME_ADM_LARGE_ICON = "adm_large_icon";
@SerializedName(SERIALIZED_NAME_ADM_LARGE_ICON)
private String admLargeIcon;
public static final String SERIALIZED_NAME_CHROME_WEB_ICON = "chrome_web_icon";
@SerializedName(SERIALIZED_NAME_CHROME_WEB_ICON)
private String chromeWebIcon;
public static final String SERIALIZED_NAME_CHROME_WEB_BADGE = "chrome_web_badge";
@SerializedName(SERIALIZED_NAME_CHROME_WEB_BADGE)
private String chromeWebBadge;
public static final String SERIALIZED_NAME_FIREFOX_ICON = "firefox_icon";
@SerializedName(SERIALIZED_NAME_FIREFOX_ICON)
private String firefoxIcon;
public static final String SERIALIZED_NAME_CHROME_ICON = "chrome_icon";
@SerializedName(SERIALIZED_NAME_CHROME_ICON)
private String chromeIcon;
public static final String SERIALIZED_NAME_IOS_SOUND = "ios_sound";
@SerializedName(SERIALIZED_NAME_IOS_SOUND)
private String iosSound;
public static final String SERIALIZED_NAME_ANDROID_SOUND = "android_sound";
@SerializedName(SERIALIZED_NAME_ANDROID_SOUND)
private String androidSound;
public static final String SERIALIZED_NAME_HUAWEI_SOUND = "huawei_sound";
@SerializedName(SERIALIZED_NAME_HUAWEI_SOUND)
private String huaweiSound;
public static final String SERIALIZED_NAME_ADM_SOUND = "adm_sound";
@SerializedName(SERIALIZED_NAME_ADM_SOUND)
private String admSound;
public static final String SERIALIZED_NAME_WP_WNS_SOUND = "wp_wns_sound";
@SerializedName(SERIALIZED_NAME_WP_WNS_SOUND)
private String wpWnsSound;
public static final String SERIALIZED_NAME_ANDROID_LED_COLOR = "android_led_color";
@SerializedName(SERIALIZED_NAME_ANDROID_LED_COLOR)
private String androidLedColor;
public static final String SERIALIZED_NAME_HUAWEI_LED_COLOR = "huawei_led_color";
@SerializedName(SERIALIZED_NAME_HUAWEI_LED_COLOR)
private String huaweiLedColor;
public static final String SERIALIZED_NAME_ANDROID_ACCENT_COLOR = "android_accent_color";
@SerializedName(SERIALIZED_NAME_ANDROID_ACCENT_COLOR)
private String androidAccentColor;
public static final String SERIALIZED_NAME_HUAWEI_ACCENT_COLOR = "huawei_accent_color";
@SerializedName(SERIALIZED_NAME_HUAWEI_ACCENT_COLOR)
private String huaweiAccentColor;
public static final String SERIALIZED_NAME_ANDROID_VISIBILITY = "android_visibility";
@SerializedName(SERIALIZED_NAME_ANDROID_VISIBILITY)
private Integer androidVisibility;
public static final String SERIALIZED_NAME_HUAWEI_VISIBILITY = "huawei_visibility";
@SerializedName(SERIALIZED_NAME_HUAWEI_VISIBILITY)
private Integer huaweiVisibility;
public static final String SERIALIZED_NAME_IOS_BADGE_TYPE = "ios_badgeType";
@SerializedName(SERIALIZED_NAME_IOS_BADGE_TYPE)
private String iosBadgeType;
public static final String SERIALIZED_NAME_IOS_BADGE_COUNT = "ios_badgeCount";
@SerializedName(SERIALIZED_NAME_IOS_BADGE_COUNT)
private Integer iosBadgeCount;
public static final String SERIALIZED_NAME_COLLAPSE_ID = "collapse_id";
@SerializedName(SERIALIZED_NAME_COLLAPSE_ID)
private String collapseId;
public static final String SERIALIZED_NAME_WEB_PUSH_TOPIC = "web_push_topic";
@SerializedName(SERIALIZED_NAME_WEB_PUSH_TOPIC)
private String webPushTopic;
public static final String SERIALIZED_NAME_APNS_ALERT = "apns_alert";
@SerializedName(SERIALIZED_NAME_APNS_ALERT)
private Object apnsAlert;
public static final String SERIALIZED_NAME_DELAYED_OPTION = "delayed_option";
@SerializedName(SERIALIZED_NAME_DELAYED_OPTION)
private String delayedOption;
public static final String SERIALIZED_NAME_DELIVERY_TIME_OF_DAY = "delivery_time_of_day";
@SerializedName(SERIALIZED_NAME_DELIVERY_TIME_OF_DAY)
private String deliveryTimeOfDay;
public static final String SERIALIZED_NAME_TTL = "ttl";
@SerializedName(SERIALIZED_NAME_TTL)
private Integer ttl;
public static final String SERIALIZED_NAME_PRIORITY = "priority";
@SerializedName(SERIALIZED_NAME_PRIORITY)
private Integer priority;
public static final String SERIALIZED_NAME_APNS_PUSH_TYPE_OVERRIDE = "apns_push_type_override";
@SerializedName(SERIALIZED_NAME_APNS_PUSH_TYPE_OVERRIDE)
private String apnsPushTypeOverride;
public static final String SERIALIZED_NAME_THROTTLE_RATE_PER_MINUTE = "throttle_rate_per_minute";
@SerializedName(SERIALIZED_NAME_THROTTLE_RATE_PER_MINUTE)
private String throttleRatePerMinute;
public static final String SERIALIZED_NAME_ANDROID_GROUP = "android_group";
@SerializedName(SERIALIZED_NAME_ANDROID_GROUP)
private String androidGroup;
public static final String SERIALIZED_NAME_ANDROID_GROUP_MESSAGE = "android_group_message";
@SerializedName(SERIALIZED_NAME_ANDROID_GROUP_MESSAGE)
private String androidGroupMessage;
public static final String SERIALIZED_NAME_ADM_GROUP = "adm_group";
@SerializedName(SERIALIZED_NAME_ADM_GROUP)
private String admGroup;
public static final String SERIALIZED_NAME_ADM_GROUP_MESSAGE = "adm_group_message";
@SerializedName(SERIALIZED_NAME_ADM_GROUP_MESSAGE)
private Object admGroupMessage;
public static final String SERIALIZED_NAME_THREAD_ID = "thread_id";
@SerializedName(SERIALIZED_NAME_THREAD_ID)
private String threadId;
public static final String SERIALIZED_NAME_SUMMARY_ARG = "summary_arg";
@SerializedName(SERIALIZED_NAME_SUMMARY_ARG)
private String summaryArg;
public static final String SERIALIZED_NAME_SUMMARY_ARG_COUNT = "summary_arg_count";
@SerializedName(SERIALIZED_NAME_SUMMARY_ARG_COUNT)
private Integer summaryArgCount;
public static final String SERIALIZED_NAME_IOS_RELEVANCE_SCORE = "ios_relevance_score";
@SerializedName(SERIALIZED_NAME_IOS_RELEVANCE_SCORE)
private BigDecimal iosRelevanceScore;
public static final String SERIALIZED_NAME_IOS_INTERRUPTION_LEVEL = "ios_interruption_level";
@SerializedName(SERIALIZED_NAME_IOS_INTERRUPTION_LEVEL)
private String iosInterruptionLevel;
public static final String SERIALIZED_NAME_EMAIL_SUBJECT = "email_subject";
@SerializedName(SERIALIZED_NAME_EMAIL_SUBJECT)
private String emailSubject;
public static final String SERIALIZED_NAME_EMAIL_BODY = "email_body";
@SerializedName(SERIALIZED_NAME_EMAIL_BODY)
private String emailBody;
public static final String SERIALIZED_NAME_EMAIL_FROM_NAME = "email_from_name";
@SerializedName(SERIALIZED_NAME_EMAIL_FROM_NAME)
private String emailFromName;
public static final String SERIALIZED_NAME_EMAIL_FROM_ADDRESS = "email_from_address";
@SerializedName(SERIALIZED_NAME_EMAIL_FROM_ADDRESS)
private String emailFromAddress;
public static final String SERIALIZED_NAME_EMAIL_REPLY_TO_ADDRESS = "email_reply_to_address";
@SerializedName(SERIALIZED_NAME_EMAIL_REPLY_TO_ADDRESS)
private String emailReplyToAddress;
public static final String SERIALIZED_NAME_EMAIL_PREHEADER = "email_preheader";
@SerializedName(SERIALIZED_NAME_EMAIL_PREHEADER)
private String emailPreheader;
public static final String SERIALIZED_NAME_DISABLE_EMAIL_CLICK_TRACKING = "disable_email_click_tracking";
@SerializedName(SERIALIZED_NAME_DISABLE_EMAIL_CLICK_TRACKING)
private Boolean disableEmailClickTracking;
public static final String SERIALIZED_NAME_INCLUDE_UNSUBSCRIBED = "include_unsubscribed";
@SerializedName(SERIALIZED_NAME_INCLUDE_UNSUBSCRIBED)
private Boolean includeUnsubscribed;
public static final String SERIALIZED_NAME_EMAIL_BCC = "email_bcc";
@SerializedName(SERIALIZED_NAME_EMAIL_BCC)
private List<String> emailBcc = null;
public static final String SERIALIZED_NAME_EMAIL_SENDER_DOMAIN = "email_sender_domain";
@SerializedName(SERIALIZED_NAME_EMAIL_SENDER_DOMAIN)
private String emailSenderDomain;
public static final String SERIALIZED_NAME_SMS_FROM = "sms_from";
@SerializedName(SERIALIZED_NAME_SMS_FROM)
private String smsFrom;
public static final String SERIALIZED_NAME_SMS_MEDIA_URLS = "sms_media_urls";
@SerializedName(SERIALIZED_NAME_SMS_MEDIA_URLS)
private List<String> smsMediaUrls = null;
public static final String SERIALIZED_NAME_FILTERS = "filters";
@SerializedName(SERIALIZED_NAME_FILTERS)
private List<FilterExpression> filters = null;
public static final String SERIALIZED_NAME_CUSTOM_DATA = "custom_data";
@SerializedName(SERIALIZED_NAME_CUSTOM_DATA)
private Object customData;
public static final String SERIALIZED_NAME_HUAWEI_BADGE_CLASS = "huawei_badge_class";
@SerializedName(SERIALIZED_NAME_HUAWEI_BADGE_CLASS)
private String huaweiBadgeClass;
public static final String SERIALIZED_NAME_HUAWEI_BADGE_ADD_NUM = "huawei_badge_add_num";
@SerializedName(SERIALIZED_NAME_HUAWEI_BADGE_ADD_NUM)
private Integer huaweiBadgeAddNum;
public static final String SERIALIZED_NAME_HUAWEI_BADGE_SET_NUM = "huawei_badge_set_num";
@SerializedName(SERIALIZED_NAME_HUAWEI_BADGE_SET_NUM)
private Integer huaweiBadgeSetNum;
/**
* Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
*/
@JsonAdapter(HuaweiCategoryEnum.Adapter.class)
public enum HuaweiCategoryEnum {
IM("IM"),
VOIP("VOIP"),
SUBSCRIPTION("SUBSCRIPTION"),
TRAVEL("TRAVEL"),
HEALTH("HEALTH"),
WORK("WORK"),
ACCOUNT("ACCOUNT"),
EXPRESS("EXPRESS"),
FINANCE("FINANCE"),
DEVICE_REMINDER("DEVICE_REMINDER"),
MAIL("MAIL"),
MARKETING("MARKETING");
private String value;
HuaweiCategoryEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static HuaweiCategoryEnum fromValue(String value) {
for (HuaweiCategoryEnum b : HuaweiCategoryEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter<HuaweiCategoryEnum> {
@Override
public void write(final JsonWriter jsonWriter, final HuaweiCategoryEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public HuaweiCategoryEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return HuaweiCategoryEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_HUAWEI_CATEGORY = "huawei_category";
@SerializedName(SERIALIZED_NAME_HUAWEI_CATEGORY)
private HuaweiCategoryEnum huaweiCategory;
public static final String SERIALIZED_NAME_HUAWEI_BI_TAG = "huawei_bi_tag";
@SerializedName(SERIALIZED_NAME_HUAWEI_BI_TAG)
private String huaweiBiTag;
public BasicNotification() {
}
public BasicNotification(
Integer value,
AggregationEnum aggregation
) {
this();
this.value = value;
this.aggregation = aggregation;
}
public BasicNotification includedSegments(List<String> includedSegments) {
this.includedSegments = includedSegments;
return this;
}
public BasicNotification addIncludedSegmentsItem(String includedSegmentsItem) {
if (this.includedSegments == null) {
this.includedSegments = new ArrayList<>();
}
this.includedSegments.add(includedSegmentsItem);
return this;
}
/**
* The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"]
* @return includedSegments
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] ")
public List<String> getIncludedSegments() {
return includedSegments;
}
public void setIncludedSegments(List<String> includedSegments) {
this.includedSegments = includedSegments;
}
public BasicNotification excludedSegments(List<String> excludedSegments) {
this.excludedSegments = excludedSegments;
return this;
}
public BasicNotification addExcludedSegmentsItem(String excludedSegmentsItem) {
if (this.excludedSegments == null) {
this.excludedSegments = new ArrayList<>();
}
this.excludedSegments.add(excludedSegmentsItem);
return this;
}
/**
* Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"]
* @return excludedSegments
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] ")
public List<String> getExcludedSegments() {
return excludedSegments;
}
public void setExcludedSegments(List<String> excludedSegments) {
this.excludedSegments = excludedSegments;
}
public BasicNotification includeSubscriptionIds(List<String> includeSubscriptionIds) {
this.includeSubscriptionIds = includeSubscriptionIds;
return this;
}
public BasicNotification addIncludeSubscriptionIdsItem(String includeSubscriptionIdsItem) {
if (this.includeSubscriptionIds == null) {
this.includeSubscriptionIds = new ArrayList<>();
}
this.includeSubscriptionIds.add(includeSubscriptionIdsItem);
return this;
}
/**
* Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
* @return includeSubscriptionIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call ")
public List<String> getIncludeSubscriptionIds() {
return includeSubscriptionIds;
}
public void setIncludeSubscriptionIds(List<String> includeSubscriptionIds) {
this.includeSubscriptionIds = includeSubscriptionIds;
}
public BasicNotification includeEmailTokens(List<String> includeEmailTokens) {
this.includeEmailTokens = includeEmailTokens;
return this;
}
public BasicNotification addIncludeEmailTokensItem(String includeEmailTokensItem) {
if (this.includeEmailTokens == null) {
this.includeEmailTokens = new ArrayList<>();
}
this.includeEmailTokens.add(includeEmailTokensItem);
return this;
}
/**
* Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations.
* @return includeEmailTokens
* @deprecated
**/
@Deprecated
@javax.annotation.Nullable
@ApiModelProperty(value = "Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. ")
public List<String> getIncludeEmailTokens() {
return includeEmailTokens;
}
public void setIncludeEmailTokens(List<String> includeEmailTokens) {
this.includeEmailTokens = includeEmailTokens;
}
public BasicNotification emailTo(List<String> emailTo) {
this.emailTo = emailTo;
return this;
}
public BasicNotification addEmailToItem(String emailToItem) {
if (this.emailTo == null) {
this.emailTo = new ArrayList<>();
}
this.emailTo.add(emailToItem);
return this;
}
/**
* Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field.
* @return emailTo
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. ")
public List<String> getEmailTo() {
return emailTo;
}
public void setEmailTo(List<String> emailTo) {
this.emailTo = emailTo;
}
public BasicNotification includePhoneNumbers(List<String> includePhoneNumbers) {
this.includePhoneNumbers = includePhoneNumbers;
return this;
}
public BasicNotification addIncludePhoneNumbersItem(String includePhoneNumbersItem) {
if (this.includePhoneNumbers == null) {
this.includePhoneNumbers = new ArrayList<>();
}
this.includePhoneNumbers.add(includePhoneNumbersItem);
return this;
}
/**
* Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call
* @return includePhoneNumbers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call ")
public List<String> getIncludePhoneNumbers() {
return includePhoneNumbers;
}
public void setIncludePhoneNumbers(List<String> includePhoneNumbers) {
this.includePhoneNumbers = includePhoneNumbers;
}
public BasicNotification includeIosTokens(List<String> includeIosTokens) {
this.includeIosTokens = includeIosTokens;
return this;
}
public BasicNotification addIncludeIosTokensItem(String includeIosTokensItem) {
if (this.includeIosTokens == null) {
this.includeIosTokens = new ArrayList<>();
}
this.includeIosTokens.add(includeIosTokensItem);
return this;
}
/**
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
* @return includeIosTokens
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call ")
public List<String> getIncludeIosTokens() {
return includeIosTokens;
}
public void setIncludeIosTokens(List<String> includeIosTokens) {
this.includeIosTokens = includeIosTokens;
}
public BasicNotification includeWpWnsUris(List<String> includeWpWnsUris) {
this.includeWpWnsUris = includeWpWnsUris;
return this;
}
public BasicNotification addIncludeWpWnsUrisItem(String includeWpWnsUrisItem) {
if (this.includeWpWnsUris == null) {
this.includeWpWnsUris = new ArrayList<>();
}
this.includeWpWnsUris.add(includeWpWnsUrisItem);
return this;
}
/**
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
* @return includeWpWnsUris
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call ")
public List<String> getIncludeWpWnsUris() {
return includeWpWnsUris;
}
public void setIncludeWpWnsUris(List<String> includeWpWnsUris) {
this.includeWpWnsUris = includeWpWnsUris;
}
public BasicNotification includeAmazonRegIds(List<String> includeAmazonRegIds) {
this.includeAmazonRegIds = includeAmazonRegIds;
return this;
}
public BasicNotification addIncludeAmazonRegIdsItem(String includeAmazonRegIdsItem) {
if (this.includeAmazonRegIds == null) {
this.includeAmazonRegIds = new ArrayList<>();
}
this.includeAmazonRegIds.add(includeAmazonRegIdsItem);
return this;
}
/**
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
* @return includeAmazonRegIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call ")
public List<String> getIncludeAmazonRegIds() {
return includeAmazonRegIds;
}
public void setIncludeAmazonRegIds(List<String> includeAmazonRegIds) {
this.includeAmazonRegIds = includeAmazonRegIds;
}
public BasicNotification includeChromeRegIds(List<String> includeChromeRegIds) {
this.includeChromeRegIds = includeChromeRegIds;
return this;