lpw
2023-06-14 38d19ae714f3121992309179fa32c75815c96667
commit | author | age
10792d 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
38d19a 15     AIHelpTokenPlatformHUAWEI             = 6,                // HUAWEI
L 16     AIHelpTokenPlatformOneSignal          = 7,                // OneSignal
10792d 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
38d19a 36 typedef NS_ENUM(int, AIHelpFAQSupportEntrance) {
L 37     AIHelpFAQSupportEntranceHomePage = 1,
38     AIHelpFAQSupportEntranceQuestionList = 2,
39     AIHelpFAQSupportEntranceAnswerPage = 3,
40     AIHelpFAQSupportEntranceAfterMarkingUnhelpful = 4
41 };
42
10792d 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
38d19a 59 #pragma mark - AIHelpApiConfig
10792d 60
38d19a 61 @interface AIHelpApiConfig : NSObject
10792d 62 - (id) init NS_UNAVAILABLE;
L 63 @end
64
38d19a 65 @interface AIHelpApiConfigBuilder : NSObject
L 66 @property (nonatomic, copy)NSString *entranceId;
67 @property (nonatomic, copy)NSString *welcomeMessage;
68 - (AIHelpApiConfig *)build;
10792d 69 @end