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