-
Notifications
You must be signed in to change notification settings - Fork 7
/
model_basic_notification_all_of.go
4281 lines (3726 loc) · 158 KB
/
model_basic_notification_all_of.go
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
API version: 1.2.2
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package onesignal
import (
"encoding/json"
)
// BasicNotificationAllOf struct for BasicNotificationAllOf
type BasicNotificationAllOf struct {
Id *string `json:"id,omitempty"`
Value *int32 `json:"value,omitempty"`
// Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user.
Name NullableString `json:"name,omitempty"`
Aggregation *string `json:"aggregation,omitempty"`
// Indicates whether to send to all devices registered under your app's Apple iOS platform.
IsIos NullableBool `json:"isIos,omitempty"`
// Indicates whether to send to all devices registered under your app's Google Android platform.
IsAndroid NullableBool `json:"isAndroid,omitempty"`
// Indicates whether to send to all devices registered under your app's Huawei Android platform.
IsHuawei NullableBool `json:"isHuawei,omitempty"`
// Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari. You may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one.
IsAnyWeb NullableBool `json:"isAnyWeb,omitempty"`
// Indicates whether to send to all Google Chrome, Chrome on Android, and Mozilla Firefox users registered under your Chrome & Firefox web push platform.
IsChromeWeb NullableBool `json:"isChromeWeb,omitempty"`
// Indicates whether to send to all Mozilla Firefox desktop users registered under your Firefox web push platform.
IsFirefox NullableBool `json:"isFirefox,omitempty"`
// Does not support iOS Safari. Indicates whether to send to all Apple's Safari desktop users registered under your Safari web push platform. Read more iOS Safari
IsSafari NullableBool `json:"isSafari,omitempty"`
// Indicates whether to send to all devices registered under your app's Windows platform.
IsWPWNS NullableBool `json:"isWP_WNS,omitempty"`
// Indicates whether to send to all devices registered under your app's Amazon Fire platform.
IsAdm NullableBool `json:"isAdm,omitempty"`
// This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform.
IsChrome NullableBool `json:"isChrome,omitempty"`
// Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
ChannelForExternalUserIds *string `json:"channel_for_external_user_ids,omitempty"`
// Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
AppId *string `json:"app_id,omitempty"`
// Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
ExternalId NullableString `json:"external_id,omitempty"`
Contents NullableStringMap `json:"contents,omitempty"`
Headings NullableStringMap `json:"headings,omitempty"`
Subtitle NullableStringMap `json:"subtitle,omitempty"`
// Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1}
Data map[string]interface{} `json:"data,omitempty"`
// Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications.
HuaweiMsgType NullableString `json:"huawei_msg_type,omitempty"`
// Channel: Push Notifications Platform: All The URL to open in the browser when a user clicks on the notification. Note: iOS needs https or updated NSAppTransportSecurity in plist This field supports inline substitutions. Omit if including web_url or app_url Example: https://onesignal.com
Url NullableString `json:"url,omitempty"`
// Channel: Push Notifications Platform: All Browsers Same as url but only sent to web push platforms. Including Chrome, Firefox, Safari, Opera, etc. Example: https://onesignal.com
WebUrl NullableString `json:"web_url,omitempty"`
// Channel: Push Notifications Platform: All Browsers Same as url but only sent to web push platforms. Including iOS, Android, macOS, Windows, ChromeApps, etc. Example: https://onesignal.com
AppUrl NullableString `json:"app_url,omitempty"`
// Channel: Push Notifications Platform: iOS 10+ Adds media attachments to notifications. Set as JSON object, key as a media id of your choice and the value as a valid local filename or URL. User must press and hold on the notification to view. Do not set mutable_content to download attachments. The OneSignal SDK does this automatically Example: {\"id1\": \"https://domain.com/image.jpg\"}
IosAttachments map[string]interface{} `json:"ios_attachments,omitempty"`
// Channel: Push Notifications Platform: All Use a template you setup on our dashboard. The template_id is the UUID found in the URL when viewing a template on our dashboard. Example: be4a8044-bbd6-11e4-a581-000c2940e62c
TemplateId NullableString `json:"template_id,omitempty"`
// Channel: Push Notifications Platform: iOS Sending true wakes your app from background to run custom native code (Apple interprets this as content-available=1). Note: Not applicable if the app is in the \"force-quit\" state (i.e app was swiped away). Omit the contents field to prevent displaying a visible notification.
ContentAvailable NullableBool `json:"content_available,omitempty"`
// Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension.
MutableContent *bool `json:"mutable_content,omitempty"`
// Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App.
TargetContentIdentifier NullableString `json:"target_content_identifier,omitempty"`
// Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL.
BigPicture NullableString `json:"big_picture,omitempty"`
// Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL.
HuaweiBigPicture NullableString `json:"huawei_big_picture,omitempty"`
// Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL.
AdmBigPicture NullableString `json:"adm_big_picture,omitempty"`
// Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL.
ChromeBigPicture NullableString `json:"chrome_big_picture,omitempty"`
// Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons.
ChromeWebImage NullableString `json:"chrome_web_image,omitempty"`
// Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}]
Buttons []Button `json:"buttons,omitempty"`
// Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}]
WebButtons []Button `json:"web_buttons,omitempty"`
// Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category.
IosCategory NullableString `json:"ios_category,omitempty"`
// Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id.
AndroidChannelId *string `json:"android_channel_id,omitempty"`
// Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id.
HuaweiChannelId NullableString `json:"huawei_channel_id,omitempty"`
// Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code.
ExistingAndroidChannelId *string `json:"existing_android_channel_id,omitempty"`
// Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code.
HuaweiExistingChannelId NullableString `json:"huawei_existing_channel_id,omitempty"`
AndroidBackgroundLayout *BasicNotificationAllOfAndroidBackgroundLayout `json:"android_background_layout,omitempty"`
// Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons
SmallIcon NullableString `json:"small_icon,omitempty"`
// Channel: Push Notifications Platform: Huawei Icon shown in the status bar and on the top left of the notification. Use an Android resource path (E.g. /drawable/small_icon). Defaults to your app icon if not set.
HuaweiSmallIcon NullableString `json:"huawei_small_icon,omitempty"`
// Channel: Push Notifications Platform: Android Can be a drawable resource name or a URL. See: How to create large icons
LargeIcon NullableString `json:"large_icon,omitempty"`
// Channel: Push Notifications Platform: Huawei Can be a drawable resource name or a URL. See: How to create large icons
HuaweiLargeIcon NullableString `json:"huawei_large_icon,omitempty"`
// Channel: Push Notifications Platform: Amazon If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons
AdmSmallIcon NullableString `json:"adm_small_icon,omitempty"`
// Channel: Push Notifications Platform: Amazon If blank the small_icon is used. Can be a drawable resource name or a URL. See: How to create large icons
AdmLargeIcon NullableString `json:"adm_large_icon,omitempty"`
// Channel: Push Notifications Platform: Chrome Sets the web push notification's icon. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices. Firefox will also use this icon, unless you specify firefox_icon.
ChromeWebIcon NullableString `json:"chrome_web_icon,omitempty"`
// Channel: Push Notifications Platform: Chrome Sets the web push notification icon for Android devices in the notification shade. Please see Web Push Notification Badge.
ChromeWebBadge NullableString `json:"chrome_web_badge,omitempty"`
// Channel: Push Notifications Platform: Firefox Not recommended Few people need to set Firefox-specific icons. We recommend setting chrome_web_icon instead, which Firefox will also use. Sets the web push notification's icon for Firefox. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices.
FirefoxIcon NullableString `json:"firefox_icon,omitempty"`
// Channel: Push Notifications Platform: ChromeApp This flag is not used for web push For web push, please see chrome_web_icon instead. The local URL to an icon to use. If blank, the app icon will be used.
ChromeIcon NullableString `json:"chrome_icon,omitempty"`
// Channel: Push Notifications Platform: iOS Sound file that is included in your app to play instead of the default device notification sound. Pass nil to disable vibration and sound for the notification. Example: \"notification.wav\"
IosSound NullableString `json:"ios_sound,omitempty"`
// Channel: Push Notifications Platform: Android ⚠️Deprecated, this field doesn't work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sound file that is included in your app to play instead of the default device notification sound. Pass nil to disable sound for the notification. NOTE: Leave off file extension for Android. Example: \"notification\"
AndroidSound NullableString `json:"android_sound,omitempty"`
// Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. Sound file that is included in your app to play instead of the default device notification sound. NOTE: Leave off file extension for and include the full path. Example: \"/res/raw/notification\"
HuaweiSound NullableString `json:"huawei_sound,omitempty"`
// Channel: Push Notifications Platform: Amazon ⚠️Deprecated, this field doesn't work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sound file that is included in your app to play instead of the default device notification sound. Pass nil to disable sound for the notification. NOTE: Leave off file extension for Android. Example: \"notification\"
AdmSound NullableString `json:"adm_sound,omitempty"`
// Channel: Push Notifications Platform: Windows Sound file that is included in your app to play instead of the default device notification sound. Example: \"notification.wav\"
WpWnsSound NullableString `json:"wp_wns_sound,omitempty"`
// Channel: Push Notifications Platform: Android ⚠️Deprecated, this field doesn't work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sets the devices LED notification light if the device has one. ARGB Hex format. Example(Blue): \"FF0000FF\"
AndroidLedColor NullableString `json:"android_led_color,omitempty"`
// Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. Sets the devices LED notification light if the device has one. RGB Hex format. Example(Blue): \"0000FF\"
HuaweiLedColor NullableString `json:"huawei_led_color,omitempty"`
// Channel: Push Notifications Platform: Android Sets the background color of the notification circle to the left of the notification text. Only applies to apps targeting Android API level 21+ on Android 5.0+ devices. Example(Red): \"FFFF0000\"
AndroidAccentColor NullableString `json:"android_accent_color,omitempty"`
// Channel: Push Notifications Platform: Huawei Accent Color used on Action Buttons and Group overflow count. Uses RGB Hex value (E.g. #9900FF). Defaults to device's theme color if not set.
HuaweiAccentColor NullableString `json:"huawei_accent_color,omitempty"`
// Channel: Push Notifications Platform: Android 5.0_ ⚠️Deprecated, this field doesn't work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. 1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.) 0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings) -1 = Secret (Notification does not show on the lock screen at all)
AndroidVisibility NullableInt32 `json:"android_visibility,omitempty"`
// Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. 1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.) 0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings) -1 = Secret (Notification does not show on the lock screen at all)
HuaweiVisibility NullableInt32 `json:"huawei_visibility,omitempty"`
// Channel: Push Notifications Platform: iOS Describes whether to set or increase/decrease your app's iOS badge count by the ios_badgeCount specified count. Can specify None, SetTo, or Increase. `None` leaves the count unaffected. `SetTo` directly sets the badge count to the number specified in ios_badgeCount. `Increase` adds the number specified in ios_badgeCount to the total. Use a negative number to decrease the badge count.
IosBadgeType NullableString `json:"ios_badgeType,omitempty"`
// Channel: Push Notifications Platform: iOS Used with ios_badgeType, describes the value to set or amount to increase/decrease your app's iOS badge count by. You can use a negative number to decrease the badge count when used with an ios_badgeType of Increase.
IosBadgeCount NullableInt32 `json:"ios_badgeCount,omitempty"`
// Channel: Push Notifications Platform: iOS 10+, Android Only one notification with the same id will be shown on the device. Use the same id to update an existing notification instead of showing a new one. Limit of 64 characters.
CollapseId *string `json:"collapse_id,omitempty"`
// Channel: Push Notifications Platform: All Browsers Display multiple notifications at once with different topics.
WebPushTopic NullableString `json:"web_push_topic,omitempty"`
// Channel: Push Notifications Platform: iOS 10+ iOS can localize push notification messages on the client using special parameters such as loc-key. When using the Create Notification endpoint, you must include these parameters inside of a field called apns_alert. Please see Apple's guide on localizing push notifications to learn more.
ApnsAlert map[string]interface{} `json:"apns_alert,omitempty"`
// Channel: All Possible values are: timezone (Deliver at a specific time-of-day in each users own timezone) last-active Same as Intelligent Delivery . (Deliver at the same time of day as each user last used your app). If send_after is used, this takes effect after the send_after time has elapsed.
DelayedOption NullableString `json:"delayed_option,omitempty"`
// Channel: All Use with delayed_option=timezone. Examples: \"9:00AM\" \"21:45\" \"9:45:30\"
DeliveryTimeOfDay NullableString `json:"delivery_time_of_day,omitempty"`
// Channel: Push Notifications Platform: iOS, Android, Chrome, Firefox, Safari, ChromeWeb Time To Live - In seconds. The notification will be expired if the device does not come back online within this time. The default is 259,200 seconds (3 days). Max value to set is 2419200 seconds (28 days).
Ttl NullableInt32 `json:"ttl,omitempty"`
// Channel: Push Notifications Platform: Android, Chrome, ChromeWeb Delivery priority through the push server (example GCM/FCM). Pass 10 for high priority or any other integer for normal priority. Defaults to normal priority for Android and high for iOS. For Android 6.0+ devices setting priority to high will wake the device out of doze mode.
Priority NullableInt32 `json:"priority,omitempty"`
// Channel: Push Notifications Platform: iOS valid values: voip Set the value to voip for sending VoIP Notifications This field maps to the APNS header apns-push-type. Note: alert and background are automatically set by OneSignal
ApnsPushTypeOverride *string `json:"apns_push_type_override,omitempty"`
// Channel: All Apps with throttling enabled: - the parameter value will be used to override the default application throttling value set from the dashboard settings. - parameter value 0 indicates not to apply throttling to the notification. - if the parameter is not passed then the default app throttling value will be applied to the notification. Apps with throttling disabled: - this parameter can be used to throttle delivery for the notification even though throttling is not enabled at the application level. Refer to throttling for more details.
ThrottleRatePerMinute NullableString `json:"throttle_rate_per_minute,omitempty"`
// Channel: Push Notifications Platform: Android Notifications with the same group will be stacked together using Android's Notification Grouping feature.
AndroidGroup NullableString `json:"android_group,omitempty"`
// Channel: Push Notifications Platform: Android Note: This only works for Android 6 and older. Android 7+ allows full expansion of all message. Summary message to display when 2+ notifications are stacked together. Default is \"# new messages\". Include $[notif_count] in your message and it will be replaced with the current number. Languages - The value of each key is the message that will be sent to users for that language. \"en\" (English) is required. The key of each hash is either a a 2 character language code or one of zh-Hans/zh-Hant for Simplified or Traditional Chinese. Read more: supported languages. Example: {\"en\": \"You have $[notif_count] new messages\"}
AndroidGroupMessage NullableString `json:"android_group_message,omitempty"`
// Channel: Push Notifications Platform: Amazon Notifications with the same group will be stacked together using Android's Notification Grouping feature.
AdmGroup NullableString `json:"adm_group,omitempty"`
// Channel: Push Notifications Platform: Amazon Summary message to display when 2+ notifications are stacked together. Default is \"# new messages\". Include $[notif_count] in your message and it will be replaced with the current number. \"en\" (English) is required. The key of each hash is either a a 2 character language code or one of zh-Hans/zh-Hant for Simplified or Traditional Chinese. The value of each key is the message that will be sent to users for that language. Example: {\"en\": \"You have $[notif_count] new messages\"}
AdmGroupMessage map[string]interface{} `json:"adm_group_message,omitempty"`
// Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group.
ThreadId NullableString `json:"thread_id,omitempty"`
// Channel: Push Notifications Platform: iOS 12+ When using thread_id to create grouped notifications in iOS 12+, you can also control the summary. For example, a grouped notification can say \"12 more notifications from John Doe\". The summary_arg lets you set the name of the person/thing the notifications are coming from, and will show up as \"X more notifications from summary_arg\"
SummaryArg *string `json:"summary_arg,omitempty"`
// Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\"
SummaryArgCount *int32 `json:"summary_arg_count,omitempty"`
// Channel: Email Required. The subject of the email.
EmailSubject NullableString `json:"email_subject,omitempty"`
// Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid.
EmailBody *string `json:"email_body,omitempty"`
// Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings.
EmailFromName NullableString `json:"email_from_name,omitempty"`
// Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
EmailFromAddress NullableString `json:"email_from_address,omitempty"`
// Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
EmailPreheader NullableString `json:"email_preheader,omitempty"`
// Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.
IncludeUnsubscribed *bool `json:"include_unsubscribed,omitempty"`
// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
SmsFrom NullableString `json:"sms_from,omitempty"`
// Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
SmsMediaUrls []string `json:"sms_media_urls,omitempty"`
Filters []Filter `json:"filters,omitempty"`
// Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
CustomData map[string]interface{} `json:"custom_data,omitempty"`
AdditionalProperties map[string]interface{}
}
type _BasicNotificationAllOf BasicNotificationAllOf
// NewBasicNotificationAllOf instantiates a new BasicNotificationAllOf object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBasicNotificationAllOf() *BasicNotificationAllOf {
this := BasicNotificationAllOf{}
return &this
}
// NewBasicNotificationAllOfWithDefaults instantiates a new BasicNotificationAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBasicNotificationAllOfWithDefaults() *BasicNotificationAllOf {
this := BasicNotificationAllOf{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *BasicNotificationAllOf) GetId() string {
if o == nil || o.Id == nil {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BasicNotificationAllOf) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *BasicNotificationAllOf) SetId(v string) {
o.Id = &v
}
// GetValue returns the Value field value if set, zero value otherwise.
func (o *BasicNotificationAllOf) GetValue() int32 {
if o == nil || o.Value == nil {
var ret int32
return ret
}
return *o.Value
}
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BasicNotificationAllOf) GetValueOk() (*int32, bool) {
if o == nil || o.Value == nil {
return nil, false
}
return o.Value, true
}
// HasValue returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasValue() bool {
if o != nil && o.Value != nil {
return true
}
return false
}
// SetValue gets a reference to the given int32 and assigns it to the Value field.
func (o *BasicNotificationAllOf) SetValue(v int32) {
o.Value = &v
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetName() string {
if o == nil || o.Name.Get() == nil {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *BasicNotificationAllOf) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *BasicNotificationAllOf) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetName() {
o.Name.Unset()
}
// GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *BasicNotificationAllOf) GetAggregation() string {
if o == nil || o.Aggregation == nil {
var ret string
return ret
}
return *o.Aggregation
}
// GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BasicNotificationAllOf) GetAggregationOk() (*string, bool) {
if o == nil || o.Aggregation == nil {
return nil, false
}
return o.Aggregation, true
}
// HasAggregation returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasAggregation() bool {
if o != nil && o.Aggregation != nil {
return true
}
return false
}
// SetAggregation gets a reference to the given string and assigns it to the Aggregation field.
func (o *BasicNotificationAllOf) SetAggregation(v string) {
o.Aggregation = &v
}
// GetIsIos returns the IsIos field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsIos() bool {
if o == nil || o.IsIos.Get() == nil {
var ret bool
return ret
}
return *o.IsIos.Get()
}
// GetIsIosOk returns a tuple with the IsIos field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsIosOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsIos.Get(), o.IsIos.IsSet()
}
// HasIsIos returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsIos() bool {
if o != nil && o.IsIos.IsSet() {
return true
}
return false
}
// SetIsIos gets a reference to the given NullableBool and assigns it to the IsIos field.
func (o *BasicNotificationAllOf) SetIsIos(v bool) {
o.IsIos.Set(&v)
}
// SetIsIosNil sets the value for IsIos to be an explicit nil
func (o *BasicNotificationAllOf) SetIsIosNil() {
o.IsIos.Set(nil)
}
// UnsetIsIos ensures that no value is present for IsIos, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsIos() {
o.IsIos.Unset()
}
// GetIsAndroid returns the IsAndroid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsAndroid() bool {
if o == nil || o.IsAndroid.Get() == nil {
var ret bool
return ret
}
return *o.IsAndroid.Get()
}
// GetIsAndroidOk returns a tuple with the IsAndroid field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsAndroidOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsAndroid.Get(), o.IsAndroid.IsSet()
}
// HasIsAndroid returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsAndroid() bool {
if o != nil && o.IsAndroid.IsSet() {
return true
}
return false
}
// SetIsAndroid gets a reference to the given NullableBool and assigns it to the IsAndroid field.
func (o *BasicNotificationAllOf) SetIsAndroid(v bool) {
o.IsAndroid.Set(&v)
}
// SetIsAndroidNil sets the value for IsAndroid to be an explicit nil
func (o *BasicNotificationAllOf) SetIsAndroidNil() {
o.IsAndroid.Set(nil)
}
// UnsetIsAndroid ensures that no value is present for IsAndroid, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsAndroid() {
o.IsAndroid.Unset()
}
// GetIsHuawei returns the IsHuawei field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsHuawei() bool {
if o == nil || o.IsHuawei.Get() == nil {
var ret bool
return ret
}
return *o.IsHuawei.Get()
}
// GetIsHuaweiOk returns a tuple with the IsHuawei field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsHuaweiOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsHuawei.Get(), o.IsHuawei.IsSet()
}
// HasIsHuawei returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsHuawei() bool {
if o != nil && o.IsHuawei.IsSet() {
return true
}
return false
}
// SetIsHuawei gets a reference to the given NullableBool and assigns it to the IsHuawei field.
func (o *BasicNotificationAllOf) SetIsHuawei(v bool) {
o.IsHuawei.Set(&v)
}
// SetIsHuaweiNil sets the value for IsHuawei to be an explicit nil
func (o *BasicNotificationAllOf) SetIsHuaweiNil() {
o.IsHuawei.Set(nil)
}
// UnsetIsHuawei ensures that no value is present for IsHuawei, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsHuawei() {
o.IsHuawei.Unset()
}
// GetIsAnyWeb returns the IsAnyWeb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsAnyWeb() bool {
if o == nil || o.IsAnyWeb.Get() == nil {
var ret bool
return ret
}
return *o.IsAnyWeb.Get()
}
// GetIsAnyWebOk returns a tuple with the IsAnyWeb field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsAnyWebOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsAnyWeb.Get(), o.IsAnyWeb.IsSet()
}
// HasIsAnyWeb returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsAnyWeb() bool {
if o != nil && o.IsAnyWeb.IsSet() {
return true
}
return false
}
// SetIsAnyWeb gets a reference to the given NullableBool and assigns it to the IsAnyWeb field.
func (o *BasicNotificationAllOf) SetIsAnyWeb(v bool) {
o.IsAnyWeb.Set(&v)
}
// SetIsAnyWebNil sets the value for IsAnyWeb to be an explicit nil
func (o *BasicNotificationAllOf) SetIsAnyWebNil() {
o.IsAnyWeb.Set(nil)
}
// UnsetIsAnyWeb ensures that no value is present for IsAnyWeb, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsAnyWeb() {
o.IsAnyWeb.Unset()
}
// GetIsChromeWeb returns the IsChromeWeb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsChromeWeb() bool {
if o == nil || o.IsChromeWeb.Get() == nil {
var ret bool
return ret
}
return *o.IsChromeWeb.Get()
}
// GetIsChromeWebOk returns a tuple with the IsChromeWeb field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsChromeWebOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsChromeWeb.Get(), o.IsChromeWeb.IsSet()
}
// HasIsChromeWeb returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsChromeWeb() bool {
if o != nil && o.IsChromeWeb.IsSet() {
return true
}
return false
}
// SetIsChromeWeb gets a reference to the given NullableBool and assigns it to the IsChromeWeb field.
func (o *BasicNotificationAllOf) SetIsChromeWeb(v bool) {
o.IsChromeWeb.Set(&v)
}
// SetIsChromeWebNil sets the value for IsChromeWeb to be an explicit nil
func (o *BasicNotificationAllOf) SetIsChromeWebNil() {
o.IsChromeWeb.Set(nil)
}
// UnsetIsChromeWeb ensures that no value is present for IsChromeWeb, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsChromeWeb() {
o.IsChromeWeb.Unset()
}
// GetIsFirefox returns the IsFirefox field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsFirefox() bool {
if o == nil || o.IsFirefox.Get() == nil {
var ret bool
return ret
}
return *o.IsFirefox.Get()
}
// GetIsFirefoxOk returns a tuple with the IsFirefox field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsFirefoxOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsFirefox.Get(), o.IsFirefox.IsSet()
}
// HasIsFirefox returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsFirefox() bool {
if o != nil && o.IsFirefox.IsSet() {
return true
}
return false
}
// SetIsFirefox gets a reference to the given NullableBool and assigns it to the IsFirefox field.
func (o *BasicNotificationAllOf) SetIsFirefox(v bool) {
o.IsFirefox.Set(&v)
}
// SetIsFirefoxNil sets the value for IsFirefox to be an explicit nil
func (o *BasicNotificationAllOf) SetIsFirefoxNil() {
o.IsFirefox.Set(nil)
}
// UnsetIsFirefox ensures that no value is present for IsFirefox, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsFirefox() {
o.IsFirefox.Unset()
}
// GetIsSafari returns the IsSafari field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsSafari() bool {
if o == nil || o.IsSafari.Get() == nil {
var ret bool
return ret
}
return *o.IsSafari.Get()
}
// GetIsSafariOk returns a tuple with the IsSafari field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsSafariOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsSafari.Get(), o.IsSafari.IsSet()
}
// HasIsSafari returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsSafari() bool {
if o != nil && o.IsSafari.IsSet() {
return true
}
return false
}
// SetIsSafari gets a reference to the given NullableBool and assigns it to the IsSafari field.
func (o *BasicNotificationAllOf) SetIsSafari(v bool) {
o.IsSafari.Set(&v)
}
// SetIsSafariNil sets the value for IsSafari to be an explicit nil
func (o *BasicNotificationAllOf) SetIsSafariNil() {
o.IsSafari.Set(nil)
}
// UnsetIsSafari ensures that no value is present for IsSafari, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsSafari() {
o.IsSafari.Unset()
}
// GetIsWPWNS returns the IsWPWNS field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsWPWNS() bool {
if o == nil || o.IsWPWNS.Get() == nil {
var ret bool
return ret
}
return *o.IsWPWNS.Get()
}
// GetIsWPWNSOk returns a tuple with the IsWPWNS field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsWPWNSOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsWPWNS.Get(), o.IsWPWNS.IsSet()
}
// HasIsWPWNS returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsWPWNS() bool {
if o != nil && o.IsWPWNS.IsSet() {
return true
}
return false
}
// SetIsWPWNS gets a reference to the given NullableBool and assigns it to the IsWPWNS field.
func (o *BasicNotificationAllOf) SetIsWPWNS(v bool) {
o.IsWPWNS.Set(&v)
}
// SetIsWPWNSNil sets the value for IsWPWNS to be an explicit nil
func (o *BasicNotificationAllOf) SetIsWPWNSNil() {
o.IsWPWNS.Set(nil)
}
// UnsetIsWPWNS ensures that no value is present for IsWPWNS, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsWPWNS() {
o.IsWPWNS.Unset()
}
// GetIsAdm returns the IsAdm field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsAdm() bool {
if o == nil || o.IsAdm.Get() == nil {
var ret bool
return ret
}
return *o.IsAdm.Get()
}
// GetIsAdmOk returns a tuple with the IsAdm field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsAdmOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsAdm.Get(), o.IsAdm.IsSet()
}
// HasIsAdm returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsAdm() bool {
if o != nil && o.IsAdm.IsSet() {
return true
}
return false
}
// SetIsAdm gets a reference to the given NullableBool and assigns it to the IsAdm field.
func (o *BasicNotificationAllOf) SetIsAdm(v bool) {
o.IsAdm.Set(&v)
}
// SetIsAdmNil sets the value for IsAdm to be an explicit nil
func (o *BasicNotificationAllOf) SetIsAdmNil() {
o.IsAdm.Set(nil)
}
// UnsetIsAdm ensures that no value is present for IsAdm, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsAdm() {
o.IsAdm.Unset()
}
// GetIsChrome returns the IsChrome field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetIsChrome() bool {
if o == nil || o.IsChrome.Get() == nil {
var ret bool
return ret
}
return *o.IsChrome.Get()
}
// GetIsChromeOk returns a tuple with the IsChrome field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetIsChromeOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IsChrome.Get(), o.IsChrome.IsSet()
}
// HasIsChrome returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasIsChrome() bool {
if o != nil && o.IsChrome.IsSet() {
return true
}
return false
}
// SetIsChrome gets a reference to the given NullableBool and assigns it to the IsChrome field.
func (o *BasicNotificationAllOf) SetIsChrome(v bool) {
o.IsChrome.Set(&v)
}
// SetIsChromeNil sets the value for IsChrome to be an explicit nil
func (o *BasicNotificationAllOf) SetIsChromeNil() {
o.IsChrome.Set(nil)
}
// UnsetIsChrome ensures that no value is present for IsChrome, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetIsChrome() {
o.IsChrome.Unset()
}
// GetChannelForExternalUserIds returns the ChannelForExternalUserIds field value if set, zero value otherwise.
func (o *BasicNotificationAllOf) GetChannelForExternalUserIds() string {
if o == nil || o.ChannelForExternalUserIds == nil {
var ret string
return ret
}
return *o.ChannelForExternalUserIds
}
// GetChannelForExternalUserIdsOk returns a tuple with the ChannelForExternalUserIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BasicNotificationAllOf) GetChannelForExternalUserIdsOk() (*string, bool) {
if o == nil || o.ChannelForExternalUserIds == nil {
return nil, false
}
return o.ChannelForExternalUserIds, true
}
// HasChannelForExternalUserIds returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasChannelForExternalUserIds() bool {
if o != nil && o.ChannelForExternalUserIds != nil {
return true
}
return false
}
// SetChannelForExternalUserIds gets a reference to the given string and assigns it to the ChannelForExternalUserIds field.
func (o *BasicNotificationAllOf) SetChannelForExternalUserIds(v string) {
o.ChannelForExternalUserIds = &v
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *BasicNotificationAllOf) GetAppId() string {
if o == nil || o.AppId == nil {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BasicNotificationAllOf) GetAppIdOk() (*string, bool) {
if o == nil || o.AppId == nil {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasAppId() bool {
if o != nil && o.AppId != nil {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *BasicNotificationAllOf) SetAppId(v string) {
o.AppId = &v
}
// GetExternalId returns the ExternalId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetExternalId() string {
if o == nil || o.ExternalId.Get() == nil {
var ret string
return ret
}
return *o.ExternalId.Get()
}
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetExternalIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ExternalId.Get(), o.ExternalId.IsSet()
}
// HasExternalId returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasExternalId() bool {
if o != nil && o.ExternalId.IsSet() {
return true
}
return false
}
// SetExternalId gets a reference to the given NullableString and assigns it to the ExternalId field.
func (o *BasicNotificationAllOf) SetExternalId(v string) {
o.ExternalId.Set(&v)
}
// SetExternalIdNil sets the value for ExternalId to be an explicit nil
func (o *BasicNotificationAllOf) SetExternalIdNil() {
o.ExternalId.Set(nil)
}
// UnsetExternalId ensures that no value is present for ExternalId, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetExternalId() {
o.ExternalId.Unset()
}
// GetContents returns the Contents field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetContents() StringMap {
if o == nil || o.Contents.Get() == nil {
var ret StringMap
return ret
}
return *o.Contents.Get()
}
// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetContentsOk() (*StringMap, bool) {
if o == nil {
return nil, false
}
return o.Contents.Get(), o.Contents.IsSet()
}
// HasContents returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasContents() bool {
if o != nil && o.Contents.IsSet() {
return true
}
return false
}
// SetContents gets a reference to the given NullableStringMap and assigns it to the Contents field.
func (o *BasicNotificationAllOf) SetContents(v StringMap) {
o.Contents.Set(&v)
}
// SetContentsNil sets the value for Contents to be an explicit nil
func (o *BasicNotificationAllOf) SetContentsNil() {
o.Contents.Set(nil)
}
// UnsetContents ensures that no value is present for Contents, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetContents() {
o.Contents.Unset()
}
// GetHeadings returns the Headings field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetHeadings() StringMap {
if o == nil || o.Headings.Get() == nil {
var ret StringMap
return ret
}
return *o.Headings.Get()
}
// GetHeadingsOk returns a tuple with the Headings field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetHeadingsOk() (*StringMap, bool) {
if o == nil {
return nil, false
}
return o.Headings.Get(), o.Headings.IsSet()
}
// HasHeadings returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasHeadings() bool {
if o != nil && o.Headings.IsSet() {
return true
}
return false
}
// SetHeadings gets a reference to the given NullableStringMap and assigns it to the Headings field.
func (o *BasicNotificationAllOf) SetHeadings(v StringMap) {
o.Headings.Set(&v)
}
// SetHeadingsNil sets the value for Headings to be an explicit nil
func (o *BasicNotificationAllOf) SetHeadingsNil() {
o.Headings.Set(nil)
}
// UnsetHeadings ensures that no value is present for Headings, not even an explicit nil
func (o *BasicNotificationAllOf) UnsetHeadings() {
o.Headings.Unset()
}
// GetSubtitle returns the Subtitle field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BasicNotificationAllOf) GetSubtitle() StringMap {
if o == nil || o.Subtitle.Get() == nil {
var ret StringMap
return ret
}
return *o.Subtitle.Get()
}
// GetSubtitleOk returns a tuple with the Subtitle field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BasicNotificationAllOf) GetSubtitleOk() (*StringMap, bool) {
if o == nil {
return nil, false
}
return o.Subtitle.Get(), o.Subtitle.IsSet()
}
// HasSubtitle returns a boolean if a field has been set.
func (o *BasicNotificationAllOf) HasSubtitle() bool {
if o != nil && o.Subtitle.IsSet() {
return true
}
return false
}
// SetSubtitle gets a reference to the given NullableStringMap and assigns it to the Subtitle field.
func (o *BasicNotificationAllOf) SetSubtitle(v StringMap) {
o.Subtitle.Set(&v)
}
// SetSubtitleNil sets the value for Subtitle to be an explicit nil
func (o *BasicNotificationAllOf) SetSubtitleNil() {
o.Subtitle.Set(nil)