BMXRosterService Class Reference

Inherits from NSObject
Declared in floo_proxy.h

Overview

@interface Roster Service

Properties

swigCMemOwn

@property (nonatomic) BOOL swigCMemOwn

swigCPtr

@property (nonatomic) void *swigCPtr

Instance Methods

acceptWithRosterId:

Accept a friend request

- (BMXErrorCode)acceptWithRosterId:(long long)*rosterId*

Parameters

rosterId
Friend user ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

acceptWithRosterId:completion:

Accept a friend request

- (void)acceptWithRosterId:(long long)*rosterId* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId
Friend user ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

addDelegate:

Add a roster sevice listener

- (void)addDelegate:(id<BMXRosterServiceProtocol>)*aDelegate*

Parameters

listener

Declared In

  • floo_proxy.h

Example:

addDelegate:delegateQueue:

- (void)addDelegate:(id<BMXRosterServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*

Example:

addRosterListener:

Add a roster sevice listener

- (void)addRosterListener:(id<BMXRosterServiceProtocol>)*listener*

Parameters

listener

Declared In

  • floo_proxy.h

Example:

applyWithRosterId:message:

- (BMXErrorCode)applyWithRosterId:(long long)*rosterId* message:(NSString *)*message*

Example:

applyWithRosterId:message:authAnswer:

Apply to add a friend

- (BMXErrorCode)applyWithRosterId:(long long)*rosterId* message:(NSString *)*message* authAnswer:(NSString *)*authAnswer*

Parameters

rosterId
Friend user ID

message
The message attached

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

applyWithRosterId:message:authAnswer:completion:

Apply to add a friend

- (void)applyWithRosterId:(long long)*rosterId* message:(NSString *)*message* authAnswer:(NSString *)*authAnswer* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId
Friend user ID

message
The message attached

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

applyWithRosterId:message:completion:

- (void)applyWithRosterId:(long long)*rosterId* message:(NSString *)*message* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Example:

blockWithRosterId:

Block a user

- (BMXErrorCode)blockWithRosterId:(long long)*rosterId*

Parameters

rosterId
User ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

blockWithRosterId:completion:

Block a user

- (void)blockWithRosterId:(long long)*rosterId* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId
User ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

dealloc

- (void)dealloc

Example:

declineWithRosterId:reason:

Decline a friend request

- (BMXErrorCode)declineWithRosterId:(long long)*rosterId* reason:(NSString *)*reason*

Parameters

rosterId
User ID

reason

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

declineWithRosterId:reason:completion:

Decline a friend request

- (void)declineWithRosterId:(long long)*rosterId* reason:(NSString *)*reason* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId
User ID

reason

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

downloadAvatarWithItem:thumbnail:callback:

Download friend's avatar

- (BMXErrorCode)downloadAvatarWithItem:(BMXRosterItem *)*item* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback*

Parameters

item
Roster item

thumbnail
Is it a thumbnail

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

downloadAvatarWithItem:thumbnail:callback:completion:

Download friend's avatar

- (void)downloadAvatarWithItem:(BMXRosterItem *)*item* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

item
Roster item

thumbnail
Is it a thumbnail

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRosterByIdWithRosterId:forceRefresh:completion:

Get a roster item

- (void)fetchRosterByIdWithRosterId:(long long)*rosterId* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItem *item , BMXError *error ))*aCompletionBlock*

Parameters

rosterId
User ID

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRosterByIdWithRosterId:forceRefresh:item:

Get a roster item

- (BMXErrorCode)fetchRosterByIdWithRosterId:(long long)*rosterId* forceRefresh:(BOOL)*forceRefresh* item:(BMXRosterItem *)*item*

Parameters

rosterId
User ID

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRosterByNameWithName:forceRefresh:completion:

Get a roster item

- (void)fetchRosterByNameWithName:(NSString *)*name* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItem *item , BMXError *error ))*aCompletionBlock*

Parameters

name
Username

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRosterByNameWithName:forceRefresh:item:

Get a roster item

- (BMXErrorCode)fetchRosterByNameWithName:(NSString *)*name* forceRefresh:(BOOL)*forceRefresh* item:(BMXRosterItem *)*item*

Parameters

name
Username

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRostersByIdListWithRosterIdList:forceRefresh:completion:

Get roster items

- (void)fetchRostersByIdListWithRosterIdList:(ListOfLongLong *)*rosterIdList* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItemList *list , BMXError *error ))*aCompletionBlock*

Parameters

rosterIdList
User ID list of roster items

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fetchRostersByIdListWithRosterIdList:list:forceRefresh:

Get roster items

- (BMXErrorCode)fetchRostersByIdListWithRosterIdList:(ListOfLongLong *)*rosterIdList* list:(BMXRosterItemList *)*list* forceRefresh:(BOOL)*forceRefresh*

Parameters

rosterIdList
User ID list of roster items

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

get:completion:

Get all roster items

- (void)get:(BOOL)*forceRefresh* completion:(void ( ^ ) ( ListOfLongLong *list , BMXError *error ))*aCompletionBlock*

Parameters

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

get:forceRefresh:

Get all roster items

- (BMXErrorCode)get:(ListOfLongLong *)*list* forceRefresh:(BOOL)*forceRefresh*

Parameters

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getApplicationList:completion:

- (void)getApplicationList:(NSString *)*cursor* completion:(void ( ^ ) ( BMXRosterApplicationResultPage *res , BMXError *error ))*aCompletionBlock*

Example:

getApplicationList:cursor:

- (BMXErrorCode)getApplicationList:(BMXRosterApplicationResultPage *)*result* cursor:(NSString *)*cursor*

Example:

getApplicationList:cursor:pageSize:

Get friend request list

- (BMXErrorCode)getApplicationList:(BMXRosterApplicationResultPage *)*result* cursor:(NSString *)*cursor* pageSize:(int)*pageSize*

Parameters

cursor

pageSize

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getApplicationList:pageSize:completion:

Get friend request list

- (void)getApplicationList:(NSString *)*cursor* pageSize:(int)*pageSize* completion:(void ( ^ ) ( BMXRosterApplicationResultPage *res , BMXError *error ))*aCompletionBlock*

Parameters

cursor

pageSize

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getBlockList:completion:

Get the ID list of user blocked

- (void)getBlockList:(BOOL)*forceRefresh* completion:(void ( ^ ) ( ListOfLongLong *list , BMXError *error ))*aCompletionBlock*

Parameters

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getBlockList:forceRefresh:

Get the ID list of user blocked

- (BMXErrorCode)getBlockList:(ListOfLongLong *)*list* forceRefresh:(BOOL)*forceRefresh*

Parameters

forceRefresh
From server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

initWithCptr:swigOwnCObject:

- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*

Example:

removeDelegate:

Remove a roster sevice listener

- (void)removeDelegate:(id<BMXRosterServiceProtocol>)*aDelegate*

Parameters

listener

Declared In

  • floo_proxy.h

Example:

removeRosterListener:

Remove a roster sevice listener

- (void)removeRosterListener:(id<BMXRosterServiceProtocol>)*listener*

Parameters

listener

Declared In

  • floo_proxy.h

Example:

removeWithRosterId:

Remove a roster item

- (BMXErrorCode)removeWithRosterId:(long long)*rosterId*

Parameters

rosterId
User ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

removeWithRosterId:completion:

Remove a roster item

- (void)removeWithRosterId:(long long)*rosterId* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId
User ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

searchWithName:forceRefresh:completion:

- (void)searchWithName:(NSString *)*name* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItem *item , BMXError *error ))*aCompletionBlock*

Example:

searchWithName:forceRefresh:item:

- (BMXErrorCode)searchWithName:(NSString *)*name* forceRefresh:(BOOL)*forceRefresh* item:(BMXRosterItem *)*item*

Example:

searchWithRosterId:forceRefresh:completion:

Search a roster item

- (void)searchWithRosterId:(long long)*rosterId* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItem *item , BMXError *error ))*aCompletionBlock*

Parameters

rosterId
User ID

forceRefresh
From server

Return Value

BMXErrorCode

Discussion

Deprecated. use fetchRosterById instead.

Declared In

  • floo_proxy.h

Example:

searchWithRosterId:forceRefresh:item:

Search a roster item

- (BMXErrorCode)searchWithRosterId:(long long)*rosterId* forceRefresh:(BOOL)*forceRefresh* item:(BMXRosterItem *)*item*

Parameters

rosterId
User ID

forceRefresh
From server

Return Value

BMXErrorCode

Discussion

Deprecated. use fetchRosterById instead.

Declared In

  • floo_proxy.h

Example:

searchWithRosterIdList:forceRefresh:completion:

- (void)searchWithRosterIdList:(ListOfLongLong *)*rosterIdList* forceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXRosterItemList *list , BMXError *error ))*aCompletionBlock*

Example:

searchWithRosterIdList:list:forceRefresh:

- (BMXErrorCode)searchWithRosterIdList:(ListOfLongLong *)*rosterIdList* list:(BMXRosterItemList *)*list* forceRefresh:(BOOL)*forceRefresh*

Example:

setItemAlias:alias:

Set friend’s alias

- (BMXErrorCode)setItemAlias:(BMXRosterItem *)*item* alias:(NSString *)*alias*

Parameters

item

alias

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemAlias:alias:completion:

Set friend’s alias

- (void)setItemAlias:(BMXRosterItem *)*item* alias:(NSString *)*alias* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

item

alias

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemExtension:extension:

Set extension information for the roster item(on server)

- (BMXErrorCode)setItemExtension:(BMXRosterItem *)*item* extension:(NSString *)*extension*

Parameters

item

extension

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemExtension:extension:completion:

Set extension information for the roster item(on server)

- (void)setItemExtension:(BMXRosterItem *)*item* extension:(NSString *)*extension* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

item

extension

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemLocalExtension:extension:

Set extension information for the roster item(on local db)

- (BMXErrorCode)setItemLocalExtension:(BMXRosterItem *)*item* extension:(NSString *)*extension*

Parameters

item

extension

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemLocalExtension:extension:completion:

Set extension information for the roster item(on local db)

- (void)setItemLocalExtension:(BMXRosterItem *)*item* extension:(NSString *)*extension* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

item

extension

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemMuteNotification:status:

Set whether to mute user messages notification

- (BMXErrorCode)setItemMuteNotification:(BMXRosterItem *)*item* status:(BOOL)*status*

Parameters

item

status
true for mute

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

setItemMuteNotification:status:completion:

Set whether to mute user messages notification

- (void)setItemMuteNotification:(BMXRosterItem *)*item* status:(BOOL)*status* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

item

status
true for mute

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

unblockWithRosterId:

Unblock a roster item

- (BMXErrorCode)unblockWithRosterId:(long long)*rosterId*

Parameters

rosterId

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

unblockWithRosterId:completion:

Unblock a roster item

- (void)unblockWithRosterId:(long long)*rosterId* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*

Parameters

rosterId

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

© 2019-2024 MaximTop | Homepage | Site Map Last modified time: 2024-09-26 03:17:35

results matching ""

    No results matching ""