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.

180 lines
6.4 KiB

//
// JCGroupCallback.h
// JCSDKOC
//
// Created by maikireton on 2017/8/15.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCGroupItem.h"
#import "JCGroupMember.h"
#import "JCGroupConstants.h"
/**
* @addtogroup
* @{
*/
/**
* JCGroup
*/
@protocol JCGroupCallback <NSObject>
/**
*
*
* @param operationId {@link JCGroup#fetchGroups: fetchGroups}
* @param result
* true:
* false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groups
* @param updateTime
* @param baseTime
* @param fullUpdated
* - true:
* - false:
*/
-(void)onFetchGroups:(int)operationId result:(bool)result reason:(JCGroupReason)reason groups:(NSArray<JCGroupItem*>*)groups updateTime:(long)updateTime baseTime:(long)baseTime fullUpdate:(bool)fullUpdate;
/**
*
*
* @param operationId {@link JCGroup#fetchGroupInfo: fetchGroupInfo}
* @param result
* true:
* false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupItem JCGroupItem
* @param members
* @param updateTime
* @param baseTime
* @param fullUpdated
* - true:
* - false:
*/
-(void)onFetchGroupInfo:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupItem:(JCGroupItem*)groupItem members:(NSArray<JCGroupMember*>*)members updateTime:(long)updateTime baseTime:(long)baseTime fullUpdate:(bool)fullUpdate;
/**
*
*
* {@link JCGroup#fetchGroups: fetchGroups}
*
* @param groupList group
* @param updateTime
* @param baseTime
*/
-(void)onGroupListChange:(NSArray<JCGroupItem*>*)groups updateTime:(long)updateTime baseTime:(long)baseTime;
/**
*
*
* {@link JCGroup#fetchGroupInfo:updateTime: fetchGroupInfo}
*
* @param groupId
* @param memberList
* @param updateTime
* @param baseTime
*/
-(void)onGroupInfoChange:(NSString*)groupId members:(NSArray<JCGroupMember*>*)members updateTime:(long)updateTime baseTime:(long)baseTime;
/**
*
*
* @param operationId {@link JCGroup#createGroup:groupName:type:customProperties: createGroup}
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupItem JCGroupItem
* @param updateTime
* @param baseTime
*/
-(void)onCreateGroup:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupItem:(JCGroupItem*)groupItem updateTime:(long)updateTime baseTime:(long)baseTime;;
/**
*
*
* @param operationId {@link JCGroup#updateGroup: updateGroup}
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
*/
-(void)onUpdateGroup:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
/**
*
*
* @param operationId {@link JCGroup#dissolve: dissolve}
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
*/
-(void)onDissolve:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
/**
*
*
* @param operationId {@link JCGroup#leave: leave}
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
* @param updateTime
* @param baseTime
*/
-(void)onLeave:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
/**
*
*
* @param operationId {@link JCGroup#dealMembers:members: dealMembers}
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
*/
-(void)onDealMembers:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
/**
*
*
* {@link JCGroup#updateGroupComment:nickName:tag: updateGroupComment}
*
* @param operationId
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
*/
-(void)onUpdateGroupComment:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
/**
*
*
* {@link JCGroup#setDnd:dnd: setDnd}
*
* @param operationId
* @param result
* - true:
* - false:
* @param reason result false @ref JCGroupReason "JCGroup 错误码"
* @param groupId
*/
-(void)onSetGroupDnd:(int)operationId result:(bool)result reason:(JCGroupReason)reason groupId:(NSString*)groupId;
@end
/**
* @}
*/