单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
//  HMEmoticon.h
//  表情键盘
//
//  Created by 刘凡 on 16/3/3.
//  Copyright © 2016年 itcast. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/// 表情模型
@interface HMEmoticon : NSObject
 
/// 表情类型 0 图片/1 emoji
@property (nonatomic, assign) NSInteger type;
/// 表情描述文字
@property (nonatomic, copy, nullable) NSString *chs;
/// 表情所在目录
@property (nonatomic, copy, nullable) NSString *directory;
/// 表情图片
@property (nonatomic, copy, nullable) NSString *png;
/// 图片表情路径
@property (nonatomic, readonly, nullable) NSString *imagePath;
/// emoji 编码
@property (nonatomic, copy, nullable) NSString *code;
/// emoji 字符串
@property (nonatomic, copy, nullable) NSString *emoji;
/// 是否 emoji
@property (nonatomic, readonly) BOOL isEmoji;
/// 使用次数
@property (nonatomic, assign) NSInteger times;
 
+ (nonnull instancetype)emoticonWithDict:(NSDictionary * _Nonnull)dict;
 
/// 保存使用的字典
- (NSDictionary * _Nonnull)dictionary;
 
@end