GiftInputContainer.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GiftUIView.h
  3. // NIMKit
  4. //
  5. // Created by Fenix Wang on 2017/6/12.
  6. // Copyright © 2017年 NetEase. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "NIMPageView.h"
  10. #import "GiftInputButton.h"
  11. #import "TradeInputContainer.h"
  12. @interface GiftData : NSObject
  13. @property (nonatomic,strong) NSString *giftId;
  14. @property (nonatomic,strong) NSString *name;
  15. @property (nonatomic,strong) NSString *price;
  16. @property (nonatomic,strong) NSString *iconURL;
  17. @property (nonatomic,strong) NSString *movieURL;
  18. @end
  19. @protocol GiftDataSourceDelegate <NSObject>
  20. - (void)requestGiftDataList;
  21. - (void)sendGift:(GiftData *)giftData count:(int)count msg:(NSString *)msg userId:(NSString *)userId;
  22. @end
  23. @interface GiftInputContainer : UIView<NIMPageViewDataSource,NIMPageViewDelegate,GiftButtonTouchDelegate>
  24. @property (nonatomic, strong) NIMPageView *giftPageView;
  25. @property (nonatomic, strong) UIPageControl *giftPageController;
  26. @property (nonatomic, strong) NSMutableArray *giftDataArray;
  27. @property (nonatomic, strong) GiftData *currentGiftData;
  28. @property (nonatomic, strong) UILabel *balanceLabel;
  29. @property (nonatomic, weak) id<GiftDataSourceDelegate> delegate;
  30. @property (nonatomic, strong) TradeInputContainer *tradeContainer;
  31. @property (nonatomic, assign) BOOL layoutHold;
  32. - (void)setBalance:(int)balance;
  33. - (void)initGiftList:(NSMutableArray *)dataList;
  34. - (void)setTeamId:(NSString *)teamId;
  35. - (void)tradePublished;
  36. @end