BMXUserService Class Reference
Inherits from NSObject
Declared in floo_proxy.h
Overview
@interface 用户Service
Properties
swigCMemOwn
@property (nonatomic) BOOL swigCMemOwn
swigCPtr
@property (nonatomic) void *swigCPtr
Instance Methods
addDelegate:
添加用户状态监听者
- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate*
Parameters
listener
用户状态监听者
Declared In
floo_proxy.h
addDelegate:delegateQueue:
- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*
bindDeviceWithToken:
绑定设备推送token
- (BMXErrorCode)bindDeviceWithToken:(NSString *)*token*
Parameters
token
设备token
Return Value
Declared In
floo_proxy.h
bindDeviceWithToken:completion:
绑定设备推送token
- (void)bindDeviceWithToken:(NSString *)*token* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
token
设备token
Return Value
Declared In
floo_proxy.h
dealloc
- (void)dealloc
deleteDeviceWithDeviceSn:
删除设备
- (BMXErrorCode)deleteDeviceWithDeviceSn:(int)*device_sn*
Parameters
device_sn
设备序列号
Return Value
Declared In
floo_proxy.h
deleteDeviceWithDeviceSn:completion:
删除设备
- (void)deleteDeviceWithDeviceSn:(int)*device_sn* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
device_sn
设备序列号
Return Value
Declared In
floo_proxy.h
downloadAvatarWithProfile:thumbnail:callback:
下载头像,默认下载缩略图
- (BMXErrorCode)downloadAvatarWithProfile:(BMXUserProfile *)*profile* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback*
Parameters
profile
用户profile
thumbnail
是否下载缩略图,true下载缩略图,false下载原图
callback
下载回调函数
Return Value
Declared In
floo_proxy.h
downloadAvatarWithProfile:thumbnail:callback:completion:
下载头像,默认下载缩略图
- (void)downloadAvatarWithProfile:(BMXUserProfile *)*profile* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
profile
用户profile
thumbnail
是否下载缩略图,true下载缩略图,false下载原图
callback
下载回调函数
Return Value
Declared In
floo_proxy.h
getDeviceList:
获取设备列表
- (BMXErrorCode)getDeviceList:(BMXDeviceList *)*deviceList*
Parameters
deviceList
设备列表,传入空列表函数返回后从此处获取返回的设备列表
Return Value
Declared In
floo_proxy.h
getDeviceListWithCompletion:
获取设备列表
- (void)getDeviceListWithCompletion:(void ( ^ ) ( BMXDeviceList *deviceList , BMXError *aError ))*resBlock*
Parameters
deviceList
设备列表,传入空列表函数返回后从此处获取返回的设备列表
Return Value
Declared In
floo_proxy.h
getProfile:completion:
获取用户详情,如果forceRefresh == true,则强制从服务端拉取
- (void)getProfile:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXUserProfile *profile , BMXError *aError ))*resBlock*
Parameters
forceRefresh
是否强制从服务器拉取,本地获取失败的情况下会自动从服务器拉取
profile
用户profile信息,初始传入指向为空的shared_ptr对象,函数返回后从此处获取用户profile信息。
Return Value
Declared In
floo_proxy.h
getProfile:forceRefresh:
获取用户详情,如果forceRefresh == true,则强制从服务端拉取
- (BMXErrorCode)getProfile:(BMXUserProfile *)*profile* forceRefresh:(BOOL)*forceRefresh*
Parameters
profile
用户profile信息,初始传入指向为空的shared_ptr对象,函数返回后从此处获取用户profile信息。
forceRefresh
是否强制从服务器拉取,本地获取失败的情况下会自动从服务器拉取
Return Value
Declared In
floo_proxy.h
initWithCptr:swigOwnCObject:
- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*
removeDelegate:
移除用户状态监听者
- (void)removeDelegate:(id<BMXUserServiceProtocol>)*aDelegate*
Parameters
listener
用户状态监听者
Declared In
floo_proxy.h
setAddFriendAuthMode:
设置加好友验证方式
- (BMXErrorCode)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)*mode*
Parameters
mode
加好友验证方式
Return Value
Declared In
floo_proxy.h
setAddFriendAuthMode:completion:
设置加好友验证方式
- (void)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)*mode* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
mode
加好友验证方式
Return Value
Declared In
floo_proxy.h
setAuthQuestion:
设置加好友验证问题
- (BMXErrorCode)setAuthQuestion:(BMXUserProfileAuthQuestion *)*authQuestion*
Parameters
authQuestion
加好友验证问题
Return Value
Declared In
floo_proxy.h
setAuthQuestion:completion:
设置加好友验证问题
- (void)setAuthQuestion:(BMXUserProfileAuthQuestion *)*authQuestion* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
authQuestion
加好友验证问题
Return Value
Declared In
floo_proxy.h
setAutoAcceptGroupInvite:
设置是否自动同意入群邀请
- (BMXErrorCode)setAutoAcceptGroupInvite:(BOOL)*enable*
Parameters
enable
是否自动同意入群邀请,true同意,false不同意
Return Value
Declared In
floo_proxy.h
setAutoAcceptGroupInvite:completion:
设置是否自动同意入群邀请
- (void)setAutoAcceptGroupInvite:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
是否自动同意入群邀请,true同意,false不同意
Return Value
Declared In
floo_proxy.h
setAutoDownloadAttachment:
设置是否自动缩略图和语音附件
- (BMXErrorCode)setAutoDownloadAttachment:(BOOL)*enable*
Parameters
enable
是否自动缩略图和语音附件,true自动下载,false不会自动下载
Return Value
Declared In
floo_proxy.h
setAutoDownloadAttachment:completion:
设置是否自动缩略图和语音附件
- (void)setAutoDownloadAttachment:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
是否自动缩略图和语音附件,true自动下载,false不会自动下载
Return Value
Declared In
floo_proxy.h
setEnablePush:
设置是否允许推送
- (BMXErrorCode)setEnablePush:(BOOL)*enable*
Parameters
enable
是否允许推送,true推送,false不推送
Return Value
Declared In
floo_proxy.h
setEnablePush:completion:
设置是否允许推送
- (void)setEnablePush:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
是否允许推送,true推送,false不推送
Return Value
Declared In
floo_proxy.h
setEnablePushDetaile:
设置是否推送详情
- (BMXErrorCode)setEnablePushDetaile:(BOOL)*enable*
Parameters
enable
是否推送详情,true推送,false不推送
Return Value
Declared In
floo_proxy.h
setEnablePushDetaile:completion:
设置是否推送详情
- (void)setEnablePushDetaile:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
是否推送详情,true推送,false不推送
Return Value
Declared In
floo_proxy.h
setNickname:
设置昵称
- (BMXErrorCode)setNickname:(NSString *)*nickname*
Parameters
nickname
用户昵称
Return Value
Declared In
floo_proxy.h
setNickname:completion:
设置昵称
- (void)setNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
nickname
用户昵称
Return Value
Declared In
floo_proxy.h
setNotificationSound:
设置收到新消息是否声音提醒
- (BMXErrorCode)setNotificationSound:(BOOL)*enable*
Parameters
enable
收到新消息是否声音提醒,true提醒,false不提醒
Return Value
Declared In
floo_proxy.h
setNotificationSound:completion:
设置收到新消息是否声音提醒
- (void)setNotificationSound:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
收到新消息是否声音提醒,true提醒,false不提醒
Return Value
Declared In
floo_proxy.h
setNotificationVibrate:
设置收到新消息是否震动
- (BMXErrorCode)setNotificationVibrate:(BOOL)*enable*
Parameters
enable
收到新消息是否震动,true震动,false不震动
Return Value
Declared In
floo_proxy.h
setNotificationVibrate:completion:
设置收到新消息是否震动
- (void)setNotificationVibrate:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
收到新消息是否震动,true震动,false不震动
Return Value
Declared In
floo_proxy.h
setPrivateInfo:
设置私有扩展信息
- (BMXErrorCode)setPrivateInfo:(NSString *)*privateInfo*
Parameters
privateInfo
私有扩展信息
Return Value
Declared In
floo_proxy.h
setPrivateInfo:completion:
设置私有扩展信息
- (void)setPrivateInfo:(NSString *)*privateInfo* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
privateInfo
私有扩展信息
Return Value
Declared In
floo_proxy.h
setPublicInfo:
设置公开扩展信息
- (BMXErrorCode)setPublicInfo:(NSString *)*publicInfo*
Parameters
publicInfo
公开扩展信息
Return Value
Declared In
floo_proxy.h
setPublicInfo:completion:
设置公开扩展信息
- (void)setPublicInfo:(NSString *)*publicInfo* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
publicInfo
公开扩展信息
Return Value
Declared In
floo_proxy.h
setPushAlias:bmxPushToken:
@brief
- (BMXErrorCode)setPushAlias:(NSString *)*alias* bmxPushToken:(NSString *)*bmxPushToken*
Parameters
nickname
推送昵称
Return Value
Discussion
@brief
Declared In
floo_proxy.h
setPushAlias:bmxPushToken:completion:
@brief
- (void)setPushAlias:(NSString *)*alias* bmxPushToken:(NSString *)*bmxPushToken* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
nickname
推送昵称
Return Value
Discussion
@brief
Declared In
floo_proxy.h
setPushNickname:
设置推送昵称
- (BMXErrorCode)setPushNickname:(NSString *)*nickname*
Parameters
nickname
推送昵称
Return Value
Declared In
floo_proxy.h
setPushNickname:completion:
设置推送昵称
- (void)setPushNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
nickname
推送昵称
Return Value
Declared In
floo_proxy.h
uploadAvatarWithAvatarPath:callback:
上传头像
- (BMXErrorCode)uploadAvatarWithAvatarPath:(NSString *)*avatarPath* callback:(void ( ^ ) ( int progress ))*callback*
Parameters
avatarPath
上传头像的本地地址
callback
上传回调函数
Return Value
Declared In
floo_proxy.h
uploadAvatarWithAvatarPath:callback:completion:
上传头像
- (void)uploadAvatarWithAvatarPath:(NSString *)*avatarPath* callback:(void ( ^ ) ( int progress ))*callback* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
avatarPath
上传头像的本地地址
callback
上传回调函数
Return Value
Declared In
floo_proxy.h
Example: