-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_current_user.go
1652 lines (1409 loc) · 50.3 KB
/
model_current_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
/*
VRChat API Documentation
![VRChat API Banner](https://vrchatapi.github.io/assets/img/api_banner_1500x400.png) # Welcome to the VRChat API Before we begin, we would like to state this is a **COMMUNITY DRIVEN PROJECT**. This means that everything you read on here was written by the community itself and is **not** officially supported by VRChat. The documentation is provided \"AS IS\", and any action you take towards VRChat is completely your own responsibility. The documentation and additional libraries SHALL ONLY be used for applications interacting with VRChat's API in accordance with their [Terms of Service](https://hello.vrchat.com/legal) and [Community Guidelines](https://hello.vrchat.com/community-guidelines), and MUST NOT be used for modifying the client, \"avatar ripping\", or other illegal activities. Malicious usage or spamming the API may result in account termination. Certain parts of the API are also more sensitive than others, for example moderation, so please tread extra carefully and read the warnings when present. ![Tupper Policy on API](https://i.imgur.com/yLlW7Ok.png) Finally, use of the API using applications other than the approved methods (website, VRChat application, Unity SDK) is not officially supported. VRChat provides no guarantee or support for external applications using the API. Access to API endpoints may break **at any time, without notice**. Therefore, please **do not ping** VRChat Staff in the VRChat Discord if you are having API problems, as they do not provide API support. We will make a best effort in keeping this documentation and associated language libraries up to date, but things might be outdated or missing. If you find that something is no longer valid, please contact us on Discord or [create an issue](https://github.com/vrchatapi/specification/issues) and tell us so we can fix it. # Getting Started The VRChat API can be used to programmatically retrieve or update information regarding your profile, friends, avatars, worlds and more. The API consists of two parts, \"Photon\" which is only used in-game, and the \"Web API\" which is used by both the game and the website. This documentation focuses only on the Web API. The API is designed around the REST ideology, providing semi-simple and usually predictable URIs to access and modify objects. Requests support standard HTTP methods like GET, PUT, POST, and DELETE and standard status codes. Response bodies are always UTF-8 encoded JSON objects, unless explicitly documented otherwise. <div class=\"callout callout-error\"> <strong>🛑 Warning! Do not touch Photon!</strong><br> Photon is only used by the in-game client and should <b>not</b> be touched. Doing so may result in permanent account termination. </div> <div class=\"callout callout-info\"> <strong>ℹ️ API Key and Authentication</strong><br> The API Key has always been the same and is currently <code>JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code>. Read <a href=\"#tag--authentication\">Authentication</a> for how to log in. </div> # Using the API For simply exploring what the API can do it is strongly recommended to download [Insomnia](https://insomnia.rest/download), a free and open-source API client that's great for sending requests to the API in an orderly fashion. Insomnia allows you to send data in the format that's required for VRChat's API. It is also possible to try out the API in your browser, by first logging in at [vrchat.com/home](https://vrchat.com/home/) and then going to [vrchat.com/api/1/auth/user](https://vrchat.com/api/1/auth/user), but the information will be much harder to work with. For more permanent operation such as software development it is instead recommended to use one of the existing language SDKs. This community project maintains API libraries in several languages, which allows you to interact with the API with simple function calls rather than having to implement the HTTP protocol yourself. Most of these libraries are automatically generated from the API specification, sometimes with additional helpful wrapper code to make usage easier. This allows them to be almost automatically updated and expanded upon as soon as a new feature is introduced in the specification itself. The libraries can be found on [GitHub](https://github.com/vrchatapi) or following: * [NodeJS (JavaScript)](https://www.npmjs.com/package/vrchat) * [Dart](https://pub.dev/packages/vrchat_dart) * [Rust](https://crates.io/crates/vrchatapi) * [C#](https://github.com/vrchatapi/vrchatapi-csharp) * [Python](https://github.com/vrchatapi/vrchatapi-python) # Pagination Most endpoints enforce pagination, meaning they will only return 10 entries by default, and never more than 100.<br> Using both the limit and offset parameters allows you to easily paginate through a large number of objects. | Query Parameter | Type | Description | | ----------|--|------- | | `n` | integer | The number of objects to return. This value often defaults to 10. Highest limit is always 100.| | `offset` | integer | A zero-based offset from the default object sorting.| If a request returns fewer objects than the `limit` parameter, there are no more items available to return. # Contribution Do you want to get involved in the documentation effort? Do you want to help improve one of the language API libraries? This project is an [OPEN Open Source Project](https://openopensource.org)! This means that individuals making significant and valuable contributions are given commit-access to the project. It also means we are very open and welcoming of new people making contributions, unlike some more guarded open-source projects. [![Discord](https://img.shields.io/static/v1?label=vrchatapi&message=discord&color=blueviolet&style=for-the-badge)](https://discord.gg/qjZE9C9fkB)
API version: 1.12.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package vrchatapi
import (
"encoding/json"
"time"
)
// checks if the CurrentUser type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CurrentUser{}
// CurrentUser struct for CurrentUser
type CurrentUser struct {
AcceptedTOSVersion int32 `json:"acceptedTOSVersion"`
AcceptedPrivacyVersion *int32 `json:"acceptedPrivacyVersion,omitempty"`
AccountDeletionDate NullableString `json:"accountDeletionDate,omitempty"`
//
AccountDeletionLog []AccountDeletionLog `json:"accountDeletionLog,omitempty"`
//
ActiveFriends []string `json:"activeFriends,omitempty"`
AllowAvatarCopying bool `json:"allowAvatarCopying"`
Bio string `json:"bio"`
//
BioLinks []string `json:"bioLinks"`
CurrentAvatar string `json:"currentAvatar"`
CurrentAvatarAssetUrl string `json:"currentAvatarAssetUrl"`
// When profilePicOverride is not empty, use it instead.
CurrentAvatarImageUrl string `json:"currentAvatarImageUrl"`
// When profilePicOverride is not empty, use it instead.
CurrentAvatarThumbnailImageUrl string `json:"currentAvatarThumbnailImageUrl"`
DateJoined string `json:"date_joined"`
DeveloperType DeveloperType `json:"developerType"`
DisplayName string `json:"displayName"`
EmailVerified bool `json:"emailVerified"`
FallbackAvatar *string `json:"fallbackAvatar,omitempty"`
// Always empty array.
// Deprecated
FriendGroupNames []string `json:"friendGroupNames"`
FriendKey string `json:"friendKey"`
Friends []string `json:"friends"`
HasBirthday bool `json:"hasBirthday"`
HasEmail bool `json:"hasEmail"`
HasLoggedInFromClient bool `json:"hasLoggedInFromClient"`
HasPendingEmail bool `json:"hasPendingEmail"`
// WorldID be \"offline\" on User profiles if you are not friends with that user.
HomeLocation string `json:"homeLocation"`
// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
Id string `json:"id"`
IsFriend bool `json:"isFriend"`
LastActivity *time.Time `json:"last_activity,omitempty"`
LastLogin time.Time `json:"last_login"`
// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
LastPlatform string `json:"last_platform"`
ObfuscatedEmail string `json:"obfuscatedEmail"`
ObfuscatedPendingEmail string `json:"obfuscatedPendingEmail"`
OculusId string `json:"oculusId"`
OfflineFriends []string `json:"offlineFriends,omitempty"`
OnlineFriends []string `json:"onlineFriends,omitempty"`
//
PastDisplayNames []PastDisplayName `json:"pastDisplayNames"`
Presence *CurrentUserPresence `json:"presence,omitempty"`
ProfilePicOverride string `json:"profilePicOverride"`
State UserState `json:"state"`
Status UserStatus `json:"status"`
StatusDescription string `json:"statusDescription"`
StatusFirstTime bool `json:"statusFirstTime"`
StatusHistory []string `json:"statusHistory"`
SteamDetails map[string]interface{} `json:"steamDetails"`
SteamId string `json:"steamId"`
Tags []string `json:"tags"`
TwoFactorAuthEnabled bool `json:"twoFactorAuthEnabled"`
TwoFactorAuthEnabledDate NullableTime `json:"twoFactorAuthEnabledDate,omitempty"`
Unsubscribe bool `json:"unsubscribe"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
UserIcon string `json:"userIcon"`
// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
// Deprecated
Username *string `json:"username,omitempty"`
}
// NewCurrentUser instantiates a new CurrentUser 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 NewCurrentUser(acceptedTOSVersion int32, allowAvatarCopying bool, bio string, bioLinks []string, currentAvatar string, currentAvatarAssetUrl string, currentAvatarImageUrl string, currentAvatarThumbnailImageUrl string, dateJoined string, developerType DeveloperType, displayName string, emailVerified bool, friendGroupNames []string, friendKey string, friends []string, hasBirthday bool, hasEmail bool, hasLoggedInFromClient bool, hasPendingEmail bool, homeLocation string, id string, isFriend bool, lastLogin time.Time, lastPlatform string, obfuscatedEmail string, obfuscatedPendingEmail string, oculusId string, pastDisplayNames []PastDisplayName, profilePicOverride string, state UserState, status UserStatus, statusDescription string, statusFirstTime bool, statusHistory []string, steamDetails map[string]interface{}, steamId string, tags []string, twoFactorAuthEnabled bool, unsubscribe bool, userIcon string) *CurrentUser {
this := CurrentUser{}
this.AcceptedTOSVersion = acceptedTOSVersion
this.AllowAvatarCopying = allowAvatarCopying
this.Bio = bio
this.BioLinks = bioLinks
this.CurrentAvatar = currentAvatar
this.CurrentAvatarAssetUrl = currentAvatarAssetUrl
this.CurrentAvatarImageUrl = currentAvatarImageUrl
this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl
this.DateJoined = dateJoined
this.DeveloperType = developerType
this.DisplayName = displayName
this.EmailVerified = emailVerified
this.FriendGroupNames = friendGroupNames
this.FriendKey = friendKey
this.Friends = friends
this.HasBirthday = hasBirthday
this.HasEmail = hasEmail
this.HasLoggedInFromClient = hasLoggedInFromClient
this.HasPendingEmail = hasPendingEmail
this.HomeLocation = homeLocation
this.Id = id
this.IsFriend = isFriend
this.LastLogin = lastLogin
this.LastPlatform = lastPlatform
this.ObfuscatedEmail = obfuscatedEmail
this.ObfuscatedPendingEmail = obfuscatedPendingEmail
this.OculusId = oculusId
this.PastDisplayNames = pastDisplayNames
this.ProfilePicOverride = profilePicOverride
this.State = state
this.Status = status
this.StatusDescription = statusDescription
this.StatusFirstTime = statusFirstTime
this.StatusHistory = statusHistory
this.SteamDetails = steamDetails
this.SteamId = steamId
this.Tags = tags
this.TwoFactorAuthEnabled = twoFactorAuthEnabled
this.Unsubscribe = unsubscribe
this.UserIcon = userIcon
return &this
}
// NewCurrentUserWithDefaults instantiates a new CurrentUser 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 NewCurrentUserWithDefaults() *CurrentUser {
this := CurrentUser{}
var developerType DeveloperType = NONE
this.DeveloperType = developerType
var isFriend bool = false
this.IsFriend = isFriend
var state UserState = OFFLINE
this.State = state
var status UserStatus = OFFLINE
this.Status = status
return &this
}
// GetAcceptedTOSVersion returns the AcceptedTOSVersion field value
func (o *CurrentUser) GetAcceptedTOSVersion() int32 {
if o == nil {
var ret int32
return ret
}
return o.AcceptedTOSVersion
}
// GetAcceptedTOSVersionOk returns a tuple with the AcceptedTOSVersion field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetAcceptedTOSVersionOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.AcceptedTOSVersion, true
}
// SetAcceptedTOSVersion sets field value
func (o *CurrentUser) SetAcceptedTOSVersion(v int32) {
o.AcceptedTOSVersion = v
}
// GetAcceptedPrivacyVersion returns the AcceptedPrivacyVersion field value if set, zero value otherwise.
func (o *CurrentUser) GetAcceptedPrivacyVersion() int32 {
if o == nil || IsNil(o.AcceptedPrivacyVersion) {
var ret int32
return ret
}
return *o.AcceptedPrivacyVersion
}
// GetAcceptedPrivacyVersionOk returns a tuple with the AcceptedPrivacyVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetAcceptedPrivacyVersionOk() (*int32, bool) {
if o == nil || IsNil(o.AcceptedPrivacyVersion) {
return nil, false
}
return o.AcceptedPrivacyVersion, true
}
// HasAcceptedPrivacyVersion returns a boolean if a field has been set.
func (o *CurrentUser) HasAcceptedPrivacyVersion() bool {
if o != nil && !IsNil(o.AcceptedPrivacyVersion) {
return true
}
return false
}
// SetAcceptedPrivacyVersion gets a reference to the given int32 and assigns it to the AcceptedPrivacyVersion field.
func (o *CurrentUser) SetAcceptedPrivacyVersion(v int32) {
o.AcceptedPrivacyVersion = &v
}
// GetAccountDeletionDate returns the AccountDeletionDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CurrentUser) GetAccountDeletionDate() string {
if o == nil || IsNil(o.AccountDeletionDate.Get()) {
var ret string
return ret
}
return *o.AccountDeletionDate.Get()
}
// GetAccountDeletionDateOk returns a tuple with the AccountDeletionDate 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 *CurrentUser) GetAccountDeletionDateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AccountDeletionDate.Get(), o.AccountDeletionDate.IsSet()
}
// HasAccountDeletionDate returns a boolean if a field has been set.
func (o *CurrentUser) HasAccountDeletionDate() bool {
if o != nil && o.AccountDeletionDate.IsSet() {
return true
}
return false
}
// SetAccountDeletionDate gets a reference to the given NullableString and assigns it to the AccountDeletionDate field.
func (o *CurrentUser) SetAccountDeletionDate(v string) {
o.AccountDeletionDate.Set(&v)
}
// SetAccountDeletionDateNil sets the value for AccountDeletionDate to be an explicit nil
func (o *CurrentUser) SetAccountDeletionDateNil() {
o.AccountDeletionDate.Set(nil)
}
// UnsetAccountDeletionDate ensures that no value is present for AccountDeletionDate, not even an explicit nil
func (o *CurrentUser) UnsetAccountDeletionDate() {
o.AccountDeletionDate.Unset()
}
// GetAccountDeletionLog returns the AccountDeletionLog field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CurrentUser) GetAccountDeletionLog() []AccountDeletionLog {
if o == nil {
var ret []AccountDeletionLog
return ret
}
return o.AccountDeletionLog
}
// GetAccountDeletionLogOk returns a tuple with the AccountDeletionLog 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 *CurrentUser) GetAccountDeletionLogOk() ([]AccountDeletionLog, bool) {
if o == nil || IsNil(o.AccountDeletionLog) {
return nil, false
}
return o.AccountDeletionLog, true
}
// HasAccountDeletionLog returns a boolean if a field has been set.
func (o *CurrentUser) HasAccountDeletionLog() bool {
if o != nil && IsNil(o.AccountDeletionLog) {
return true
}
return false
}
// SetAccountDeletionLog gets a reference to the given []AccountDeletionLog and assigns it to the AccountDeletionLog field.
func (o *CurrentUser) SetAccountDeletionLog(v []AccountDeletionLog) {
o.AccountDeletionLog = v
}
// GetActiveFriends returns the ActiveFriends field value if set, zero value otherwise.
func (o *CurrentUser) GetActiveFriends() []string {
if o == nil || IsNil(o.ActiveFriends) {
var ret []string
return ret
}
return o.ActiveFriends
}
// GetActiveFriendsOk returns a tuple with the ActiveFriends field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetActiveFriendsOk() ([]string, bool) {
if o == nil || IsNil(o.ActiveFriends) {
return nil, false
}
return o.ActiveFriends, true
}
// HasActiveFriends returns a boolean if a field has been set.
func (o *CurrentUser) HasActiveFriends() bool {
if o != nil && !IsNil(o.ActiveFriends) {
return true
}
return false
}
// SetActiveFriends gets a reference to the given []string and assigns it to the ActiveFriends field.
func (o *CurrentUser) SetActiveFriends(v []string) {
o.ActiveFriends = v
}
// GetAllowAvatarCopying returns the AllowAvatarCopying field value
func (o *CurrentUser) GetAllowAvatarCopying() bool {
if o == nil {
var ret bool
return ret
}
return o.AllowAvatarCopying
}
// GetAllowAvatarCopyingOk returns a tuple with the AllowAvatarCopying field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetAllowAvatarCopyingOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.AllowAvatarCopying, true
}
// SetAllowAvatarCopying sets field value
func (o *CurrentUser) SetAllowAvatarCopying(v bool) {
o.AllowAvatarCopying = v
}
// GetBio returns the Bio field value
func (o *CurrentUser) GetBio() string {
if o == nil {
var ret string
return ret
}
return o.Bio
}
// GetBioOk returns a tuple with the Bio field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetBioOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Bio, true
}
// SetBio sets field value
func (o *CurrentUser) SetBio(v string) {
o.Bio = v
}
// GetBioLinks returns the BioLinks field value
func (o *CurrentUser) GetBioLinks() []string {
if o == nil {
var ret []string
return ret
}
return o.BioLinks
}
// GetBioLinksOk returns a tuple with the BioLinks field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetBioLinksOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.BioLinks, true
}
// SetBioLinks sets field value
func (o *CurrentUser) SetBioLinks(v []string) {
o.BioLinks = v
}
// GetCurrentAvatar returns the CurrentAvatar field value
func (o *CurrentUser) GetCurrentAvatar() string {
if o == nil {
var ret string
return ret
}
return o.CurrentAvatar
}
// GetCurrentAvatarOk returns a tuple with the CurrentAvatar field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetCurrentAvatarOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CurrentAvatar, true
}
// SetCurrentAvatar sets field value
func (o *CurrentUser) SetCurrentAvatar(v string) {
o.CurrentAvatar = v
}
// GetCurrentAvatarAssetUrl returns the CurrentAvatarAssetUrl field value
func (o *CurrentUser) GetCurrentAvatarAssetUrl() string {
if o == nil {
var ret string
return ret
}
return o.CurrentAvatarAssetUrl
}
// GetCurrentAvatarAssetUrlOk returns a tuple with the CurrentAvatarAssetUrl field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetCurrentAvatarAssetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CurrentAvatarAssetUrl, true
}
// SetCurrentAvatarAssetUrl sets field value
func (o *CurrentUser) SetCurrentAvatarAssetUrl(v string) {
o.CurrentAvatarAssetUrl = v
}
// GetCurrentAvatarImageUrl returns the CurrentAvatarImageUrl field value
func (o *CurrentUser) GetCurrentAvatarImageUrl() string {
if o == nil {
var ret string
return ret
}
return o.CurrentAvatarImageUrl
}
// GetCurrentAvatarImageUrlOk returns a tuple with the CurrentAvatarImageUrl field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetCurrentAvatarImageUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CurrentAvatarImageUrl, true
}
// SetCurrentAvatarImageUrl sets field value
func (o *CurrentUser) SetCurrentAvatarImageUrl(v string) {
o.CurrentAvatarImageUrl = v
}
// GetCurrentAvatarThumbnailImageUrl returns the CurrentAvatarThumbnailImageUrl field value
func (o *CurrentUser) GetCurrentAvatarThumbnailImageUrl() string {
if o == nil {
var ret string
return ret
}
return o.CurrentAvatarThumbnailImageUrl
}
// GetCurrentAvatarThumbnailImageUrlOk returns a tuple with the CurrentAvatarThumbnailImageUrl field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetCurrentAvatarThumbnailImageUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CurrentAvatarThumbnailImageUrl, true
}
// SetCurrentAvatarThumbnailImageUrl sets field value
func (o *CurrentUser) SetCurrentAvatarThumbnailImageUrl(v string) {
o.CurrentAvatarThumbnailImageUrl = v
}
// GetDateJoined returns the DateJoined field value
func (o *CurrentUser) GetDateJoined() string {
if o == nil {
var ret string
return ret
}
return o.DateJoined
}
// GetDateJoinedOk returns a tuple with the DateJoined field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetDateJoinedOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DateJoined, true
}
// SetDateJoined sets field value
func (o *CurrentUser) SetDateJoined(v string) {
o.DateJoined = v
}
// GetDeveloperType returns the DeveloperType field value
func (o *CurrentUser) GetDeveloperType() DeveloperType {
if o == nil {
var ret DeveloperType
return ret
}
return o.DeveloperType
}
// GetDeveloperTypeOk returns a tuple with the DeveloperType field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetDeveloperTypeOk() (*DeveloperType, bool) {
if o == nil {
return nil, false
}
return &o.DeveloperType, true
}
// SetDeveloperType sets field value
func (o *CurrentUser) SetDeveloperType(v DeveloperType) {
o.DeveloperType = v
}
// GetDisplayName returns the DisplayName field value
func (o *CurrentUser) GetDisplayName() string {
if o == nil {
var ret string
return ret
}
return o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetDisplayNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DisplayName, true
}
// SetDisplayName sets field value
func (o *CurrentUser) SetDisplayName(v string) {
o.DisplayName = v
}
// GetEmailVerified returns the EmailVerified field value
func (o *CurrentUser) GetEmailVerified() bool {
if o == nil {
var ret bool
return ret
}
return o.EmailVerified
}
// GetEmailVerifiedOk returns a tuple with the EmailVerified field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetEmailVerifiedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.EmailVerified, true
}
// SetEmailVerified sets field value
func (o *CurrentUser) SetEmailVerified(v bool) {
o.EmailVerified = v
}
// GetFallbackAvatar returns the FallbackAvatar field value if set, zero value otherwise.
func (o *CurrentUser) GetFallbackAvatar() string {
if o == nil || IsNil(o.FallbackAvatar) {
var ret string
return ret
}
return *o.FallbackAvatar
}
// GetFallbackAvatarOk returns a tuple with the FallbackAvatar field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetFallbackAvatarOk() (*string, bool) {
if o == nil || IsNil(o.FallbackAvatar) {
return nil, false
}
return o.FallbackAvatar, true
}
// HasFallbackAvatar returns a boolean if a field has been set.
func (o *CurrentUser) HasFallbackAvatar() bool {
if o != nil && !IsNil(o.FallbackAvatar) {
return true
}
return false
}
// SetFallbackAvatar gets a reference to the given string and assigns it to the FallbackAvatar field.
func (o *CurrentUser) SetFallbackAvatar(v string) {
o.FallbackAvatar = &v
}
// GetFriendGroupNames returns the FriendGroupNames field value
// Deprecated
func (o *CurrentUser) GetFriendGroupNames() []string {
if o == nil {
var ret []string
return ret
}
return o.FriendGroupNames
}
// GetFriendGroupNamesOk returns a tuple with the FriendGroupNames field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *CurrentUser) GetFriendGroupNamesOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.FriendGroupNames, true
}
// SetFriendGroupNames sets field value
// Deprecated
func (o *CurrentUser) SetFriendGroupNames(v []string) {
o.FriendGroupNames = v
}
// GetFriendKey returns the FriendKey field value
func (o *CurrentUser) GetFriendKey() string {
if o == nil {
var ret string
return ret
}
return o.FriendKey
}
// GetFriendKeyOk returns a tuple with the FriendKey field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetFriendKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.FriendKey, true
}
// SetFriendKey sets field value
func (o *CurrentUser) SetFriendKey(v string) {
o.FriendKey = v
}
// GetFriends returns the Friends field value
func (o *CurrentUser) GetFriends() []string {
if o == nil {
var ret []string
return ret
}
return o.Friends
}
// GetFriendsOk returns a tuple with the Friends field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetFriendsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.Friends, true
}
// SetFriends sets field value
func (o *CurrentUser) SetFriends(v []string) {
o.Friends = v
}
// GetHasBirthday returns the HasBirthday field value
func (o *CurrentUser) GetHasBirthday() bool {
if o == nil {
var ret bool
return ret
}
return o.HasBirthday
}
// GetHasBirthdayOk returns a tuple with the HasBirthday field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetHasBirthdayOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasBirthday, true
}
// SetHasBirthday sets field value
func (o *CurrentUser) SetHasBirthday(v bool) {
o.HasBirthday = v
}
// GetHasEmail returns the HasEmail field value
func (o *CurrentUser) GetHasEmail() bool {
if o == nil {
var ret bool
return ret
}
return o.HasEmail
}
// GetHasEmailOk returns a tuple with the HasEmail field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetHasEmailOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasEmail, true
}
// SetHasEmail sets field value
func (o *CurrentUser) SetHasEmail(v bool) {
o.HasEmail = v
}
// GetHasLoggedInFromClient returns the HasLoggedInFromClient field value
func (o *CurrentUser) GetHasLoggedInFromClient() bool {
if o == nil {
var ret bool
return ret
}
return o.HasLoggedInFromClient
}
// GetHasLoggedInFromClientOk returns a tuple with the HasLoggedInFromClient field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetHasLoggedInFromClientOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasLoggedInFromClient, true
}
// SetHasLoggedInFromClient sets field value
func (o *CurrentUser) SetHasLoggedInFromClient(v bool) {
o.HasLoggedInFromClient = v
}
// GetHasPendingEmail returns the HasPendingEmail field value
func (o *CurrentUser) GetHasPendingEmail() bool {
if o == nil {
var ret bool
return ret
}
return o.HasPendingEmail
}
// GetHasPendingEmailOk returns a tuple with the HasPendingEmail field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetHasPendingEmailOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasPendingEmail, true
}
// SetHasPendingEmail sets field value
func (o *CurrentUser) SetHasPendingEmail(v bool) {
o.HasPendingEmail = v
}
// GetHomeLocation returns the HomeLocation field value
func (o *CurrentUser) GetHomeLocation() string {
if o == nil {
var ret string
return ret
}
return o.HomeLocation
}
// GetHomeLocationOk returns a tuple with the HomeLocation field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetHomeLocationOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.HomeLocation, true
}
// SetHomeLocation sets field value
func (o *CurrentUser) SetHomeLocation(v string) {
o.HomeLocation = v
}
// GetId returns the Id field value
func (o *CurrentUser) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *CurrentUser) SetId(v string) {
o.Id = v
}
// GetIsFriend returns the IsFriend field value
func (o *CurrentUser) GetIsFriend() bool {
if o == nil {
var ret bool
return ret
}
return o.IsFriend
}
// GetIsFriendOk returns a tuple with the IsFriend field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetIsFriendOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.IsFriend, true
}
// SetIsFriend sets field value
func (o *CurrentUser) SetIsFriend(v bool) {
o.IsFriend = v
}
// GetLastActivity returns the LastActivity field value if set, zero value otherwise.
func (o *CurrentUser) GetLastActivity() time.Time {
if o == nil || IsNil(o.LastActivity) {
var ret time.Time
return ret
}
return *o.LastActivity
}
// GetLastActivityOk returns a tuple with the LastActivity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetLastActivityOk() (*time.Time, bool) {
if o == nil || IsNil(o.LastActivity) {
return nil, false
}
return o.LastActivity, true
}
// HasLastActivity returns a boolean if a field has been set.
func (o *CurrentUser) HasLastActivity() bool {
if o != nil && !IsNil(o.LastActivity) {
return true
}
return false
}
// SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
func (o *CurrentUser) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
// GetLastLogin returns the LastLogin field value
func (o *CurrentUser) GetLastLogin() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.LastLogin
}
// GetLastLoginOk returns a tuple with the LastLogin field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetLastLoginOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.LastLogin, true
}
// SetLastLogin sets field value
func (o *CurrentUser) SetLastLogin(v time.Time) {
o.LastLogin = v
}
// GetLastPlatform returns the LastPlatform field value
func (o *CurrentUser) GetLastPlatform() string {
if o == nil {
var ret string
return ret
}
return o.LastPlatform
}
// GetLastPlatformOk returns a tuple with the LastPlatform field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetLastPlatformOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.LastPlatform, true
}
// SetLastPlatform sets field value
func (o *CurrentUser) SetLastPlatform(v string) {
o.LastPlatform = v
}
// GetObfuscatedEmail returns the ObfuscatedEmail field value
func (o *CurrentUser) GetObfuscatedEmail() string {
if o == nil {
var ret string
return ret
}
return o.ObfuscatedEmail
}
// GetObfuscatedEmailOk returns a tuple with the ObfuscatedEmail field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetObfuscatedEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObfuscatedEmail, true
}
// SetObfuscatedEmail sets field value
func (o *CurrentUser) SetObfuscatedEmail(v string) {
o.ObfuscatedEmail = v
}
// GetObfuscatedPendingEmail returns the ObfuscatedPendingEmail field value
func (o *CurrentUser) GetObfuscatedPendingEmail() string {
if o == nil {
var ret string
return ret
}
return o.ObfuscatedPendingEmail
}
// GetObfuscatedPendingEmailOk returns a tuple with the ObfuscatedPendingEmail field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetObfuscatedPendingEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObfuscatedPendingEmail, true
}
// SetObfuscatedPendingEmail sets field value
func (o *CurrentUser) SetObfuscatedPendingEmail(v string) {
o.ObfuscatedPendingEmail = v
}
// GetOculusId returns the OculusId field value
func (o *CurrentUser) GetOculusId() string {
if o == nil {
var ret string
return ret
}
return o.OculusId
}
// GetOculusIdOk returns a tuple with the OculusId field value
// and a boolean to check if the value has been set.
func (o *CurrentUser) GetOculusIdOk() (*string, bool) {
if o == nil {
return nil, false