-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmodel_player_notification_target.go
578 lines (490 loc) · 21.8 KB
/
model_player_notification_target.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
/*
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"
)
// PlayerNotificationTarget struct for PlayerNotificationTarget
type PlayerNotificationTarget struct {
// Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
// Deprecated
IncludePlayerIds []string `json:"include_player_ids,omitempty"`
// Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms.
// Deprecated
IncludeExternalUserIds []string `json:"include_external_user_ids,omitempty"`
// 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: [email protected] Limit of 2,000 entries per REST API call
IncludeEmailTokens []string `json:"include_email_tokens,omitempty"`
// 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
IncludePhoneNumbers []string `json:"include_phone_numbers,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids 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
IncludeIosTokens []string `json:"include_ios_tokens,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids 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
IncludeWpWnsUris []string `json:"include_wp_wns_uris,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids 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
IncludeAmazonRegIds []string `json:"include_amazon_reg_ids,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
IncludeChromeRegIds []string `json:"include_chrome_reg_ids,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
IncludeChromeWebRegIds []string `json:"include_chrome_web_reg_ids,omitempty"`
// Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
IncludeAndroidRegIds []string `json:"include_android_reg_ids,omitempty"`
IncludeAliases NullablePlayerNotificationTargetIncludeAliases `json:"include_aliases,omitempty"`
TargetChannel *string `json:"target_channel,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PlayerNotificationTarget PlayerNotificationTarget
// NewPlayerNotificationTarget instantiates a new PlayerNotificationTarget 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 NewPlayerNotificationTarget() *PlayerNotificationTarget {
this := PlayerNotificationTarget{}
return &this
}
// NewPlayerNotificationTargetWithDefaults instantiates a new PlayerNotificationTarget 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 NewPlayerNotificationTargetWithDefaults() *PlayerNotificationTarget {
this := PlayerNotificationTarget{}
return &this
}
// GetIncludePlayerIds returns the IncludePlayerIds field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *PlayerNotificationTarget) GetIncludePlayerIds() []string {
if o == nil {
var ret []string
return ret
}
return o.IncludePlayerIds
}
// GetIncludePlayerIdsOk returns a tuple with the IncludePlayerIds 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
// Deprecated
func (o *PlayerNotificationTarget) GetIncludePlayerIdsOk() ([]string, bool) {
if o == nil || o.IncludePlayerIds == nil {
return nil, false
}
return o.IncludePlayerIds, true
}
// HasIncludePlayerIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludePlayerIds() bool {
if o != nil && o.IncludePlayerIds != nil {
return true
}
return false
}
// SetIncludePlayerIds gets a reference to the given []string and assigns it to the IncludePlayerIds field.
// Deprecated
func (o *PlayerNotificationTarget) SetIncludePlayerIds(v []string) {
o.IncludePlayerIds = v
}
// GetIncludeExternalUserIds returns the IncludeExternalUserIds field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *PlayerNotificationTarget) GetIncludeExternalUserIds() []string {
if o == nil {
var ret []string
return ret
}
return o.IncludeExternalUserIds
}
// GetIncludeExternalUserIdsOk returns a tuple with the IncludeExternalUserIds 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
// Deprecated
func (o *PlayerNotificationTarget) GetIncludeExternalUserIdsOk() ([]string, bool) {
if o == nil || o.IncludeExternalUserIds == nil {
return nil, false
}
return o.IncludeExternalUserIds, true
}
// HasIncludeExternalUserIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeExternalUserIds() bool {
if o != nil && o.IncludeExternalUserIds != nil {
return true
}
return false
}
// SetIncludeExternalUserIds gets a reference to the given []string and assigns it to the IncludeExternalUserIds field.
// Deprecated
func (o *PlayerNotificationTarget) SetIncludeExternalUserIds(v []string) {
o.IncludeExternalUserIds = v
}
// GetIncludeEmailTokens returns the IncludeEmailTokens field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeEmailTokens() []string {
if o == nil || o.IncludeEmailTokens == nil {
var ret []string
return ret
}
return o.IncludeEmailTokens
}
// GetIncludeEmailTokensOk returns a tuple with the IncludeEmailTokens field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeEmailTokensOk() ([]string, bool) {
if o == nil || o.IncludeEmailTokens == nil {
return nil, false
}
return o.IncludeEmailTokens, true
}
// HasIncludeEmailTokens returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeEmailTokens() bool {
if o != nil && o.IncludeEmailTokens != nil {
return true
}
return false
}
// SetIncludeEmailTokens gets a reference to the given []string and assigns it to the IncludeEmailTokens field.
func (o *PlayerNotificationTarget) SetIncludeEmailTokens(v []string) {
o.IncludeEmailTokens = v
}
// GetIncludePhoneNumbers returns the IncludePhoneNumbers field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludePhoneNumbers() []string {
if o == nil || o.IncludePhoneNumbers == nil {
var ret []string
return ret
}
return o.IncludePhoneNumbers
}
// GetIncludePhoneNumbersOk returns a tuple with the IncludePhoneNumbers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludePhoneNumbersOk() ([]string, bool) {
if o == nil || o.IncludePhoneNumbers == nil {
return nil, false
}
return o.IncludePhoneNumbers, true
}
// HasIncludePhoneNumbers returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludePhoneNumbers() bool {
if o != nil && o.IncludePhoneNumbers != nil {
return true
}
return false
}
// SetIncludePhoneNumbers gets a reference to the given []string and assigns it to the IncludePhoneNumbers field.
func (o *PlayerNotificationTarget) SetIncludePhoneNumbers(v []string) {
o.IncludePhoneNumbers = v
}
// GetIncludeIosTokens returns the IncludeIosTokens field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeIosTokens() []string {
if o == nil || o.IncludeIosTokens == nil {
var ret []string
return ret
}
return o.IncludeIosTokens
}
// GetIncludeIosTokensOk returns a tuple with the IncludeIosTokens field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeIosTokensOk() ([]string, bool) {
if o == nil || o.IncludeIosTokens == nil {
return nil, false
}
return o.IncludeIosTokens, true
}
// HasIncludeIosTokens returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeIosTokens() bool {
if o != nil && o.IncludeIosTokens != nil {
return true
}
return false
}
// SetIncludeIosTokens gets a reference to the given []string and assigns it to the IncludeIosTokens field.
func (o *PlayerNotificationTarget) SetIncludeIosTokens(v []string) {
o.IncludeIosTokens = v
}
// GetIncludeWpWnsUris returns the IncludeWpWnsUris field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeWpWnsUris() []string {
if o == nil || o.IncludeWpWnsUris == nil {
var ret []string
return ret
}
return o.IncludeWpWnsUris
}
// GetIncludeWpWnsUrisOk returns a tuple with the IncludeWpWnsUris field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeWpWnsUrisOk() ([]string, bool) {
if o == nil || o.IncludeWpWnsUris == nil {
return nil, false
}
return o.IncludeWpWnsUris, true
}
// HasIncludeWpWnsUris returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeWpWnsUris() bool {
if o != nil && o.IncludeWpWnsUris != nil {
return true
}
return false
}
// SetIncludeWpWnsUris gets a reference to the given []string and assigns it to the IncludeWpWnsUris field.
func (o *PlayerNotificationTarget) SetIncludeWpWnsUris(v []string) {
o.IncludeWpWnsUris = v
}
// GetIncludeAmazonRegIds returns the IncludeAmazonRegIds field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeAmazonRegIds() []string {
if o == nil || o.IncludeAmazonRegIds == nil {
var ret []string
return ret
}
return o.IncludeAmazonRegIds
}
// GetIncludeAmazonRegIdsOk returns a tuple with the IncludeAmazonRegIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeAmazonRegIdsOk() ([]string, bool) {
if o == nil || o.IncludeAmazonRegIds == nil {
return nil, false
}
return o.IncludeAmazonRegIds, true
}
// HasIncludeAmazonRegIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeAmazonRegIds() bool {
if o != nil && o.IncludeAmazonRegIds != nil {
return true
}
return false
}
// SetIncludeAmazonRegIds gets a reference to the given []string and assigns it to the IncludeAmazonRegIds field.
func (o *PlayerNotificationTarget) SetIncludeAmazonRegIds(v []string) {
o.IncludeAmazonRegIds = v
}
// GetIncludeChromeRegIds returns the IncludeChromeRegIds field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeChromeRegIds() []string {
if o == nil || o.IncludeChromeRegIds == nil {
var ret []string
return ret
}
return o.IncludeChromeRegIds
}
// GetIncludeChromeRegIdsOk returns a tuple with the IncludeChromeRegIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeChromeRegIdsOk() ([]string, bool) {
if o == nil || o.IncludeChromeRegIds == nil {
return nil, false
}
return o.IncludeChromeRegIds, true
}
// HasIncludeChromeRegIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeChromeRegIds() bool {
if o != nil && o.IncludeChromeRegIds != nil {
return true
}
return false
}
// SetIncludeChromeRegIds gets a reference to the given []string and assigns it to the IncludeChromeRegIds field.
func (o *PlayerNotificationTarget) SetIncludeChromeRegIds(v []string) {
o.IncludeChromeRegIds = v
}
// GetIncludeChromeWebRegIds returns the IncludeChromeWebRegIds field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeChromeWebRegIds() []string {
if o == nil || o.IncludeChromeWebRegIds == nil {
var ret []string
return ret
}
return o.IncludeChromeWebRegIds
}
// GetIncludeChromeWebRegIdsOk returns a tuple with the IncludeChromeWebRegIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeChromeWebRegIdsOk() ([]string, bool) {
if o == nil || o.IncludeChromeWebRegIds == nil {
return nil, false
}
return o.IncludeChromeWebRegIds, true
}
// HasIncludeChromeWebRegIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeChromeWebRegIds() bool {
if o != nil && o.IncludeChromeWebRegIds != nil {
return true
}
return false
}
// SetIncludeChromeWebRegIds gets a reference to the given []string and assigns it to the IncludeChromeWebRegIds field.
func (o *PlayerNotificationTarget) SetIncludeChromeWebRegIds(v []string) {
o.IncludeChromeWebRegIds = v
}
// GetIncludeAndroidRegIds returns the IncludeAndroidRegIds field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetIncludeAndroidRegIds() []string {
if o == nil || o.IncludeAndroidRegIds == nil {
var ret []string
return ret
}
return o.IncludeAndroidRegIds
}
// GetIncludeAndroidRegIdsOk returns a tuple with the IncludeAndroidRegIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetIncludeAndroidRegIdsOk() ([]string, bool) {
if o == nil || o.IncludeAndroidRegIds == nil {
return nil, false
}
return o.IncludeAndroidRegIds, true
}
// HasIncludeAndroidRegIds returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeAndroidRegIds() bool {
if o != nil && o.IncludeAndroidRegIds != nil {
return true
}
return false
}
// SetIncludeAndroidRegIds gets a reference to the given []string and assigns it to the IncludeAndroidRegIds field.
func (o *PlayerNotificationTarget) SetIncludeAndroidRegIds(v []string) {
o.IncludeAndroidRegIds = v
}
// GetIncludeAliases returns the IncludeAliases field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PlayerNotificationTarget) GetIncludeAliases() PlayerNotificationTargetIncludeAliases {
if o == nil || o.IncludeAliases.Get() == nil {
var ret PlayerNotificationTargetIncludeAliases
return ret
}
return *o.IncludeAliases.Get()
}
// GetIncludeAliasesOk returns a tuple with the IncludeAliases 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 *PlayerNotificationTarget) GetIncludeAliasesOk() (*PlayerNotificationTargetIncludeAliases, bool) {
if o == nil {
return nil, false
}
return o.IncludeAliases.Get(), o.IncludeAliases.IsSet()
}
// HasIncludeAliases returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasIncludeAliases() bool {
if o != nil && o.IncludeAliases.IsSet() {
return true
}
return false
}
// SetIncludeAliases gets a reference to the given NullablePlayerNotificationTargetIncludeAliases and assigns it to the IncludeAliases field.
func (o *PlayerNotificationTarget) SetIncludeAliases(v PlayerNotificationTargetIncludeAliases) {
o.IncludeAliases.Set(&v)
}
// SetIncludeAliasesNil sets the value for IncludeAliases to be an explicit nil
func (o *PlayerNotificationTarget) SetIncludeAliasesNil() {
o.IncludeAliases.Set(nil)
}
// UnsetIncludeAliases ensures that no value is present for IncludeAliases, not even an explicit nil
func (o *PlayerNotificationTarget) UnsetIncludeAliases() {
o.IncludeAliases.Unset()
}
// GetTargetChannel returns the TargetChannel field value if set, zero value otherwise.
func (o *PlayerNotificationTarget) GetTargetChannel() string {
if o == nil || o.TargetChannel == nil {
var ret string
return ret
}
return *o.TargetChannel
}
// GetTargetChannelOk returns a tuple with the TargetChannel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlayerNotificationTarget) GetTargetChannelOk() (*string, bool) {
if o == nil || o.TargetChannel == nil {
return nil, false
}
return o.TargetChannel, true
}
// HasTargetChannel returns a boolean if a field has been set.
func (o *PlayerNotificationTarget) HasTargetChannel() bool {
if o != nil && o.TargetChannel != nil {
return true
}
return false
}
// SetTargetChannel gets a reference to the given string and assigns it to the TargetChannel field.
func (o *PlayerNotificationTarget) SetTargetChannel(v string) {
o.TargetChannel = &v
}
func (o PlayerNotificationTarget) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.IncludePlayerIds != nil {
toSerialize["include_player_ids"] = o.IncludePlayerIds
}
if o.IncludeExternalUserIds != nil {
toSerialize["include_external_user_ids"] = o.IncludeExternalUserIds
}
if o.IncludeEmailTokens != nil {
toSerialize["include_email_tokens"] = o.IncludeEmailTokens
}
if o.IncludePhoneNumbers != nil {
toSerialize["include_phone_numbers"] = o.IncludePhoneNumbers
}
if o.IncludeIosTokens != nil {
toSerialize["include_ios_tokens"] = o.IncludeIosTokens
}
if o.IncludeWpWnsUris != nil {
toSerialize["include_wp_wns_uris"] = o.IncludeWpWnsUris
}
if o.IncludeAmazonRegIds != nil {
toSerialize["include_amazon_reg_ids"] = o.IncludeAmazonRegIds
}
if o.IncludeChromeRegIds != nil {
toSerialize["include_chrome_reg_ids"] = o.IncludeChromeRegIds
}
if o.IncludeChromeWebRegIds != nil {
toSerialize["include_chrome_web_reg_ids"] = o.IncludeChromeWebRegIds
}
if o.IncludeAndroidRegIds != nil {
toSerialize["include_android_reg_ids"] = o.IncludeAndroidRegIds
}
if o.IncludeAliases.IsSet() {
toSerialize["include_aliases"] = o.IncludeAliases.Get()
}
if o.TargetChannel != nil {
toSerialize["target_channel"] = o.TargetChannel
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *PlayerNotificationTarget) UnmarshalJSON(bytes []byte) (err error) {
varPlayerNotificationTarget := _PlayerNotificationTarget{}
if err = json.Unmarshal(bytes, &varPlayerNotificationTarget); err == nil {
*o = PlayerNotificationTarget(varPlayerNotificationTarget)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "include_player_ids")
delete(additionalProperties, "include_external_user_ids")
delete(additionalProperties, "include_email_tokens")
delete(additionalProperties, "include_phone_numbers")
delete(additionalProperties, "include_ios_tokens")
delete(additionalProperties, "include_wp_wns_uris")
delete(additionalProperties, "include_amazon_reg_ids")
delete(additionalProperties, "include_chrome_reg_ids")
delete(additionalProperties, "include_chrome_web_reg_ids")
delete(additionalProperties, "include_android_reg_ids")
delete(additionalProperties, "include_aliases")
delete(additionalProperties, "target_channel")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePlayerNotificationTarget struct {
value *PlayerNotificationTarget
isSet bool
}
func (v NullablePlayerNotificationTarget) Get() *PlayerNotificationTarget {
return v.value
}
func (v *NullablePlayerNotificationTarget) Set(val *PlayerNotificationTarget) {
v.value = val
v.isSet = true
}
func (v NullablePlayerNotificationTarget) IsSet() bool {
return v.isSet
}
func (v *NullablePlayerNotificationTarget) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePlayerNotificationTarget(val *PlayerNotificationTarget) *NullablePlayerNotificationTarget {
return &NullablePlayerNotificationTarget{value: val, isSet: true}
}
func (v NullablePlayerNotificationTarget) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePlayerNotificationTarget) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}