SDK for / Overview

XsollaLoginTypes.h

1// Copyright 2021 Xsolla Inc. All Rights Reserved.
2
3#pragma once
4
5#include "XsollaLoginTypes.generated.h"
6
7UENUM(BlueprintType)
8enum class EXsollaFriendsType : uint8
9{
11friends UMETA(DisplayName = "Friends"),
13friend_requested UMETA(DisplayName = "FriendsRequested"),
15friend_requested_by UMETA(DisplayName = "FriendsRequestedBy"),
17blocked UMETA(DisplayName = "Blocked"),
19blocked_by UMETA(DisplayName = "BlockedBy")
20};
21
22UENUM(BlueprintType)
23enum class EXsollaSessionType : uint8
24{
26all UMETA(DisplayName = "All"),
28sso UMETA(DisplayName = "SSO")
29};
30
31UENUM(BlueprintType)
32enum class EXsollaUsersSortCriteria : uint8
33{
35by_nickname UMETA(DisplayName = "ByNickname"),
37by_update UMETA(DisplayName = "ByUpdate")
38};
39
40UENUM(BlueprintType)
41enum class EXsollaUsersSortOrder : uint8
42{
43asc UMETA(DisplayName = "Ascending"),
44desc UMETA(DisplayName = "Descending")
45};
46
47UENUM(BlueprintType)
48enum class EXsollaFriendAction : uint8
49{
50friend_request_add UMETA(DisplayName = "RequestAdd"),
51friend_request_cancel UMETA(DisplayName = "RequestCancel"),
52friend_request_approve UMETA(DisplayName = "RequestApprove"),
53friend_request_deny UMETA(DisplayName = "RequestDeny"),
54friend_remove UMETA(DisplayName = "Remove"),
55block UMETA(DisplayName = "Block"),
56unblock UMETA(DisplayName = "Unblock")
57};
58
59USTRUCT(BlueprintType)
61{
62GENERATED_BODY()
63
64
65UPROPERTY(BlueprintReadOnly, Category = "Auth Token")
66FString JWT;
67
69UPROPERTY(BlueprintReadOnly, Category = "Auth Token")
70int64 ExpiresAt;
71
73UPROPERTY(BlueprintReadOnly, Category = "Auth Token")
74bool bIsVerified;
75
77UPROPERTY(BlueprintReadOnly, Category = "Auth Token")
78FString RefreshToken;
79
81: ExpiresAt(0)
82, bIsVerified(false)
83{
84}
85};
86
87USTRUCT(BlueprintType)
89{
90GENERATED_BODY()
91
92UPROPERTY(BlueprintReadOnly, Category = "Login Data")
93FXsollaAuthToken AuthToken;
94
95UPROPERTY(BlueprintReadOnly, Category = "Login Data")
96FString Username;
97
98UPROPERTY(BlueprintReadOnly, Category = "Login Data")
99FString Password;
100
101UPROPERTY(BlueprintReadOnly, Category = "Login Data")
102bool bRememberMe;
103
104UPROPERTY(BlueprintReadOnly, Category = "Login Data")
105bool bEncrypted;
106
108: bRememberMe(false)
109, bEncrypted(false)
110{
111}
112};
113
114USTRUCT(BlueprintType)
116{
117GENERATED_BODY()
118
119UPROPERTY(BlueprintReadWrite, Category = "User Attribute")
120FString key;
121
122UPROPERTY(BlueprintReadWrite, Category = "User Attribute")
123FString permission;
124
125UPROPERTY(BlueprintReadWrite, Category = "User Attribute")
126FString value;
127};
128
129USTRUCT(BlueprintType)
131{
132GENERATED_BODY()
133
134UPROPERTY(BlueprintReadWrite, Category = "User Ban")
135FString date_from;
136
137UPROPERTY(BlueprintReadWrite, Category = "User Ban")
138FString date_to;
139
140UPROPERTY(BlueprintReadWrite, Category = "User Ban")
141FString reason;
142};
143
144USTRUCT(BlueprintType)
146{
147GENERATED_BODY()
148
149UPROPERTY(BlueprintReadWrite, Category = "User Group")
150int32 id;
151
152UPROPERTY(BlueprintReadWrite, Category = "User Group")
153bool is_default;
154
155UPROPERTY(BlueprintReadWrite, Category = "User Group")
156bool is_deletable;
157
158UPROPERTY(BlueprintReadWrite, Category = "User Group")
159FString name;
160
162: id(0)
163, is_default(false)
164, is_deletable(false)
165{
166}
167};
168
169USTRUCT(BlueprintType)
171{
172GENERATED_BODY()
173
174UPROPERTY(BlueprintReadWrite, Category = "User Details")
176
177UPROPERTY(BlueprintReadWrite, Category = "User Details")
178FString birthday;
179
180UPROPERTY(BlueprintReadWrite, Category = "User Details")
181FString connection_information;
182
183UPROPERTY(BlueprintReadWrite, Category = "User Details")
184FString country;
185
186UPROPERTY(BlueprintReadWrite, Category = "User Details")
187FString email;
188
189UPROPERTY(BlueprintReadWrite, Category = "User Details")
190FString external_id;
191
192UPROPERTY(BlueprintReadWrite, Category = "User Details")
193FString first_name;
194
195UPROPERTY(BlueprintReadWrite, Category = "User Details")
196FString gender;
197
198UPROPERTY(BlueprintReadWrite, Category = "User Details")
199TArray<FXsollaUserGroup> groups;
200
201UPROPERTY(BlueprintReadWrite, Category = "User Details")
202FString id;
203
204UPROPERTY(BlueprintReadWrite, Category = "User Details")
205bool is_anonymous;
206
207UPROPERTY(BlueprintReadWrite, Category = "User Details")
208FString last_login;
209
210UPROPERTY(BlueprintReadWrite, Category = "User Details")
211FString last_name;
212
213UPROPERTY(BlueprintReadWrite, Category = "User Details")
214FString name;
215
216UPROPERTY(BlueprintReadWrite, Category = "User Details")
217FString nickname;
218
219UPROPERTY(BlueprintReadWrite, Category = "User Details")
220FString tag;
221
222UPROPERTY(BlueprintReadWrite, Category = "User Details")
223FString phone;
224
225UPROPERTY(BlueprintReadWrite, Category = "User Details")
226FString picture;
227
228UPROPERTY(BlueprintReadWrite, Category = "User Details")
229FString registered;
230
231UPROPERTY(BlueprintReadWrite, Category = "Friend Details")
232FString presence;
233
235: is_anonymous(false)
236{
237}
238};
239
240USTRUCT(BlueprintType)
242{
243GENERATED_BODY()
244
245UPROPERTY(BlueprintReadWrite, Category = "Friend Details")
246FString status_incoming;
247
248UPROPERTY(BlueprintReadWrite, Category = "Friend Details")
249FString status_outgoing;
250
251UPROPERTY(BlueprintReadWrite, Category = "Friend Details")
252int64 updated;
253
254UPROPERTY(BlueprintReadWrite, Category = "Friend Details")
256
258: updated(0)
259{
260}
261};
262
263USTRUCT(BlueprintType)
265{
266GENERATED_BODY()
267
268UPROPERTY(BlueprintReadWrite, Category = "Friends Data")
269FString next_after;
270
271UPROPERTY(BlueprintReadWrite, Category = "Friends Data")
272FString next_url;
273
274UPROPERTY(BlueprintReadWrite, Category = "Friends Data")
275TArray<FXsollaFriendDetails> relationships;
276};
277
278USTRUCT(BlueprintType)
280{
281GENERATED_BODY()
282
283UPROPERTY(BlueprintReadWrite, Category = "Social Authentication")
284FString auth_url;
285
286UPROPERTY(BlueprintReadWrite, Category = "Social Authentication")
287FString provider;
288};
289
290USTRUCT(BlueprintType)
292{
293GENERATED_BODY()
294
295UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
296FString avatar;
297
298UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
299FString name;
300
301UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
302FString platform;
303
304UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
305FString tag;
306
307UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
308FString user_id;
309
310UPROPERTY(BlueprintReadWrite, Category = "Social Friend")
311FString xl_uid;
312};
313
314USTRUCT(BlueprintType)
316{
317GENERATED_BODY()
318
319UPROPERTY(BlueprintReadWrite, Category = "Social Friends Data")
320TArray<FXsollaSocialFriend> data;
321
322UPROPERTY(BlueprintReadWrite, Category = "Social Friends Data")
323int32 limit;
324
325UPROPERTY(BlueprintReadWrite, Category = "Social Friends Data")
326int32 offset;
327
328UPROPERTY(BlueprintReadWrite, Category = "Social Friends Data")
329FString platform;
330
331UPROPERTY(BlueprintReadWrite, Category = "Social Friends Data")
332int32 total_count;
333
335: limit(0)
336, offset(0)
337, total_count(0)
338{
339}
340};
341
342USTRUCT(BlueprintType)
344{
345GENERATED_BODY()
346
347UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
348FString avatar;
349
350UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
351bool is_me;
352
353UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
354FString last_login;
355
356UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
357FString nickname;
358
359UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
360FString tag;
361
362UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
363FString registered;
364
365UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
366FString user_id;
367
369: is_me(false)
370{
371}
372};
373
374USTRUCT(BlueprintType)
376{
377GENERATED_BODY()
378
379UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
380int32 offset;
381
382UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
383int32 total_count;
384
385UPROPERTY(BlueprintReadWrite, Category = "User Public Profile")
386TArray<FXsollaPublicProfile> users;
387
389: offset(0)
390, total_count(0)
391{
392}
393};
394
395USTRUCT(BlueprintType)
397{
398GENERATED_BODY()
399
400UPROPERTY(BlueprintReadWrite, Category = "Social Network")
401FString full_name;
402
403UPROPERTY(BlueprintReadWrite, Category = "Social Network")
404FString nickname;
405
406UPROPERTY(BlueprintReadWrite, Category = "Social Network")
407FString picture;
408
409UPROPERTY(BlueprintReadWrite, Category = "Social Network")
410FString provider;
411
412UPROPERTY(BlueprintReadWrite, Category = "Social Network")
413FString social_id;
414};
415
416USTRUCT(BlueprintType)
418{
419GENERATED_BODY()
420
421UPROPERTY(BlueprintReadWrite, Category = "Check User Age")
422bool accepted;
423};
424
425USTRUCT(BlueprintType)
427{
428GENERATED_BODY()
429
430
431UPROPERTY(BlueprintReadWrite, Category = "Social Network")
432FString access_token;
433
435UPROPERTY(BlueprintReadWrite, Category = "Social Network")
436int64 expires_in;
437
439UPROPERTY(BlueprintReadWrite, Category = "Social Network")
440FString refresh_token;
441
443UPROPERTY(BlueprintReadWrite, Category = "Social Network")
444FString token_type;
445};
446
447USTRUCT(BlueprintType)
449{
450GENERATED_BODY()
451
452UPROPERTY(BlueprintReadWrite, Category = "User Device")
453FString device;
454
455UPROPERTY(BlueprintReadWrite, Category = "User Device")
456int64 id;
457
458UPROPERTY(BlueprintReadWrite, Category = "User Device")
459FString last_used_at;
460
461UPROPERTY(BlueprintReadWrite, Category = "User Device")
462FString type;
463};
Definition: XsollaLoginTypes.h:61
Definition: XsollaLoginTypes.h:418
Definition: XsollaLoginTypes.h:242
Definition: XsollaLoginTypes.h:265
Definition: XsollaLoginTypes.h:397
Definition: XsollaLoginTypes.h:89
Definition: XsollaLoginTypes.h:427
Definition: XsollaLoginTypes.h:344
Definition: XsollaLoginTypes.h:292
Definition: XsollaLoginTypes.h:316
Definition: XsollaLoginTypes.h:116
Definition: XsollaLoginTypes.h:131
Definition: XsollaLoginTypes.h:171
Definition: XsollaLoginTypes.h:449
Definition: XsollaLoginTypes.h:146
Definition: XsollaLoginTypes.h:376