DBUSERSUserAuthRoutes
Objective-C
@interface DBUSERSUserAuthRoutes : NSObject
                Swift
class DBUSERSUserAuthRoutes : NSObject
                Routes for the Users namespace
- 
                  
                  
An instance of the networking client that each route will use to submit a request.
Declaration
Objective-C
@property (nonatomic, readonly) id<DBTransportClient> _Nonnull client; - 
                  
                  
Initializes the
DBUSERSUserAuthRoutesnamespace container object with a networking client.Declaration
Objective-C
- (nonnull instancetype)init:(nonnull id<DBTransportClient>)client; - 
                  
                  
Get a list of feature values that may be configured for the current account.
Declaration
Objective-C
- (nonnull DBRpcTask<DBUSERSUserFeaturesGetValuesBatchResult *, DBUSERSUserFeaturesGetValuesBatchError *> *) featuresGetValues:(nonnull NSArray<DBUSERSUserFeature *> *)features;Swift
func featuresGetValues(_ features: [DBUSERSUserFeature]) -> DBRpcTask<DBUSERSUserFeaturesGetValuesBatchResult, DBUSERSUserFeaturesGetValuesBatchError>Parameters
featuresA list of features in UserFeature. If the list is empty, this route will return UserFeaturesGetValuesBatchError.
Return Value
Through the response callback, the caller will receive a
DBUSERSUserFeaturesGetValuesBatchResultobject on success or aDBUSERSUserFeaturesGetValuesBatchErrorobject on failure. - 
                  
                  
Get information about a user’s account.
Declaration
Objective-C
- (nonnull DBRpcTask<DBUSERSBasicAccount *, DBUSERSGetAccountError *> *) getAccount:(nonnull NSString *)accountId;Swift
func getAccount(_ accountId: String) -> DBRpcTask<DBUSERSBasicAccount, DBUSERSGetAccountError>Parameters
accountIdA user’s account identifier.
Return Value
Through the response callback, the caller will receive a
DBUSERSBasicAccountobject on success or aDBUSERSGetAccountErrorobject on failure. - 
                  
                  
Get information about multiple user accounts. At most 300 accounts may be queried per request.
Declaration
Objective-C
- (nonnull DBRpcTask<NSArray<DBUSERSBasicAccount *> *, DBUSERSGetAccountBatchError *> *)getAccountBatch: (nonnull NSArray<NSString *> *)accountIds;Swift
func getAccountBatch(_ accountIds: [String]) -> DBRpcTask<NSArray, DBUSERSGetAccountBatchError>Parameters
accountIdsList of user account identifiers. Should not contain any duplicate account IDs.
Return Value
Through the response callback, the caller will receive a
NSArray<DBUSERSBasicAccount *>object on success or aDBUSERSGetAccountBatchErrorobject on failure. - 
                  
                  
Get information about the current user’s account.
Declaration
Objective-C
- (nonnull DBRpcTask<DBUSERSFullAccount *, DBNilObject *> *)getCurrentAccount;Swift
func getCurrentAccount() -> DBRpcTask<DBUSERSFullAccount, DBNilObject>Return Value
Through the response callback, the caller will receive a
DBUSERSFullAccountobject on success or avoidobject on failure. - 
                  
                  
Get the space usage information for the current user’s account.
Declaration
Objective-C
- (nonnull DBRpcTask<DBUSERSSpaceUsage *, DBNilObject *> *)getSpaceUsage;Swift
func getSpaceUsage() -> DBRpcTask<DBUSERSSpaceUsage, DBNilObject>Return Value
Through the response callback, the caller will receive a
DBUSERSSpaceUsageobject on success or avoidobject on failure. 
View on GitHub
        DBUSERSUserAuthRoutes Class Reference