This commit is contained in:
2025-12-11 15:19:23 +08:00
parent 04c7d19c37
commit 4fd0a52a36
9 changed files with 125 additions and 16 deletions

View File

@@ -0,0 +1,27 @@
//
// KBShopThemeDetailModel.h
// keyBoard
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import "KBShopThemeTagModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface KBShopThemeDetailModel : NSObject
@property (nonatomic, copy, nullable) NSString *themeId;
@property (nonatomic, copy, nullable) NSString *themeName;
@property (nonatomic, assign) CGFloat themePrice;
@property (nonatomic, strong, nullable) NSArray<KBShopThemeTagModel *> *themeTag;
@property (nonatomic, copy, nullable) NSString *themeDownload;
@property (nonatomic, assign) NSInteger themeStyle;
@property (nonatomic, copy, nullable) NSString *themePreviewImageUrl;
@property (nonatomic, assign) BOOL themeStatus;
@property (nonatomic, assign) NSInteger themePurchasesNumber;
@property (nonatomic, assign) NSInteger sort;
@property (nonatomic, assign) BOOL isFree;
@property (nonatomic, assign) BOOL isPurchased;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,23 @@
//
// KBShopThemeDetailModel.m
// keyBoard
//
#import "KBShopThemeDetailModel.h"
#import <MJExtension/MJExtension.h>
@implementation KBShopThemeDetailModel
+ (NSDictionary *)mj_objectClassInArray {
return @{
@"themeTag" : KBShopThemeTagModel.class
};
}
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{
@"themeId" : @"id"
};
}
@end

View File

@@ -0,0 +1,15 @@
//
// KBShopThemeTagModel.h
// keyBoard
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface KBShopThemeTagModel : NSObject
@property (nonatomic, copy, nullable) NSString *label;
@property (nonatomic, copy, nullable) NSString *color;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,9 @@
//
// KBShopThemeTagModel.m
// keyBoard
//
#import "KBShopThemeTagModel.h"
@implementation KBShopThemeTagModel
@end