From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001
From: 单军华
Date: Thu, 12 Jul 2018 13:44:34 +0800
Subject: [PATCH] bug修复和功能优化

---
 screendisplay/Pods/HMEmoticon/表情键盘/Emoticon/HMEmoticon.m |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git "a/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticon.m" "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticon.m"
new file mode 100755
index 0000000..9789f11
--- /dev/null
+++ "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticon.m"
@@ -0,0 +1,57 @@
+//
+//  HMEmoticon.m
+//  ������������
+//
+//  Created by ������ on 16/3/3.
+//  Copyright �� 2016��� itcast. All rights reserved.
+//
+
+#import "HMEmoticon.h"
+#import "NSBundle+HMEmoticon.h"
+#import "NSString+HMEmoji.h"
+
+@implementation HMEmoticon
+
+#pragma mark - ���������������
+- (NSString *)imagePath {
+    
+    if (_type == 1) {
+        return nil;
+    }
+    
+    return [NSString stringWithFormat:@"%@/%@", _directory, _png];
+}
+
+- (void)setCode:(NSString *)code {
+    _emoji = code.hm_emoji;
+}
+
+- (BOOL)isEmoji {
+    return _emoji != nil;
+}
+
+#pragma mark - ������������
++ (instancetype)emoticonWithDict:(NSDictionary *)dict {
+    id obj = [[self alloc] init];
+    
+    [obj setValuesForKeysWithDictionary:dict];
+    
+    return obj;
+}
+
+- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}
+
+- (NSString *)description {
+    NSArray *keys = @[@"type", @"chs", @"png", @"code", @"times"];
+    
+    return [self dictionaryWithValuesForKeys:keys].description;
+}
+
+#pragma mark - ������������
+- (NSDictionary *)dictionary {
+    NSArray *keys = @[@"type", @"chs", @"directory", @"png", @"code", @"times"];
+    
+    return [self dictionaryWithValuesForKeys:keys];
+}
+
+@end

--
Gitblit v1.8.0