WeiboReplyData.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // WeiboReplyData.h
  3. // wq8
  4. //
  5. // Created by weqia on 13-9-5.
  6. // Copyright (c) 2013年 Weqia. All rights reserved.
  7. //
  8. #import "Jastor.h"
  9. #import "MatchParser.h"
  10. #define reply_data_comment 1
  11. #define reply_data_praise 2
  12. #define reply_data_gift 3
  13. @interface WeiboReplyData : Jastor<MatchParserDelegate>
  14. {
  15. __weak MatchParser * _match;
  16. }
  17. //@property(nonatomic,copy) NSString * files;
  18. @property(nonatomic,strong) NSString * replyId;
  19. @property(nonatomic,strong) NSString * messageId;
  20. @property(nonatomic,strong) NSString * body;
  21. @property(nonatomic,strong) NSString * userId;
  22. @property(nonatomic,strong) NSString * userNickName;
  23. @property(nonatomic,strong) NSString * toUserId;
  24. @property(nonatomic,strong) NSString * toNickName;
  25. @property(nonatomic,strong) NSString * toBody;
  26. @property(nonatomic,strong) NSString * giftId;
  27. @property(nonatomic,strong) NSString * giftName;
  28. @property(nonatomic,strong) NSString * giftCount;
  29. @property(nonatomic,strong) NSString * giftPrice;
  30. @property(assign) NSTimeInterval createTime;
  31. @property(nonatomic) int height2;
  32. @property(nonatomic) int height;
  33. @property(nonatomic) int addHeight;
  34. @property(nonatomic,strong) NSAttributedString * title;
  35. @property(nonatomic,weak,getter = getMatch,setter = setMatch:) MatchParser * match;
  36. @property(nonatomic) int type;
  37. -(MatchParser*)createMatchType1;
  38. -(void)setMatch;
  39. -(void)updateMatch:(void(^)(NSMutableAttributedString * string, NSRange range))link;
  40. -(void)getHeight2;
  41. +(NSCache*)shareCacheForReply;
  42. -(void)getDataFromDict:(NSDictionary*)dict;
  43. @end