YOUPAINIMInputAtCache.h 675 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // NIMInputAtManager.h
  3. // NIMKit
  4. //
  5. // Created by chris on 2016/12/8.
  6. // Copyright © 2016年 NetEase. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define NIMInputAtStartChar @"@"
  10. #define NIMInputAtEndChar @"\u2004"
  11. @interface NIMInputAtItem : NSObject
  12. @property (nonatomic,copy) NSString *name;
  13. @property (nonatomic,copy) NSString *uid;
  14. @property (nonatomic,assign) NSRange range;
  15. @end
  16. @interface YOUPAINIMInputAtCache : NSObject
  17. - (NSArray *)youpaifallAtUid:(NSString *)sendText;
  18. - (void)clean;
  19. - (void)addAtItem:(NIMInputAtItem *)item;
  20. - (NIMInputAtItem *)item:(NSString *)name;
  21. - (NIMInputAtItem *)removeName:(NSString *)name;
  22. @end