41 lines
867 B
Objective-C
41 lines
867 B
Objective-C
//
|
|
// GiftComboConfig.h
|
|
// YuMi
|
|
//
|
|
// Created by AI Assistant on 2024/8/18.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#pragma mark - 连击配置常量
|
|
|
|
// 连击计数范围
|
|
extern const NSInteger kComboMin;
|
|
extern const NSInteger kComboMax;
|
|
|
|
// 连击时间窗口(秒)
|
|
extern const NSTimeInterval kComboWindow;
|
|
|
|
// 发送节流时间(毫秒)
|
|
extern const NSTimeInterval kSendThrottle;
|
|
|
|
// 日志前缀
|
|
extern NSString * const kComboLogPrefix;
|
|
|
|
// 错误域
|
|
extern NSString * const kComboErrorDomain;
|
|
|
|
// 错误码
|
|
typedef NS_ENUM(NSInteger, ComboErrorCode) {
|
|
ComboErrorCodeInvalidState = 1001,
|
|
ComboErrorCodeInvalidCount = 1002,
|
|
ComboErrorCodeNetworkError = 1003,
|
|
ComboErrorCodeServerError = 1004,
|
|
ComboErrorCodeInsufficientBalance = 1005,
|
|
ComboErrorCodeVIPLevelInsufficient = 1006
|
|
};
|
|
|
|
NS_ASSUME_NONNULL_END
|