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
1.9 KiB

//
// 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
*/
@protocol JCClientCallback <NSObject>
/**
*
*
* {@link JCClient#login:password:loginParam: login}
*
* @param result
* - true
* - false
* @param reason result false @ref JCClientReason "错误原因"
*/
-(void)onLogin:(bool)result reason:(JCClientReason)reason;
/**
*
*
* {@link JCClient#logout logout}
*
* @param reason @ref JCClientReason "错误原因"
*/
-(void)onLogout:(JCClientReason)reason;
/**
*
*
*
* - @ref JCClientStateNotInit :
* - @ref JCClientStateIdle :
* - @ref JCClientStateLogining :
* - @ref JCClientStateLogined :
* - @ref JCClientStateLogouting :
*
* @param state
* @param oldState
*/
-(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;
@end
/**
* @}
*/