EaseEmotionManager.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #define EASEUI_EMOTION_DEFAULT_EXT @"em_emotion"
  14. #define MESSAGE_ATTR_IS_BIG_EXPRESSION @"em_is_big_expression"
  15. #define MESSAGE_ATTR_EXPRESSION_ID @"em_expression_id"
  16. typedef NS_ENUM(NSUInteger, EMEmotionType) {
  17. EMEmotionDefault = 0,
  18. EMEmotionPng,
  19. EMEmotionGif
  20. };
  21. @interface EaseEmotionManager : NSObject
  22. @property (nonatomic, strong) NSArray *emotions;
  23. /*!
  24. @property
  25. @brief number of lines of emotion
  26. */
  27. @property (nonatomic, assign) NSInteger emotionRow;
  28. /*!
  29. @property
  30. @brief number of columns of emotion
  31. */
  32. @property (nonatomic, assign) NSInteger emotionCol;
  33. /*!
  34. @property
  35. @brief emotion type
  36. */
  37. @property (nonatomic, assign) EMEmotionType emotionType;
  38. @property (nonatomic, strong) UIImage *tagImage;
  39. - (id)initWithType:(EMEmotionType)Type
  40. emotionRow:(NSInteger)emotionRow
  41. emotionCol:(NSInteger)emotionCol
  42. emotions:(NSArray*)emotions;
  43. - (id)initWithType:(EMEmotionType)Type
  44. emotionRow:(NSInteger)emotionRow
  45. emotionCol:(NSInteger)emotionCol
  46. emotions:(NSArray*)emotions
  47. tagImage:(UIImage*)tagImage;
  48. @end
  49. @interface EaseEmotion : NSObject
  50. @property (nonatomic, assign) EMEmotionType emotionType;
  51. @property (nonatomic, copy) NSString *emotionTitle;
  52. @property (nonatomic, copy) NSString *emotionId;
  53. @property (nonatomic, copy) NSString *emotionThumbnail;
  54. @property (nonatomic, copy) NSString *emotionOriginal;
  55. @property (nonatomic, copy) NSString *emotionOriginalURL;
  56. - (id)initWithName:(NSString*)emotionTitle
  57. emotionId:(NSString*)emotionId
  58. emotionThumbnail:(NSString*)emotionThumbnail
  59. emotionOriginal:(NSString*)emotionOriginal
  60. emotionOriginalURL:(NSString*)emotionOriginalURL
  61. emotionType:(EMEmotionType)emotionType;
  62. @end