You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
0 B

2 years ago
//
// JCAccountCallback.h
// JCSDKOC
//
// Created by Ginger on 2018/6/8.
// Copyright © 2018年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCAccountItem.h"
#import "JCAccountContact.h"
2 years ago
/**
* @addtogroup
* @{
*/
/**
* JCAccount
2 years ago
*/
@protocol JCAccountCallback <NSObject>
/**
*
*
* @param operationId ID, {@link JCAccount#queryUserStatus: queryUserStatus}
* @param queryResult
* - true:
* - false:
* @param accountItemList
2 years ago
*/
- (void)onQueryUserStatusResult:(int)operationId result:(BOOL)queryResult accountItemList:(NSArray<JCAccountItem*>*)accountItemList;
/**
* ServerUid
*
* @param operationId ID, {@link JCAccount#queryServerUid: queryServerUid}
* @param result userId serverUid
* - true:
* - false:
* @param resultMap
*/
- (void)onQueryServerUidResult:(int)operationId result:(BOOL)queryResult serverUids:(NSDictionary<NSString*, NSString*>*)serverUids;
/**
* UserId
*
* @param operationId ID, {@link JCAccount#queryUserId: queryUserId}
* @param result serverUid userId
* - true:
* - false:
* @param resultMap
*/
- (void)onQueryUserIdResult:(int)operationId result:(BOOL)queryResult userIds:(NSDictionary<NSString*, NSString*>*)userIds;
/**
*
*
* @param operationId ID, {@link JCAccount#refreshContacts: refreshContacts}
* @param result
* - true:
* - false:
* @param contacts
* @param updateTime
* @param fullUpdate
* - true:
* - false:
*/
- (void)onRefreshContacts:(int)operationId result:(BOOL)result contacts:(NSArray<JCAccountContact*>*)contacts updateTime:(long)updateTime fullUpdate:(bool)fullUpdate;
/**
*
*
* @param operationId ID {@link JCAccount#dealContact: dealContact}
* @param result
* - true:
* - false:
* @param reason result false @ref JCAccountReason "错误码"
*/
- (void)onDealContact:(int)operationId result:(BOOL)result reason:(JCAccountReason)reason;
/**
*
*
* {@link JCAccount#refreshContacts: refreshContacts}
*
* @param contactList
*/
- (void)onContactsChange:(NSArray<JCAccountContact*>*)contacts;
/**
*
*
* @param operationId ID {@link JCAccount#setDnd:dnd: setDnd}
* @param result
* - true:
* - false:
* @param reason result false @ref JCAccountReason "错误码"
*/
-(void)onSetContactDnd:(int)operationId result:(bool)result reason:(JCAccountReason)reason;
2 years ago
@end
/**
* @}
*/