LiveGiftShowModel.h 997 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // LiveGiftShowModel.h
  3. // LiveSendGift
  4. //
  5. // Created by Jonhory on 2016/11/11.
  6. // Copyright © 2016年 com.wujh. All rights reserved.
  7. // 包含用户信息和礼物信息
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "LiveGiftListModel.h"
  11. #import "LiveUserModel.h"
  12. @interface LiveGiftShowModel : NSObject
  13. @property (nonatomic ,strong) LiveGiftListModel * giftModel;
  14. @property (nonatomic ,strong) LiveUserModel * user;
  15. @property (nonatomic, assign) NSUInteger currentNumber;/** 当前送礼数量 */
  16. // 连续动画时使用
  17. @property (nonatomic, assign) NSUInteger toNumber;/** 连续增加的数量 */
  18. @property (nonatomic, assign) CGFloat interval;/** 连续增加时动画间隔 */
  19. @property (nonatomic, strong) dispatch_source_t animatedTimer;
  20. @property (nonatomic, copy) NSString *localImageName;//礼物本地图片(返钻暴击需要用到本地图片)
  21. + (instancetype)giftModel:(LiveGiftListModel *)giftModel userModel:(LiveUserModel *)userModel;
  22. @end