GetSocialPublicUser Class Reference

Inherits from NSObject
Declared in GetSocialPublicUser.h

Properties and Methods

@property userId

GetSocial User id.

@property (nonatomic, readonly, assign) GetSocialId userId

Declared In

GetSocialPublicUser.h

@property displayName

Display name.

@property (nonatomic, readonly, copy) NSString *displayName

Declared In

GetSocialPublicUser.h

@property avatarUrl

Avatar url.

@property (nonatomic, readonly, copy, nullable) NSString *avatarUrl

Declared In

GetSocialPublicUser.h

@property authIdentities

Returns all identities added to the user. The key is the provider Id and the value is the userId used internally by that provider for this user. You can add or remove identities using [GetSocialUser addAuthIdentity:success:conflict:failure:] and [GetSocialUser removeAuthIdentityWithProviderId:success:conflict:failure:]. The key(providerId) is the one you’ve passed as a first parameter to [GetSocialAuthIdentity customIdentityForProvider:userId:accessToken:] or “facebook” constant if you’ve created Facebook identity with [GetSocialAuthIdentity facebookIdentityWithAccessToken:].

The value(userId) is the second parameter in [GetSocialAuthIdentity customIdentityForProvider:userId:accessToken] or automatically obtained by GetSocial if you’ve used Facebook identity.

Read more about identities in the documentation: https://docs.getsocial.im/guides/user-management/ios/managing-user-identities/

@property (nonatomic, readonly) NSDictionary<NSString*NSString*> *authIdentities

Return Value

All auth identities added to the user.

Declared In

GetSocialPublicUser.h

@property allPublicProperties

All public properties of user. The dictionary is an unmodifiable copy of origin user properties.

@property (nonatomic, readonly) NSDictionary<NSString*NSString*> *allPublicProperties

Declared In

GetSocialPublicUser.h

– publicPropertyForKey:

Returns public property value for the specified key.

- (nullable NSString *)publicPropertyForKey:(NSString *)propertyKey

Parameters

propertyKey

key of property.

Return Value

property value or nil if property does not exist.

Declared In

GetSocialPublicUser.h

– hasPublicPropertyForKey:

Checks if public property exists for the specified property key.

- (BOOL)hasPublicPropertyForKey:(NSString *)propertyKey

Parameters

propertyKey

key of property.

Return Value

YES if property exists, NO if it does not exist.

Declared In

GetSocialPublicUser.h

– isApp

Method to check is this an account of normal user or application.

- (BOOL)isApp

Return Value

YES if account belongs to application, NO otherwise.

Declared In

GetSocialPublicUser.h