-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmodel_player.go
1213 lines (1043 loc) · 35.2 KB
/
model_player.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"
)
// Player struct for Player
type Player struct {
// The device's OneSignal ID
Id *string `json:"id,omitempty"`
// If true, this is the equivalent of a user being Unsubscribed
InvalidIdentifier *bool `json:"invalid_identifier,omitempty"`
AppId *string `json:"app_id,omitempty"`
// Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS
DeviceType int32 `json:"device_type"`
// a custom user ID
ExternalUserId NullableString `json:"external_user_id,omitempty"`
// Only required if you have enabled Identity Verification and device_type is NOT 11 email.
ExternalUserIdAuthHash *string `json:"external_user_id_auth_hash,omitempty"`
// Email - Only required if you have enabled Identity Verification and device_type is email (11).
EmailAuthHash *string `json:"email_auth_hash,omitempty"`
// Recommended: For Push Notifications, this is the Push Token Identifier from Google or Apple. For Apple Push identifiers, you must strip all non alphanumeric characters. Examples: iOS: 7abcd558f29d0b1f048083e2834ad8ea4b3d87d8ad9c088b33c132706ff445f0 Android: APA91bHbYHk7aq-Uam_2pyJ2qbZvqllyyh2wjfPRaw5gLEX2SUlQBRvOc6sck1sa7H7nGeLNlDco8lXj83HWWwzV... For Email Addresses, set the full email address [email protected] and make sure to set device_type to 11.
Identifier NullableString `json:"identifier,omitempty"`
// Language code. Typically lower case two letters, except for Chinese where it must be one of zh-Hans or zh-Hant. Example: en
Language *string `json:"language,omitempty"`
// Number of seconds away from UTC. Example: -28800
Timezone NullableInt32 `json:"timezone,omitempty"`
// Version of your app. Example: 1.1
GameVersion NullableString `json:"game_version,omitempty"`
// Device make and model. Example: iPhone5,1
DeviceModel NullableString `json:"device_model,omitempty"`
// Device operating system version. Example: 7.0.4
DeviceOs NullableString `json:"device_os,omitempty"`
// The ad id for the device's platform: Android = Advertising Id iOS = identifierForVendor WP8.0 = DeviceUniqueId WP8.1 = AdvertisingId
AdId NullableString `json:"ad_id,omitempty"`
// Name and version of the sdk/plugin that's calling this API method (if any)
Sdk NullableString `json:"sdk,omitempty"`
// Number of times the user has played the game, defaults to 1
SessionCount *int32 `json:"session_count,omitempty"`
// Custom tags for the player. Only support string and integer key value pairs. Does not support arrays or other nested objects. Setting a tag value to null or an empty string will remove the tag. Example: {\"foo\":\"bar\",\"this\":\"that\"} Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of data Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM
Tags map[string]interface{} `json:"tags,omitempty"`
// Amount the user has spent in USD, up to two decimal places
AmountSpent *float32 `json:"amount_spent,omitempty"`
// Unixtime when the player joined the game
CreatedAt *int64 `json:"created_at,omitempty"`
// Seconds player was running your app.
Playtime *int64 `json:"playtime,omitempty"`
// Current iOS badge count displayed on the app icon NOTE: Not supported for apps created after June 2018, since badge count for apps created after this date are handled on the client.
BadgeCount *int32 `json:"badge_count,omitempty"`
// Unixtime when the player was last active
LastActive *int32 `json:"last_active,omitempty"`
// 1 = subscribed -2 = unsubscribed iOS - These values are set each time the user opens the app from the SDK. Use the SDK function set Subscription instead. Android - You may set this but you can no longer use the SDK method setSubscription later in your app as it will create synchronization issues.
NotificationTypes *int32 `json:"notification_types,omitempty"`
// This is used in deciding whether to use your iOS Sandbox or Production push certificate when sending a push when both have been uploaded. Set to the iOS provisioning profile that was used to build your app. 1 = Development 2 = Ad-Hoc Omit this field for App Store builds.
TestType NullableInt32 `json:"test_type,omitempty"`
// Longitude of the device, used for geotagging to segment on.
Long *float32 `json:"long,omitempty"`
// Latitude of the device, used for geotagging to segment on.
Lat *float32 `json:"lat,omitempty"`
// Country code in the ISO 3166-1 Alpha 2 format
Country *string `json:"country,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Player Player
// NewPlayer instantiates a new Player 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 NewPlayer(deviceType int32) *Player {
this := Player{}
this.DeviceType = deviceType
return &this
}
// NewPlayerWithDefaults instantiates a new Player 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 NewPlayerWithDefaults() *Player {
this := Player{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *Player) 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 *Player) 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 *Player) 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 *Player) SetId(v string) {
o.Id = &v
}
// GetInvalidIdentifier returns the InvalidIdentifier field value if set, zero value otherwise.
func (o *Player) GetInvalidIdentifier() bool {
if o == nil || o.InvalidIdentifier == nil {
var ret bool
return ret
}
return *o.InvalidIdentifier
}
// GetInvalidIdentifierOk returns a tuple with the InvalidIdentifier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetInvalidIdentifierOk() (*bool, bool) {
if o == nil || o.InvalidIdentifier == nil {
return nil, false
}
return o.InvalidIdentifier, true
}
// HasInvalidIdentifier returns a boolean if a field has been set.
func (o *Player) HasInvalidIdentifier() bool {
if o != nil && o.InvalidIdentifier != nil {
return true
}
return false
}
// SetInvalidIdentifier gets a reference to the given bool and assigns it to the InvalidIdentifier field.
func (o *Player) SetInvalidIdentifier(v bool) {
o.InvalidIdentifier = &v
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *Player) 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 *Player) 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 *Player) 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 *Player) SetAppId(v string) {
o.AppId = &v
}
// GetDeviceType returns the DeviceType field value
func (o *Player) GetDeviceType() int32 {
if o == nil {
var ret int32
return ret
}
return o.DeviceType
}
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
func (o *Player) GetDeviceTypeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.DeviceType, true
}
// SetDeviceType sets field value
func (o *Player) SetDeviceType(v int32) {
o.DeviceType = v
}
// GetExternalUserId returns the ExternalUserId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetExternalUserId() string {
if o == nil || o.ExternalUserId.Get() == nil {
var ret string
return ret
}
return *o.ExternalUserId.Get()
}
// GetExternalUserIdOk returns a tuple with the ExternalUserId 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 *Player) GetExternalUserIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ExternalUserId.Get(), o.ExternalUserId.IsSet()
}
// HasExternalUserId returns a boolean if a field has been set.
func (o *Player) HasExternalUserId() bool {
if o != nil && o.ExternalUserId.IsSet() {
return true
}
return false
}
// SetExternalUserId gets a reference to the given NullableString and assigns it to the ExternalUserId field.
func (o *Player) SetExternalUserId(v string) {
o.ExternalUserId.Set(&v)
}
// SetExternalUserIdNil sets the value for ExternalUserId to be an explicit nil
func (o *Player) SetExternalUserIdNil() {
o.ExternalUserId.Set(nil)
}
// UnsetExternalUserId ensures that no value is present for ExternalUserId, not even an explicit nil
func (o *Player) UnsetExternalUserId() {
o.ExternalUserId.Unset()
}
// GetExternalUserIdAuthHash returns the ExternalUserIdAuthHash field value if set, zero value otherwise.
func (o *Player) GetExternalUserIdAuthHash() string {
if o == nil || o.ExternalUserIdAuthHash == nil {
var ret string
return ret
}
return *o.ExternalUserIdAuthHash
}
// GetExternalUserIdAuthHashOk returns a tuple with the ExternalUserIdAuthHash field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetExternalUserIdAuthHashOk() (*string, bool) {
if o == nil || o.ExternalUserIdAuthHash == nil {
return nil, false
}
return o.ExternalUserIdAuthHash, true
}
// HasExternalUserIdAuthHash returns a boolean if a field has been set.
func (o *Player) HasExternalUserIdAuthHash() bool {
if o != nil && o.ExternalUserIdAuthHash != nil {
return true
}
return false
}
// SetExternalUserIdAuthHash gets a reference to the given string and assigns it to the ExternalUserIdAuthHash field.
func (o *Player) SetExternalUserIdAuthHash(v string) {
o.ExternalUserIdAuthHash = &v
}
// GetEmailAuthHash returns the EmailAuthHash field value if set, zero value otherwise.
func (o *Player) GetEmailAuthHash() string {
if o == nil || o.EmailAuthHash == nil {
var ret string
return ret
}
return *o.EmailAuthHash
}
// GetEmailAuthHashOk returns a tuple with the EmailAuthHash field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetEmailAuthHashOk() (*string, bool) {
if o == nil || o.EmailAuthHash == nil {
return nil, false
}
return o.EmailAuthHash, true
}
// HasEmailAuthHash returns a boolean if a field has been set.
func (o *Player) HasEmailAuthHash() bool {
if o != nil && o.EmailAuthHash != nil {
return true
}
return false
}
// SetEmailAuthHash gets a reference to the given string and assigns it to the EmailAuthHash field.
func (o *Player) SetEmailAuthHash(v string) {
o.EmailAuthHash = &v
}
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetIdentifier() string {
if o == nil || o.Identifier.Get() == nil {
var ret string
return ret
}
return *o.Identifier.Get()
}
// GetIdentifierOk returns a tuple with the Identifier 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 *Player) GetIdentifierOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Identifier.Get(), o.Identifier.IsSet()
}
// HasIdentifier returns a boolean if a field has been set.
func (o *Player) HasIdentifier() bool {
if o != nil && o.Identifier.IsSet() {
return true
}
return false
}
// SetIdentifier gets a reference to the given NullableString and assigns it to the Identifier field.
func (o *Player) SetIdentifier(v string) {
o.Identifier.Set(&v)
}
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *Player) SetIdentifierNil() {
o.Identifier.Set(nil)
}
// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
func (o *Player) UnsetIdentifier() {
o.Identifier.Unset()
}
// GetLanguage returns the Language field value if set, zero value otherwise.
func (o *Player) GetLanguage() string {
if o == nil || o.Language == nil {
var ret string
return ret
}
return *o.Language
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetLanguageOk() (*string, bool) {
if o == nil || o.Language == nil {
return nil, false
}
return o.Language, true
}
// HasLanguage returns a boolean if a field has been set.
func (o *Player) HasLanguage() bool {
if o != nil && o.Language != nil {
return true
}
return false
}
// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *Player) SetLanguage(v string) {
o.Language = &v
}
// GetTimezone returns the Timezone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetTimezone() int32 {
if o == nil || o.Timezone.Get() == nil {
var ret int32
return ret
}
return *o.Timezone.Get()
}
// GetTimezoneOk returns a tuple with the Timezone 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 *Player) GetTimezoneOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.Timezone.Get(), o.Timezone.IsSet()
}
// HasTimezone returns a boolean if a field has been set.
func (o *Player) HasTimezone() bool {
if o != nil && o.Timezone.IsSet() {
return true
}
return false
}
// SetTimezone gets a reference to the given NullableInt32 and assigns it to the Timezone field.
func (o *Player) SetTimezone(v int32) {
o.Timezone.Set(&v)
}
// SetTimezoneNil sets the value for Timezone to be an explicit nil
func (o *Player) SetTimezoneNil() {
o.Timezone.Set(nil)
}
// UnsetTimezone ensures that no value is present for Timezone, not even an explicit nil
func (o *Player) UnsetTimezone() {
o.Timezone.Unset()
}
// GetGameVersion returns the GameVersion field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetGameVersion() string {
if o == nil || o.GameVersion.Get() == nil {
var ret string
return ret
}
return *o.GameVersion.Get()
}
// GetGameVersionOk returns a tuple with the GameVersion 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 *Player) GetGameVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.GameVersion.Get(), o.GameVersion.IsSet()
}
// HasGameVersion returns a boolean if a field has been set.
func (o *Player) HasGameVersion() bool {
if o != nil && o.GameVersion.IsSet() {
return true
}
return false
}
// SetGameVersion gets a reference to the given NullableString and assigns it to the GameVersion field.
func (o *Player) SetGameVersion(v string) {
o.GameVersion.Set(&v)
}
// SetGameVersionNil sets the value for GameVersion to be an explicit nil
func (o *Player) SetGameVersionNil() {
o.GameVersion.Set(nil)
}
// UnsetGameVersion ensures that no value is present for GameVersion, not even an explicit nil
func (o *Player) UnsetGameVersion() {
o.GameVersion.Unset()
}
// GetDeviceModel returns the DeviceModel field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetDeviceModel() string {
if o == nil || o.DeviceModel.Get() == nil {
var ret string
return ret
}
return *o.DeviceModel.Get()
}
// GetDeviceModelOk returns a tuple with the DeviceModel 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 *Player) GetDeviceModelOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DeviceModel.Get(), o.DeviceModel.IsSet()
}
// HasDeviceModel returns a boolean if a field has been set.
func (o *Player) HasDeviceModel() bool {
if o != nil && o.DeviceModel.IsSet() {
return true
}
return false
}
// SetDeviceModel gets a reference to the given NullableString and assigns it to the DeviceModel field.
func (o *Player) SetDeviceModel(v string) {
o.DeviceModel.Set(&v)
}
// SetDeviceModelNil sets the value for DeviceModel to be an explicit nil
func (o *Player) SetDeviceModelNil() {
o.DeviceModel.Set(nil)
}
// UnsetDeviceModel ensures that no value is present for DeviceModel, not even an explicit nil
func (o *Player) UnsetDeviceModel() {
o.DeviceModel.Unset()
}
// GetDeviceOs returns the DeviceOs field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetDeviceOs() string {
if o == nil || o.DeviceOs.Get() == nil {
var ret string
return ret
}
return *o.DeviceOs.Get()
}
// GetDeviceOsOk returns a tuple with the DeviceOs 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 *Player) GetDeviceOsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DeviceOs.Get(), o.DeviceOs.IsSet()
}
// HasDeviceOs returns a boolean if a field has been set.
func (o *Player) HasDeviceOs() bool {
if o != nil && o.DeviceOs.IsSet() {
return true
}
return false
}
// SetDeviceOs gets a reference to the given NullableString and assigns it to the DeviceOs field.
func (o *Player) SetDeviceOs(v string) {
o.DeviceOs.Set(&v)
}
// SetDeviceOsNil sets the value for DeviceOs to be an explicit nil
func (o *Player) SetDeviceOsNil() {
o.DeviceOs.Set(nil)
}
// UnsetDeviceOs ensures that no value is present for DeviceOs, not even an explicit nil
func (o *Player) UnsetDeviceOs() {
o.DeviceOs.Unset()
}
// GetAdId returns the AdId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetAdId() string {
if o == nil || o.AdId.Get() == nil {
var ret string
return ret
}
return *o.AdId.Get()
}
// GetAdIdOk returns a tuple with the AdId 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 *Player) GetAdIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AdId.Get(), o.AdId.IsSet()
}
// HasAdId returns a boolean if a field has been set.
func (o *Player) HasAdId() bool {
if o != nil && o.AdId.IsSet() {
return true
}
return false
}
// SetAdId gets a reference to the given NullableString and assigns it to the AdId field.
func (o *Player) SetAdId(v string) {
o.AdId.Set(&v)
}
// SetAdIdNil sets the value for AdId to be an explicit nil
func (o *Player) SetAdIdNil() {
o.AdId.Set(nil)
}
// UnsetAdId ensures that no value is present for AdId, not even an explicit nil
func (o *Player) UnsetAdId() {
o.AdId.Unset()
}
// GetSdk returns the Sdk field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetSdk() string {
if o == nil || o.Sdk.Get() == nil {
var ret string
return ret
}
return *o.Sdk.Get()
}
// GetSdkOk returns a tuple with the Sdk 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 *Player) GetSdkOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Sdk.Get(), o.Sdk.IsSet()
}
// HasSdk returns a boolean if a field has been set.
func (o *Player) HasSdk() bool {
if o != nil && o.Sdk.IsSet() {
return true
}
return false
}
// SetSdk gets a reference to the given NullableString and assigns it to the Sdk field.
func (o *Player) SetSdk(v string) {
o.Sdk.Set(&v)
}
// SetSdkNil sets the value for Sdk to be an explicit nil
func (o *Player) SetSdkNil() {
o.Sdk.Set(nil)
}
// UnsetSdk ensures that no value is present for Sdk, not even an explicit nil
func (o *Player) UnsetSdk() {
o.Sdk.Unset()
}
// GetSessionCount returns the SessionCount field value if set, zero value otherwise.
func (o *Player) GetSessionCount() int32 {
if o == nil || o.SessionCount == nil {
var ret int32
return ret
}
return *o.SessionCount
}
// GetSessionCountOk returns a tuple with the SessionCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetSessionCountOk() (*int32, bool) {
if o == nil || o.SessionCount == nil {
return nil, false
}
return o.SessionCount, true
}
// HasSessionCount returns a boolean if a field has been set.
func (o *Player) HasSessionCount() bool {
if o != nil && o.SessionCount != nil {
return true
}
return false
}
// SetSessionCount gets a reference to the given int32 and assigns it to the SessionCount field.
func (o *Player) SetSessionCount(v int32) {
o.SessionCount = &v
}
// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetTags() map[string]interface{} {
if o == nil {
var ret map[string]interface{}
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags 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 *Player) GetTagsOk() (map[string]interface{}, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *Player) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
}
// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field.
func (o *Player) SetTags(v map[string]interface{}) {
o.Tags = v
}
// GetAmountSpent returns the AmountSpent field value if set, zero value otherwise.
func (o *Player) GetAmountSpent() float32 {
if o == nil || o.AmountSpent == nil {
var ret float32
return ret
}
return *o.AmountSpent
}
// GetAmountSpentOk returns a tuple with the AmountSpent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetAmountSpentOk() (*float32, bool) {
if o == nil || o.AmountSpent == nil {
return nil, false
}
return o.AmountSpent, true
}
// HasAmountSpent returns a boolean if a field has been set.
func (o *Player) HasAmountSpent() bool {
if o != nil && o.AmountSpent != nil {
return true
}
return false
}
// SetAmountSpent gets a reference to the given float32 and assigns it to the AmountSpent field.
func (o *Player) SetAmountSpent(v float32) {
o.AmountSpent = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *Player) GetCreatedAt() int64 {
if o == nil || o.CreatedAt == nil {
var ret int64
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetCreatedAtOk() (*int64, bool) {
if o == nil || o.CreatedAt == nil {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *Player) HasCreatedAt() bool {
if o != nil && o.CreatedAt != nil {
return true
}
return false
}
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *Player) SetCreatedAt(v int64) {
o.CreatedAt = &v
}
// GetPlaytime returns the Playtime field value if set, zero value otherwise.
func (o *Player) GetPlaytime() int64 {
if o == nil || o.Playtime == nil {
var ret int64
return ret
}
return *o.Playtime
}
// GetPlaytimeOk returns a tuple with the Playtime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetPlaytimeOk() (*int64, bool) {
if o == nil || o.Playtime == nil {
return nil, false
}
return o.Playtime, true
}
// HasPlaytime returns a boolean if a field has been set.
func (o *Player) HasPlaytime() bool {
if o != nil && o.Playtime != nil {
return true
}
return false
}
// SetPlaytime gets a reference to the given int64 and assigns it to the Playtime field.
func (o *Player) SetPlaytime(v int64) {
o.Playtime = &v
}
// GetBadgeCount returns the BadgeCount field value if set, zero value otherwise.
func (o *Player) GetBadgeCount() int32 {
if o == nil || o.BadgeCount == nil {
var ret int32
return ret
}
return *o.BadgeCount
}
// GetBadgeCountOk returns a tuple with the BadgeCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetBadgeCountOk() (*int32, bool) {
if o == nil || o.BadgeCount == nil {
return nil, false
}
return o.BadgeCount, true
}
// HasBadgeCount returns a boolean if a field has been set.
func (o *Player) HasBadgeCount() bool {
if o != nil && o.BadgeCount != nil {
return true
}
return false
}
// SetBadgeCount gets a reference to the given int32 and assigns it to the BadgeCount field.
func (o *Player) SetBadgeCount(v int32) {
o.BadgeCount = &v
}
// GetLastActive returns the LastActive field value if set, zero value otherwise.
func (o *Player) GetLastActive() int32 {
if o == nil || o.LastActive == nil {
var ret int32
return ret
}
return *o.LastActive
}
// GetLastActiveOk returns a tuple with the LastActive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetLastActiveOk() (*int32, bool) {
if o == nil || o.LastActive == nil {
return nil, false
}
return o.LastActive, true
}
// HasLastActive returns a boolean if a field has been set.
func (o *Player) HasLastActive() bool {
if o != nil && o.LastActive != nil {
return true
}
return false
}
// SetLastActive gets a reference to the given int32 and assigns it to the LastActive field.
func (o *Player) SetLastActive(v int32) {
o.LastActive = &v
}
// GetNotificationTypes returns the NotificationTypes field value if set, zero value otherwise.
func (o *Player) GetNotificationTypes() int32 {
if o == nil || o.NotificationTypes == nil {
var ret int32
return ret
}
return *o.NotificationTypes
}
// GetNotificationTypesOk returns a tuple with the NotificationTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetNotificationTypesOk() (*int32, bool) {
if o == nil || o.NotificationTypes == nil {
return nil, false
}
return o.NotificationTypes, true
}
// HasNotificationTypes returns a boolean if a field has been set.
func (o *Player) HasNotificationTypes() bool {
if o != nil && o.NotificationTypes != nil {
return true
}
return false
}
// SetNotificationTypes gets a reference to the given int32 and assigns it to the NotificationTypes field.
func (o *Player) SetNotificationTypes(v int32) {
o.NotificationTypes = &v
}
// GetTestType returns the TestType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Player) GetTestType() int32 {
if o == nil || o.TestType.Get() == nil {
var ret int32
return ret
}
return *o.TestType.Get()
}
// GetTestTypeOk returns a tuple with the TestType 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 *Player) GetTestTypeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.TestType.Get(), o.TestType.IsSet()
}
// HasTestType returns a boolean if a field has been set.
func (o *Player) HasTestType() bool {
if o != nil && o.TestType.IsSet() {
return true
}
return false
}
// SetTestType gets a reference to the given NullableInt32 and assigns it to the TestType field.
func (o *Player) SetTestType(v int32) {
o.TestType.Set(&v)
}
// SetTestTypeNil sets the value for TestType to be an explicit nil
func (o *Player) SetTestTypeNil() {
o.TestType.Set(nil)
}
// UnsetTestType ensures that no value is present for TestType, not even an explicit nil
func (o *Player) UnsetTestType() {
o.TestType.Unset()
}
// GetLong returns the Long field value if set, zero value otherwise.
func (o *Player) GetLong() float32 {
if o == nil || o.Long == nil {
var ret float32
return ret
}
return *o.Long
}
// GetLongOk returns a tuple with the Long field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetLongOk() (*float32, bool) {
if o == nil || o.Long == nil {
return nil, false
}
return o.Long, true
}
// HasLong returns a boolean if a field has been set.
func (o *Player) HasLong() bool {
if o != nil && o.Long != nil {
return true
}
return false
}
// SetLong gets a reference to the given float32 and assigns it to the Long field.
func (o *Player) SetLong(v float32) {
o.Long = &v
}
// GetLat returns the Lat field value if set, zero value otherwise.
func (o *Player) GetLat() float32 {
if o == nil || o.Lat == nil {
var ret float32
return ret
}
return *o.Lat
}
// GetLatOk returns a tuple with the Lat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Player) GetLatOk() (*float32, bool) {
if o == nil || o.Lat == nil {
return nil, false
}
return o.Lat, true
}
// HasLat returns a boolean if a field has been set.
func (o *Player) HasLat() bool {
if o != nil && o.Lat != nil {
return true