Account Properties
Usageโ
โTo get account properties you can use protocol P101XPDelegate and subscribe to the method p101xpOnGetAccount(result: P101XPAccountData?, error: NSError?)
- (void)p101xpOnGetAccountWithResult:(P101XPAccountData *)result error:(NSError *)error {
if (error != nil) {
NSLog(@"OnGetAccountResult failure with error: %@", error.localizedDescription);
} else {
NSLog(@"OnGetAccountResult success username: %@", result.displayName);
}
}
โThe object properties has the next keys and values:
Key | Value | Description |
---|---|---|
userGameId | Int64 | The user game id |
portalId | Int64 | The portal id |
displayName | String | The name user |
photoUrl | String | The photo url for user |
isGuest | YES/NO (BOOL) | The user is guest (yes / no) |