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.

80 lines
0 B

2 years ago
//
// JCClientCallback.h
// JCSDK-OC
//
// Created by maikireton on 2017/8/10.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCClientConstants.h"
/**
* @addtogroup
* @{
*/
/**
* JCClient
2 years ago
*/
@protocol JCClientCallback <NSObject>
/**
*
*
* {@link JCClient#login:password:loginParam: login}
*
* @param result
* - true
* - false
* @param reason result false @ref JCClientReason "错误原因"
2 years ago
*/
-(void)onLogin:(bool)result reason:(JCClientReason)reason;
/**
*
*
* {@link JCClient#logout logout}
*
* @param reason @ref JCClientReason "错误原因"
*/
2 years ago
-(void)onLogout:(JCClientReason)reason;
/**
*
*
*
* - @ref JCClientStateNotInit :
* - @ref JCClientStateIdle :
* - @ref JCClientStateLogining :
* - @ref JCClientStateLogined :
* - @ref JCClientStateLogouting :
*
* @param state
* @param oldState
*/
2 years ago
-(void)onClientStateChange:(JCClientState)state oldState:(JCClientState)oldState;
/**
* 线
*
* @param operationId id, @ref JCClient#sendOnlineMessage "sendOnlineMessage"
* @param result
*/
-(void)onOnlineMessageSend:(int)operationId result:(bool)result;
/**
* 线
*
* @param userId
* @param content
*/
-(void)onOnlineMessageReceive:(NSString *)userId content:(NSString *)content;
2 years ago
@end
/**
* @}
*/