GiftView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // GiftView.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 16/5/20.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "GiftModel.h"
  10. #import "UICountingLabel.h"
  11. #import "GiftSubView.h"
  12. #import "UIImageView+WebCache.h"
  13. #import "GiftGroupView.h"
  14. @class GiftView;
  15. @protocol GiftViewDelegate <NSObject>
  16. @required
  17. /**
  18. 显示充值
  19. @param giftView self
  20. */
  21. - (void)showRechargeView:(GiftView *)giftView;
  22. /**
  23. 发送礼物
  24. @param giftView self
  25. @param giftModel 礼物Model
  26. */
  27. - (void)senGift:(GiftView *)giftView AndGiftModel:(GiftModel *)giftModel;
  28. -(NSString *)roomId;
  29. @end
  30. @interface GiftView : BGBaseView
  31. @property (nonatomic, weak) id<GiftViewDelegate>delegate;
  32. @property (nonatomic, strong) UIView *continueContainerView; //连发按钮容器视图
  33. @property (nonatomic, strong) UIButton *sendBtn; //发送按钮
  34. @property (nonatomic, strong) UIButton *numberBtn; //发送数量
  35. @property (nonatomic, strong) UICountingLabel *decTimeCLabel; //连发倒计时
  36. @property (nonatomic, assign) NSInteger selectedGiftTime; //连发时,下一次点击时先判断上一次连发剩余的倒计时
  37. @property (nonatomic, strong) UIScrollView *scrollView;
  38. @property(nonatomic, strong) UIView *bottomContainerView;
  39. @property(nonatomic, strong) GiftGroupView *topView;//头部视图
  40. @property(nonatomic, assign) BOOL isVoice;
  41. - (void)setDiamondsLabelTxt:(NSString *)txt;
  42. - (void)setGiftView:(NSMutableArray *)giftMArray;
  43. @property(nonatomic, strong) GiftSubView *selectGiftView;
  44. @property(nonatomic, assign) BOOL isHost;
  45. @property(nonatomic, assign) BOOL isChat;
  46. @property(nonatomic, strong) NSString *selectUid;
  47. -(void)reloadBag;
  48. @end