Bold360 and BoldChat Developer Center

BCChatStateDelegate.h

Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 LogMeIn Inc. All rights reserved.
3 //
4 
5 #import <Foundation/Foundation.h>
6 #import "BCChat.h"
7 #import "BCUnavailableReason.h"
8 
9 @class BCForm;
10 
16 typedef NS_ENUM(NSInteger, BCChatEndReason) {
17  BCChatEndReasonUndefined,
18  BCChatEndReasonOperatorFinished,
19  BCChatEndReasonVisitorFinished,
20  BCChatEndReasonChatTimeout
21 } ;
22 
23 
28 @protocol BCChatStateDelegate <NSObject>
29 
35 - (void)bcChatDidConnect:(id<BCChat>)chat;
36 
45 - (void)bcChat:(id<BCChat>)chat didFinishWithReason:(BCChatEndReason)reason time:(NSDate *)time postChatForm:(BCForm *)postChatForm;
46 
55 - (void)bcChat:(id<BCChat>)chat didFinishWithUnavailableReason:(BCUnavailableReason)reason unavailableForm:(BCForm *)unavailableForm unavailableMessage:(NSString *)message;
56 
57 
64 - (void)bcChat:(id<BCChat>)chat didFinishWithError:(NSError *)error;
65 @end
The delegate that is called back on chat state changes.
Definition: BCChatStateDelegate.h:28
Container class for holding the information related to showing a form such as the pre chat...
Definition: BCForm.h:12
typedef NS_ENUM(NSInteger, BCChatEndReason)
The chat end reasons.
Definition: BCChatStateDelegate.h:16
A protocol of an object that sends and receives chat messages, states and events. ...
Definition: BCChat.h:21