DBACCOUNTUserAuthRoutes
Objective-C
@interface DBACCOUNTUserAuthRoutes : NSObject
Swift
class DBACCOUNTUserAuthRoutes : NSObject
Routes for the Account
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
DBACCOUNTUserAuthRoutes
namespace container object with a networking client.Declaration
Objective-C
- (nonnull instancetype)init:(nonnull id<DBTransportClient>)client;
-
Sets a user’s profile photo.
Declaration
Objective-C
- (nonnull DBRpcTask<DBACCOUNTSetProfilePhotoResult *, DBACCOUNTSetProfilePhotoError *> *)setProfilePhoto: (nonnull DBACCOUNTPhotoSourceArg *)photo;
Swift
func setProfilePhoto(_ photo: DBACCOUNTPhotoSourceArg) -> DBRpcTask<DBACCOUNTSetProfilePhotoResult, DBACCOUNTSetProfilePhotoError>
Parameters
photo
Image to set as the user’s new profile photo.
Return Value
Through the response callback, the caller will receive a
DBACCOUNTSetProfilePhotoResult
object on success or aDBACCOUNTSetProfilePhotoError
object on failure.