lpw
2023-06-03 d99a25ca0a7a15a926e7778346c947efc5661829
commit | author | age
05f1b6 1 //
L 2 //  AIHelpSDKConfig
3 //
4 //  Created by AIHelp.
5 //  Copyright © 2020 aihelp.net. All rights reserved.
6 //
7
8 #import <Foundation/Foundation.h>
9
10 typedef NS_ENUM(int,AIHelpTokenPlatform) {                    /* PushTokenPlatform enum*/
11     AIHelpTokenPlatformAPNS               = 1,                // Apple APNS
12     AIHelpTokenPlatformFirebase           = 2,                // firebase-FCM
13     AIHelpTokenPlatformJpush              = 3,                // Jpush
14     AIHelpTokenPlatformGeTui              = 4,                // GeTui
d99a25 15     AIHelpTokenPlatformHUAWEI             = 6,                // HUAWEI
L 16     AIHelpTokenPlatformOneSignal          = 7,                // OneSignal
05f1b6 17 };
L 18
19 typedef NS_ENUM(int,AIHelpConversationIntent) {                    /* ConversationIntent enum */
20     AIHelpConversationIntentBotSupport         = 1,                // ShowBot
21     AIHelpConversationIntentHumanSupport       = 2,                // ShowHumanSupport
22 };
23
24 typedef NS_ENUM(int,AIHelpFAQShowConversationMoment) {             /* ConversationMoment enum, show ContactUs moment */
25     AIHelpFAQShowConversationMomentNever            = 1,           // Never show
26     AIHelpFAQShowConversationMomentAlways           = 2,           // Always show
27     AIHelpFAQShowConversationMomentAfterMarkingUnhelpful = 3,      // Show after unhelpful with Faq detail
28     AIHelpFAQShowConversationMomentOnlyInAnswerPage = 4,           // only in answer page show
29 };
30
31 typedef NS_ENUM(int,AIHelpPublishCountryOrRegion) {
32     AIHelpCN = 1,
33     AIHelpIN
34 };
35
d99a25 36 typedef NS_ENUM(int, AIHelpFAQSupportEntrance) {
L 37     AIHelpFAQSupportEntranceHomePage = 1,
38     AIHelpFAQSupportEntranceQuestionList = 2,
39     AIHelpFAQSupportEntranceAnswerPage = 3,
40     AIHelpFAQSupportEntranceAfterMarkingUnhelpful = 4
41 };
42
05f1b6 43 #pragma mark - ECServiceUserConfig
L 44
45 @interface AIHelpUserConfig : NSObject
46 - (id) init NS_UNAVAILABLE;
47 @end
48
49 @interface AIHelpUserConfigBuilder : NSObject
50 @property (nonatomic, copy)NSString       *userId;        // default is unique deviceId
51 @property (nonatomic, copy)NSString       *userName;      // default is "anonymous"
52 @property (nonatomic, copy)NSString       *serverId;      // default is nil
53 @property (nonatomic, strong)NSArray        *userTags;      // If you assign this field with existing tags from aihelp admin dashboard, the tickets created by current user will take these tags by default.
54 @property (nonatomic, strong)NSDictionary   *customData;    // Set custom meta data you want to see in the aihelp admin dashboard.
55 @property (nonatomic, assign)BOOL           isSyncCrmInfo;  // If you set this to true, when you update current user's information, the sdk will sync user's information to you crm database.
56 - (AIHelpUserConfig *)build;
57 @end
58
d99a25 59 #pragma mark - AIHelpApiConfig
05f1b6 60
d99a25 61 @interface AIHelpApiConfig : NSObject
05f1b6 62 - (id) init NS_UNAVAILABLE;
L 63 @end
64
d99a25 65 @interface AIHelpApiConfigBuilder : NSObject
L 66 @property (nonatomic, copy)NSString *entranceId;
67 @property (nonatomic, copy)NSString *welcomeMessage;
68 - (AIHelpApiConfig *)build;
05f1b6 69 @end