/
model_user.go
1196 lines (1022 loc) · 33 KB
/
model_user.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
/*
Tinybeans API - Unofficial
Reverse Engineered API for Tinybeans. This is horribly incomplete, and not supported
API version: 0.0.1
Contact: dave@mudsite.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package tinybeans
import (
"encoding/json"
)
// User struct for User
type User struct {
URL *string `json:"URL,omitempty"`
Avatars *Avatars `json:"avatars,omitempty"`
DateStyle *DateStyle `json:"dateStyle,omitempty"`
Deleted *bool `json:"deleted,omitempty"`
EmailAddress *string `json:"emailAddress,omitempty"`
EmailFrequencyOnNewComment *EmailFrequency `json:"emailFrequencyOnNewComment,omitempty"`
EmailFrequencyOnNewEmotion *EmailFrequency `json:"emailFrequencyOnNewEmotion,omitempty"`
EmailMarketingOptOut *bool `json:"emailMarketingOptOut,omitempty"`
EmailOptOut *bool `json:"emailOptOut,omitempty"`
EmailWeeklySummary *bool `json:"emailWeeklySummary,omitempty"`
ExternalProviderRef *string `json:"externalProviderRef,omitempty"`
FacebookId *string `json:"facebookId,omitempty"`
FirstLoggedInTimestamp *int64 `json:"firstLoggedInTimestamp,omitempty"`
FirstName *string `json:"firstName,omitempty"`
FullName *string `json:"fullName,omitempty"`
HasMemoriesAccess *bool `json:"hasMemoriesAccess,omitempty"`
Id *int64 `json:"id,omitempty"`
InstagramId *string `json:"instagramId,omitempty"`
InstagramUsername *string `json:"instagramUsername,omitempty"`
LastEmailOpenTimestamp *int64 `json:"lastEmailOpenTimestamp,omitempty"`
LastLoggedInTimestamp *int64 `json:"lastLoggedInTimestamp,omitempty"`
LastName *string `json:"lastName,omitempty"`
LastUpdatedTimestamp *int64 `json:"lastUpdatedTimestamp,omitempty"`
MeasurementSystem *MeasurementSystem `json:"measurementSystem,omitempty"`
PublicUsername *string `json:"publicUsername,omitempty"`
ReferralCode *string `json:"referralCode,omitempty"`
ReferralUrl *string `json:"referralUrl,omitempty"`
TimeZone *TimeZone `json:"timeZone,omitempty"`
TimeZoneOffset *int64 `json:"timeZoneOffset,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty"`
Username *string `json:"username,omitempty"`
}
// NewUser instantiates a new User 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 NewUser() *User {
this := User{}
return &this
}
// NewUserWithDefaults instantiates a new User 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 NewUserWithDefaults() *User {
this := User{}
return &this
}
// GetURL returns the URL field value if set, zero value otherwise.
func (o *User) GetURL() string {
if o == nil || isNil(o.URL) {
var ret string
return ret
}
return *o.URL
}
// GetURLOk returns a tuple with the URL field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetURLOk() (*string, bool) {
if o == nil || isNil(o.URL) {
return nil, false
}
return o.URL, true
}
// HasURL returns a boolean if a field has been set.
func (o *User) HasURL() bool {
if o != nil && !isNil(o.URL) {
return true
}
return false
}
// SetURL gets a reference to the given string and assigns it to the URL field.
func (o *User) SetURL(v string) {
o.URL = &v
}
// GetAvatars returns the Avatars field value if set, zero value otherwise.
func (o *User) GetAvatars() Avatars {
if o == nil || isNil(o.Avatars) {
var ret Avatars
return ret
}
return *o.Avatars
}
// GetAvatarsOk returns a tuple with the Avatars field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetAvatarsOk() (*Avatars, bool) {
if o == nil || isNil(o.Avatars) {
return nil, false
}
return o.Avatars, true
}
// HasAvatars returns a boolean if a field has been set.
func (o *User) HasAvatars() bool {
if o != nil && !isNil(o.Avatars) {
return true
}
return false
}
// SetAvatars gets a reference to the given Avatars and assigns it to the Avatars field.
func (o *User) SetAvatars(v Avatars) {
o.Avatars = &v
}
// GetDateStyle returns the DateStyle field value if set, zero value otherwise.
func (o *User) GetDateStyle() DateStyle {
if o == nil || isNil(o.DateStyle) {
var ret DateStyle
return ret
}
return *o.DateStyle
}
// GetDateStyleOk returns a tuple with the DateStyle field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetDateStyleOk() (*DateStyle, bool) {
if o == nil || isNil(o.DateStyle) {
return nil, false
}
return o.DateStyle, true
}
// HasDateStyle returns a boolean if a field has been set.
func (o *User) HasDateStyle() bool {
if o != nil && !isNil(o.DateStyle) {
return true
}
return false
}
// SetDateStyle gets a reference to the given DateStyle and assigns it to the DateStyle field.
func (o *User) SetDateStyle(v DateStyle) {
o.DateStyle = &v
}
// GetDeleted returns the Deleted field value if set, zero value otherwise.
func (o *User) GetDeleted() bool {
if o == nil || isNil(o.Deleted) {
var ret bool
return ret
}
return *o.Deleted
}
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetDeletedOk() (*bool, bool) {
if o == nil || isNil(o.Deleted) {
return nil, false
}
return o.Deleted, true
}
// HasDeleted returns a boolean if a field has been set.
func (o *User) HasDeleted() bool {
if o != nil && !isNil(o.Deleted) {
return true
}
return false
}
// SetDeleted gets a reference to the given bool and assigns it to the Deleted field.
func (o *User) SetDeleted(v bool) {
o.Deleted = &v
}
// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise.
func (o *User) GetEmailAddress() string {
if o == nil || isNil(o.EmailAddress) {
var ret string
return ret
}
return *o.EmailAddress
}
// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailAddressOk() (*string, bool) {
if o == nil || isNil(o.EmailAddress) {
return nil, false
}
return o.EmailAddress, true
}
// HasEmailAddress returns a boolean if a field has been set.
func (o *User) HasEmailAddress() bool {
if o != nil && !isNil(o.EmailAddress) {
return true
}
return false
}
// SetEmailAddress gets a reference to the given string and assigns it to the EmailAddress field.
func (o *User) SetEmailAddress(v string) {
o.EmailAddress = &v
}
// GetEmailFrequencyOnNewComment returns the EmailFrequencyOnNewComment field value if set, zero value otherwise.
func (o *User) GetEmailFrequencyOnNewComment() EmailFrequency {
if o == nil || isNil(o.EmailFrequencyOnNewComment) {
var ret EmailFrequency
return ret
}
return *o.EmailFrequencyOnNewComment
}
// GetEmailFrequencyOnNewCommentOk returns a tuple with the EmailFrequencyOnNewComment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailFrequencyOnNewCommentOk() (*EmailFrequency, bool) {
if o == nil || isNil(o.EmailFrequencyOnNewComment) {
return nil, false
}
return o.EmailFrequencyOnNewComment, true
}
// HasEmailFrequencyOnNewComment returns a boolean if a field has been set.
func (o *User) HasEmailFrequencyOnNewComment() bool {
if o != nil && !isNil(o.EmailFrequencyOnNewComment) {
return true
}
return false
}
// SetEmailFrequencyOnNewComment gets a reference to the given EmailFrequency and assigns it to the EmailFrequencyOnNewComment field.
func (o *User) SetEmailFrequencyOnNewComment(v EmailFrequency) {
o.EmailFrequencyOnNewComment = &v
}
// GetEmailFrequencyOnNewEmotion returns the EmailFrequencyOnNewEmotion field value if set, zero value otherwise.
func (o *User) GetEmailFrequencyOnNewEmotion() EmailFrequency {
if o == nil || isNil(o.EmailFrequencyOnNewEmotion) {
var ret EmailFrequency
return ret
}
return *o.EmailFrequencyOnNewEmotion
}
// GetEmailFrequencyOnNewEmotionOk returns a tuple with the EmailFrequencyOnNewEmotion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailFrequencyOnNewEmotionOk() (*EmailFrequency, bool) {
if o == nil || isNil(o.EmailFrequencyOnNewEmotion) {
return nil, false
}
return o.EmailFrequencyOnNewEmotion, true
}
// HasEmailFrequencyOnNewEmotion returns a boolean if a field has been set.
func (o *User) HasEmailFrequencyOnNewEmotion() bool {
if o != nil && !isNil(o.EmailFrequencyOnNewEmotion) {
return true
}
return false
}
// SetEmailFrequencyOnNewEmotion gets a reference to the given EmailFrequency and assigns it to the EmailFrequencyOnNewEmotion field.
func (o *User) SetEmailFrequencyOnNewEmotion(v EmailFrequency) {
o.EmailFrequencyOnNewEmotion = &v
}
// GetEmailMarketingOptOut returns the EmailMarketingOptOut field value if set, zero value otherwise.
func (o *User) GetEmailMarketingOptOut() bool {
if o == nil || isNil(o.EmailMarketingOptOut) {
var ret bool
return ret
}
return *o.EmailMarketingOptOut
}
// GetEmailMarketingOptOutOk returns a tuple with the EmailMarketingOptOut field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailMarketingOptOutOk() (*bool, bool) {
if o == nil || isNil(o.EmailMarketingOptOut) {
return nil, false
}
return o.EmailMarketingOptOut, true
}
// HasEmailMarketingOptOut returns a boolean if a field has been set.
func (o *User) HasEmailMarketingOptOut() bool {
if o != nil && !isNil(o.EmailMarketingOptOut) {
return true
}
return false
}
// SetEmailMarketingOptOut gets a reference to the given bool and assigns it to the EmailMarketingOptOut field.
func (o *User) SetEmailMarketingOptOut(v bool) {
o.EmailMarketingOptOut = &v
}
// GetEmailOptOut returns the EmailOptOut field value if set, zero value otherwise.
func (o *User) GetEmailOptOut() bool {
if o == nil || isNil(o.EmailOptOut) {
var ret bool
return ret
}
return *o.EmailOptOut
}
// GetEmailOptOutOk returns a tuple with the EmailOptOut field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailOptOutOk() (*bool, bool) {
if o == nil || isNil(o.EmailOptOut) {
return nil, false
}
return o.EmailOptOut, true
}
// HasEmailOptOut returns a boolean if a field has been set.
func (o *User) HasEmailOptOut() bool {
if o != nil && !isNil(o.EmailOptOut) {
return true
}
return false
}
// SetEmailOptOut gets a reference to the given bool and assigns it to the EmailOptOut field.
func (o *User) SetEmailOptOut(v bool) {
o.EmailOptOut = &v
}
// GetEmailWeeklySummary returns the EmailWeeklySummary field value if set, zero value otherwise.
func (o *User) GetEmailWeeklySummary() bool {
if o == nil || isNil(o.EmailWeeklySummary) {
var ret bool
return ret
}
return *o.EmailWeeklySummary
}
// GetEmailWeeklySummaryOk returns a tuple with the EmailWeeklySummary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailWeeklySummaryOk() (*bool, bool) {
if o == nil || isNil(o.EmailWeeklySummary) {
return nil, false
}
return o.EmailWeeklySummary, true
}
// HasEmailWeeklySummary returns a boolean if a field has been set.
func (o *User) HasEmailWeeklySummary() bool {
if o != nil && !isNil(o.EmailWeeklySummary) {
return true
}
return false
}
// SetEmailWeeklySummary gets a reference to the given bool and assigns it to the EmailWeeklySummary field.
func (o *User) SetEmailWeeklySummary(v bool) {
o.EmailWeeklySummary = &v
}
// GetExternalProviderRef returns the ExternalProviderRef field value if set, zero value otherwise.
func (o *User) GetExternalProviderRef() string {
if o == nil || isNil(o.ExternalProviderRef) {
var ret string
return ret
}
return *o.ExternalProviderRef
}
// GetExternalProviderRefOk returns a tuple with the ExternalProviderRef field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetExternalProviderRefOk() (*string, bool) {
if o == nil || isNil(o.ExternalProviderRef) {
return nil, false
}
return o.ExternalProviderRef, true
}
// HasExternalProviderRef returns a boolean if a field has been set.
func (o *User) HasExternalProviderRef() bool {
if o != nil && !isNil(o.ExternalProviderRef) {
return true
}
return false
}
// SetExternalProviderRef gets a reference to the given string and assigns it to the ExternalProviderRef field.
func (o *User) SetExternalProviderRef(v string) {
o.ExternalProviderRef = &v
}
// GetFacebookId returns the FacebookId field value if set, zero value otherwise.
func (o *User) GetFacebookId() string {
if o == nil || isNil(o.FacebookId) {
var ret string
return ret
}
return *o.FacebookId
}
// GetFacebookIdOk returns a tuple with the FacebookId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetFacebookIdOk() (*string, bool) {
if o == nil || isNil(o.FacebookId) {
return nil, false
}
return o.FacebookId, true
}
// HasFacebookId returns a boolean if a field has been set.
func (o *User) HasFacebookId() bool {
if o != nil && !isNil(o.FacebookId) {
return true
}
return false
}
// SetFacebookId gets a reference to the given string and assigns it to the FacebookId field.
func (o *User) SetFacebookId(v string) {
o.FacebookId = &v
}
// GetFirstLoggedInTimestamp returns the FirstLoggedInTimestamp field value if set, zero value otherwise.
func (o *User) GetFirstLoggedInTimestamp() int64 {
if o == nil || isNil(o.FirstLoggedInTimestamp) {
var ret int64
return ret
}
return *o.FirstLoggedInTimestamp
}
// GetFirstLoggedInTimestampOk returns a tuple with the FirstLoggedInTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetFirstLoggedInTimestampOk() (*int64, bool) {
if o == nil || isNil(o.FirstLoggedInTimestamp) {
return nil, false
}
return o.FirstLoggedInTimestamp, true
}
// HasFirstLoggedInTimestamp returns a boolean if a field has been set.
func (o *User) HasFirstLoggedInTimestamp() bool {
if o != nil && !isNil(o.FirstLoggedInTimestamp) {
return true
}
return false
}
// SetFirstLoggedInTimestamp gets a reference to the given int64 and assigns it to the FirstLoggedInTimestamp field.
func (o *User) SetFirstLoggedInTimestamp(v int64) {
o.FirstLoggedInTimestamp = &v
}
// GetFirstName returns the FirstName field value if set, zero value otherwise.
func (o *User) GetFirstName() string {
if o == nil || isNil(o.FirstName) {
var ret string
return ret
}
return *o.FirstName
}
// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetFirstNameOk() (*string, bool) {
if o == nil || isNil(o.FirstName) {
return nil, false
}
return o.FirstName, true
}
// HasFirstName returns a boolean if a field has been set.
func (o *User) HasFirstName() bool {
if o != nil && !isNil(o.FirstName) {
return true
}
return false
}
// SetFirstName gets a reference to the given string and assigns it to the FirstName field.
func (o *User) SetFirstName(v string) {
o.FirstName = &v
}
// GetFullName returns the FullName field value if set, zero value otherwise.
func (o *User) GetFullName() string {
if o == nil || isNil(o.FullName) {
var ret string
return ret
}
return *o.FullName
}
// GetFullNameOk returns a tuple with the FullName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetFullNameOk() (*string, bool) {
if o == nil || isNil(o.FullName) {
return nil, false
}
return o.FullName, true
}
// HasFullName returns a boolean if a field has been set.
func (o *User) HasFullName() bool {
if o != nil && !isNil(o.FullName) {
return true
}
return false
}
// SetFullName gets a reference to the given string and assigns it to the FullName field.
func (o *User) SetFullName(v string) {
o.FullName = &v
}
// GetHasMemoriesAccess returns the HasMemoriesAccess field value if set, zero value otherwise.
func (o *User) GetHasMemoriesAccess() bool {
if o == nil || isNil(o.HasMemoriesAccess) {
var ret bool
return ret
}
return *o.HasMemoriesAccess
}
// GetHasMemoriesAccessOk returns a tuple with the HasMemoriesAccess field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetHasMemoriesAccessOk() (*bool, bool) {
if o == nil || isNil(o.HasMemoriesAccess) {
return nil, false
}
return o.HasMemoriesAccess, true
}
// HasHasMemoriesAccess returns a boolean if a field has been set.
func (o *User) HasHasMemoriesAccess() bool {
if o != nil && !isNil(o.HasMemoriesAccess) {
return true
}
return false
}
// SetHasMemoriesAccess gets a reference to the given bool and assigns it to the HasMemoriesAccess field.
func (o *User) SetHasMemoriesAccess(v bool) {
o.HasMemoriesAccess = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *User) GetId() int64 {
if o == nil || isNil(o.Id) {
var ret int64
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 *User) GetIdOk() (*int64, bool) {
if o == nil || isNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *User) HasId() bool {
if o != nil && !isNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *User) SetId(v int64) {
o.Id = &v
}
// GetInstagramId returns the InstagramId field value if set, zero value otherwise.
func (o *User) GetInstagramId() string {
if o == nil || isNil(o.InstagramId) {
var ret string
return ret
}
return *o.InstagramId
}
// GetInstagramIdOk returns a tuple with the InstagramId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetInstagramIdOk() (*string, bool) {
if o == nil || isNil(o.InstagramId) {
return nil, false
}
return o.InstagramId, true
}
// HasInstagramId returns a boolean if a field has been set.
func (o *User) HasInstagramId() bool {
if o != nil && !isNil(o.InstagramId) {
return true
}
return false
}
// SetInstagramId gets a reference to the given string and assigns it to the InstagramId field.
func (o *User) SetInstagramId(v string) {
o.InstagramId = &v
}
// GetInstagramUsername returns the InstagramUsername field value if set, zero value otherwise.
func (o *User) GetInstagramUsername() string {
if o == nil || isNil(o.InstagramUsername) {
var ret string
return ret
}
return *o.InstagramUsername
}
// GetInstagramUsernameOk returns a tuple with the InstagramUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetInstagramUsernameOk() (*string, bool) {
if o == nil || isNil(o.InstagramUsername) {
return nil, false
}
return o.InstagramUsername, true
}
// HasInstagramUsername returns a boolean if a field has been set.
func (o *User) HasInstagramUsername() bool {
if o != nil && !isNil(o.InstagramUsername) {
return true
}
return false
}
// SetInstagramUsername gets a reference to the given string and assigns it to the InstagramUsername field.
func (o *User) SetInstagramUsername(v string) {
o.InstagramUsername = &v
}
// GetLastEmailOpenTimestamp returns the LastEmailOpenTimestamp field value if set, zero value otherwise.
func (o *User) GetLastEmailOpenTimestamp() int64 {
if o == nil || isNil(o.LastEmailOpenTimestamp) {
var ret int64
return ret
}
return *o.LastEmailOpenTimestamp
}
// GetLastEmailOpenTimestampOk returns a tuple with the LastEmailOpenTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetLastEmailOpenTimestampOk() (*int64, bool) {
if o == nil || isNil(o.LastEmailOpenTimestamp) {
return nil, false
}
return o.LastEmailOpenTimestamp, true
}
// HasLastEmailOpenTimestamp returns a boolean if a field has been set.
func (o *User) HasLastEmailOpenTimestamp() bool {
if o != nil && !isNil(o.LastEmailOpenTimestamp) {
return true
}
return false
}
// SetLastEmailOpenTimestamp gets a reference to the given int64 and assigns it to the LastEmailOpenTimestamp field.
func (o *User) SetLastEmailOpenTimestamp(v int64) {
o.LastEmailOpenTimestamp = &v
}
// GetLastLoggedInTimestamp returns the LastLoggedInTimestamp field value if set, zero value otherwise.
func (o *User) GetLastLoggedInTimestamp() int64 {
if o == nil || isNil(o.LastLoggedInTimestamp) {
var ret int64
return ret
}
return *o.LastLoggedInTimestamp
}
// GetLastLoggedInTimestampOk returns a tuple with the LastLoggedInTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetLastLoggedInTimestampOk() (*int64, bool) {
if o == nil || isNil(o.LastLoggedInTimestamp) {
return nil, false
}
return o.LastLoggedInTimestamp, true
}
// HasLastLoggedInTimestamp returns a boolean if a field has been set.
func (o *User) HasLastLoggedInTimestamp() bool {
if o != nil && !isNil(o.LastLoggedInTimestamp) {
return true
}
return false
}
// SetLastLoggedInTimestamp gets a reference to the given int64 and assigns it to the LastLoggedInTimestamp field.
func (o *User) SetLastLoggedInTimestamp(v int64) {
o.LastLoggedInTimestamp = &v
}
// GetLastName returns the LastName field value if set, zero value otherwise.
func (o *User) GetLastName() string {
if o == nil || isNil(o.LastName) {
var ret string
return ret
}
return *o.LastName
}
// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetLastNameOk() (*string, bool) {
if o == nil || isNil(o.LastName) {
return nil, false
}
return o.LastName, true
}
// HasLastName returns a boolean if a field has been set.
func (o *User) HasLastName() bool {
if o != nil && !isNil(o.LastName) {
return true
}
return false
}
// SetLastName gets a reference to the given string and assigns it to the LastName field.
func (o *User) SetLastName(v string) {
o.LastName = &v
}
// GetLastUpdatedTimestamp returns the LastUpdatedTimestamp field value if set, zero value otherwise.
func (o *User) GetLastUpdatedTimestamp() int64 {
if o == nil || isNil(o.LastUpdatedTimestamp) {
var ret int64
return ret
}
return *o.LastUpdatedTimestamp
}
// GetLastUpdatedTimestampOk returns a tuple with the LastUpdatedTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetLastUpdatedTimestampOk() (*int64, bool) {
if o == nil || isNil(o.LastUpdatedTimestamp) {
return nil, false
}
return o.LastUpdatedTimestamp, true
}
// HasLastUpdatedTimestamp returns a boolean if a field has been set.
func (o *User) HasLastUpdatedTimestamp() bool {
if o != nil && !isNil(o.LastUpdatedTimestamp) {
return true
}
return false
}
// SetLastUpdatedTimestamp gets a reference to the given int64 and assigns it to the LastUpdatedTimestamp field.
func (o *User) SetLastUpdatedTimestamp(v int64) {
o.LastUpdatedTimestamp = &v
}
// GetMeasurementSystem returns the MeasurementSystem field value if set, zero value otherwise.
func (o *User) GetMeasurementSystem() MeasurementSystem {
if o == nil || isNil(o.MeasurementSystem) {
var ret MeasurementSystem
return ret
}
return *o.MeasurementSystem
}
// GetMeasurementSystemOk returns a tuple with the MeasurementSystem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetMeasurementSystemOk() (*MeasurementSystem, bool) {
if o == nil || isNil(o.MeasurementSystem) {
return nil, false
}
return o.MeasurementSystem, true
}
// HasMeasurementSystem returns a boolean if a field has been set.
func (o *User) HasMeasurementSystem() bool {
if o != nil && !isNil(o.MeasurementSystem) {
return true
}
return false
}
// SetMeasurementSystem gets a reference to the given MeasurementSystem and assigns it to the MeasurementSystem field.
func (o *User) SetMeasurementSystem(v MeasurementSystem) {
o.MeasurementSystem = &v
}
// GetPublicUsername returns the PublicUsername field value if set, zero value otherwise.
func (o *User) GetPublicUsername() string {
if o == nil || isNil(o.PublicUsername) {
var ret string
return ret
}
return *o.PublicUsername
}
// GetPublicUsernameOk returns a tuple with the PublicUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetPublicUsernameOk() (*string, bool) {
if o == nil || isNil(o.PublicUsername) {
return nil, false
}
return o.PublicUsername, true
}
// HasPublicUsername returns a boolean if a field has been set.
func (o *User) HasPublicUsername() bool {
if o != nil && !isNil(o.PublicUsername) {
return true
}
return false
}
// SetPublicUsername gets a reference to the given string and assigns it to the PublicUsername field.
func (o *User) SetPublicUsername(v string) {
o.PublicUsername = &v
}
// GetReferralCode returns the ReferralCode field value if set, zero value otherwise.
func (o *User) GetReferralCode() string {
if o == nil || isNil(o.ReferralCode) {
var ret string
return ret
}
return *o.ReferralCode
}
// GetReferralCodeOk returns a tuple with the ReferralCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetReferralCodeOk() (*string, bool) {
if o == nil || isNil(o.ReferralCode) {
return nil, false
}
return o.ReferralCode, true
}
// HasReferralCode returns a boolean if a field has been set.
func (o *User) HasReferralCode() bool {
if o != nil && !isNil(o.ReferralCode) {
return true
}
return false
}
// SetReferralCode gets a reference to the given string and assigns it to the ReferralCode field.
func (o *User) SetReferralCode(v string) {
o.ReferralCode = &v
}
// GetReferralUrl returns the ReferralUrl field value if set, zero value otherwise.
func (o *User) GetReferralUrl() string {
if o == nil || isNil(o.ReferralUrl) {
var ret string
return ret
}
return *o.ReferralUrl
}
// GetReferralUrlOk returns a tuple with the ReferralUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetReferralUrlOk() (*string, bool) {
if o == nil || isNil(o.ReferralUrl) {
return nil, false
}
return o.ReferralUrl, true
}
// HasReferralUrl returns a boolean if a field has been set.
func (o *User) HasReferralUrl() bool {
if o != nil && !isNil(o.ReferralUrl) {
return true
}
return false
}
// SetReferralUrl gets a reference to the given string and assigns it to the ReferralUrl field.
func (o *User) SetReferralUrl(v string) {
o.ReferralUrl = &v
}
// GetTimeZone returns the TimeZone field value if set, zero value otherwise.
func (o *User) GetTimeZone() TimeZone {
if o == nil || isNil(o.TimeZone) {
var ret TimeZone
return ret
}
return *o.TimeZone
}
// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetTimeZoneOk() (*TimeZone, bool) {
if o == nil || isNil(o.TimeZone) {
return nil, false
}
return o.TimeZone, true
}
// HasTimeZone returns a boolean if a field has been set.
func (o *User) HasTimeZone() bool {
if o != nil && !isNil(o.TimeZone) {
return true
}
return false
}
// SetTimeZone gets a reference to the given TimeZone and assigns it to the TimeZone field.
func (o *User) SetTimeZone(v TimeZone) {
o.TimeZone = &v
}
// GetTimeZoneOffset returns the TimeZoneOffset field value if set, zero value otherwise.
func (o *User) GetTimeZoneOffset() int64 {
if o == nil || isNil(o.TimeZoneOffset) {
var ret int64
return ret
}
return *o.TimeZoneOffset
}
// GetTimeZoneOffsetOk returns a tuple with the TimeZoneOffset field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetTimeZoneOffsetOk() (*int64, bool) {
if o == nil || isNil(o.TimeZoneOffset) {
return nil, false
}
return o.TimeZoneOffset, true
}
// HasTimeZoneOffset returns a boolean if a field has been set.
func (o *User) HasTimeZoneOffset() bool {
if o != nil && !isNil(o.TimeZoneOffset) {
return true
}
return false
}
// SetTimeZoneOffset gets a reference to the given int64 and assigns it to the TimeZoneOffset field.
func (o *User) SetTimeZoneOffset(v int64) {
o.TimeZoneOffset = &v
}
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *User) GetTimestamp() int64 {
if o == nil || isNil(o.Timestamp) {