Files
keyboard/keyBoard/Class/Home/M/KBCharacter.h
2025-12-04 15:35:23 +08:00

53 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBCharacter.h
// 首页 - 排行榜角色模型MJExtension 解析)
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// 排行榜角色/角色卡片模型
/// 对应后端返回字段示例:
/// {
/// "id" : 29,
/// "download" : "0x4AQSfQS0",
/// "characterName" : "Ms.",
/// "avatarUrl" : "https://...",
/// "tag" : 490,
/// "characterBackground" : "d2EWHe1ST5",
/// "rank" : 899
/// }
@interface KBCharacter : NSObject
/// 唯一标识,对应后端的 id
@property (nonatomic, copy, nullable) NSString *characterId;
/// 名称,对应后端的 characterName
@property (nonatomic, copy, nullable) NSString *characterName;
/// 头像地址
@property (nonatomic, copy, nullable) NSString *avatarUrl;
/// 角色背景(颜色值、图片地址或后端定义的 key
@property (nonatomic, copy, nullable) NSString *characterBackground;
/// 下载量文案或数值(后端返回字符串)
@property (nonatomic, copy, nullable) NSString *download;
/// 标签(例如分类、类型)原样保存
@property (nonatomic, assign) NSInteger tag;
/// 排名序号1、2、3...
@property (nonatomic, assign) NSInteger rank;
/// 本地字段:是否已添加到键盘(仅客户端使用)
@property (nonatomic, assign) BOOL added;
@property (nonatomic, copy) NSString *emoji;
@end
NS_ASSUME_NONNULL_END