Files
midi_ios/TUIKit/TUICustomerServicePlugin/UI_Classic/Service/TUICustomerServicePluginConfig.h

72 lines
2.2 KiB
C
Raw Normal View History

2025-08-14 10:07:49 +08:00
//
// TUICustomerServicePluginConfig.h
// TUICustomerServicePlugin
//
// Created by xia on 2023/6/16.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class TUICustomerServicePluginConfig;
@class TUICustomerServicePluginMenuCellData;
@class TUICustomerServicePluginProductInfo;
@protocol TUICustomerServicePluginConfigDataSource <NSObject>
@optional
/**
*
* Customize or modify the data source of the floating menu. Please implement this method before entering the customer service conversation chat page.
*/
- (NSArray<TUICustomerServicePluginMenuCellData *> *)pluginConfig:(TUICustomerServicePluginConfig *)config shouldUpdateOldMenuItems:(NSArray *)oldItems;
/**
*
* Customize or modify the common phrases. Please implement this method before entering the customer service conversation chat page.
*/
- (NSArray<NSString *> *)pluginConfig:(TUICustomerServicePluginConfig *)config shouldUpdateCommonPhrases:(NSArray *)oldItems;
/**
*
* Customize or modify the product infomation. Please implement this method before entering the customer service conversation chat page.
*/
- (TUICustomerServicePluginProductInfo *)pluginConfigShouldUpdateProductInfo:(TUICustomerServicePluginConfig *)config;
@end
@interface TUICustomerServicePluginConfig : NSObject
+ (TUICustomerServicePluginConfig *)sharedInstance;
@property (nonatomic, weak) id<TUICustomerServicePluginConfigDataSource> delegate;
/**
* Set up customer service account list
*/
@property (nonatomic, copy) NSArray *customerServiceAccounts;
/**
*
* The data source of the customer service plugin in the floating layer of the menu at the bottom of the message list.
*/
@property (nonatomic, copy, readonly) NSArray *menuItems;
/**
*
* The common phrases.
*/
@property (nonatomic, copy, readonly) NSArray *commonPhrases;
/**
*
* The product info.
*/
@property (nonatomic, copy, readonly) TUICustomerServicePluginProductInfo *productInfo;
@end
NS_ASSUME_NONNULL_END