JRTCSDK-iOS v2401.0
视频客服 API 文档
载入中...
搜索中...
未找到
JRTCAgentCallback.h
1//
2// JRTCAgentCallback.h
3// JRTCSDK
4//
5// Created by juphoon on 2019/7/22.
6// Copyright © 2019 juphoon. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "JRTCCallCenter.h"
11#import "JRTCRoom.h"
12#import "JRTCCallCenterGroupItem.h"
13#import "JRTCNotifyMessage.h"
14#import "JRTCInviter.h"
15
18
19NS_ASSUME_NONNULL_BEGIN
20
22@protocol JRTCAgentCallback <NSObject>
23
33- (void)onGetAllGroups:(NSArray <JRTCCallCenterGroupItem *> *)groups result:(bool)result;
34
47- (void)onCheckin:(bool)result pause:(bool)pause reason:(NSString *)reason;
48
64- (void)onCheckIn:(bool)result pause:(bool)pause onlineTime:(long)onlineTime breakTime:(long)breakTime callTimes:(long)callTimes reason:(int)reason DEPRECATED_MSG_ATTRIBUTE("该方法即将废弃,请用onCheckin:pause:reason:代替");
65
75- (void)onCheckout:(bool)result reason:(AgentCheckoutReason)reason;
76
84- (void)onCheckStateChanged:(AgentOperatorState)currentState oldState:(AgentOperatorState)oldState;
85
86
97- (void)onCallStateChanged:(AgentCallStateChangeType)type incomingType:(CallIncomingType)incomingType inviter:(nullable JRTCInviter *)inviter reason:(CallTermReason)reason;
98
104- (void)onCallQueryWaitCount:(int)count;
105
116- (void)onApplyResult:(int)operationId result:(bool)result;
117
127- (void)onTransferCallResult:(int)operationId result:(bool)result;
128
136- (void)onCallPropertyChanged:(JRTCRoomPropChangeParam *)changeParam;
137
144- (void)onMemberJoin:(JRTCRoomParticipant *)participant;
145
152- (void)onMemberLeave:(JRTCRoomParticipant *)participant;
153
162- (void)onMemberUpdate:(JRTCRoomParticipant *)participant changeParam:(JRTCRoomParticipantChangeParam *)changeParam;
163
172- (void)onUrgentRequest:(NSString *)serialNumber callerNumber:(NSString *)callerNumber;
173
182- (void)onResponseUrgentResult:(bool)result cookie:(int)cookie;
183
194- (void)onQueryAvailableAgentList:(int)operationId result:(bool)result userIds:(NSArray <NSString *> *)userIds;
195
207- (void)onMessageReceived:(NSString *)content contentType:(NSString *)contentType messageType:(MessageType)messageType fromUserId:(NSString *)fromUserId;
208
215- (void)onHoldStateChanged:(bool)hold;
216
225- (void)onCallTypeChanged:(CallType)callType;
226
237- (void)onDeliveryAbort:(bool)isShutDown deliveryUserId:(NSString *)deliveryUserId reason:(NSString *)reason;
238
247- (void)onInviteThirdAgentResult:(bool)result error:(NSString *)error;
248
258- (void)onInviteThirdGuestResult:(bool)result userId:(NSString *)userId error:(NSString *)error;
259
267- (void)onNotifyMessageReceived:(JRTCNotifyMessage *)notifyMessage fromUserId:(NSString *)fromUserId;
268
276- (void)onOnewayVideoChanged:(bool)turnOn;
277
289- (void)onSignResultResponse:(bool)result fromUserId:(NSString *)fromUserId extraInfo:(NSString *)extraInfo;
290
300- (void)onSwitchPartRoleResult:(bool)result operationId:(long)operationId error:(NSString *)error;
301
311- (void)onKickParticipantResult:(bool)result operationId:(long)operationId error:(NSString *)error;
312
313@end
314
315NS_ASSUME_NONNULL_END
316
CallTermReason
Definition: JRTCCallCenter.h:19
CallIncomingType
Definition: JRTCCallCenter.h:165
CallType
Definition: JRTCCallCenter.h:59
MessageType
Definition: JRTCCallCenter.h:116
AgentCheckoutReason
Definition: JRTCCallCenter.h:191
AgentCallStateChangeType
Definition: JRTCCallCenter.h:149
AgentOperatorState
Definition: JRTCCallCenter.h:207
业务信息
Definition: JRTCCallCenterGroupItem.h:18
邀请者
Definition: JRTCInviter.h:17
事件通知
Definition: JRTCNotifyMessage.h:19
Definition: JRTCRoomParticipant.h:53
Definition: JRTCRoomParticipant.h:114
Definition: JRTCRoom.h:31