提交
This commit is contained in:
@@ -8,22 +8,77 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class QXDrawRedpacketRecordModel,QXRedpacketStatisticsModel;
|
||||
@interface QXRedPacketModel : NSObject
|
||||
@property (nonatomic, strong) NSString *redpacket_id; // 红包唯一ID
|
||||
/// 红包唯一ID
|
||||
@property (nonatomic, strong) NSString *redpacket_id;
|
||||
/// 口令
|
||||
@property (nonatomic, strong) NSString *password;
|
||||
/// 倒计时 截止时间 为0时是立刻
|
||||
@property (nonatomic, strong) NSString *countdown;
|
||||
/// 红包总金额
|
||||
@property (nonatomic, strong) NSString* total_amount;
|
||||
@property (nonatomic, assign) NSInteger type; // 红包类型
|
||||
@property (nonatomic, assign) long long end_time; // 倒计时时间(秒)
|
||||
@property (nonatomic, assign) CGFloat amount; // 红包金额
|
||||
@property (nonatomic, strong) NSDate *createTime; // 创建时间
|
||||
@property (nonatomic, assign) BOOL isAvailable; // 是否可领取
|
||||
@property (nonatomic, assign) NSInteger position; // 在房间中的位置标识
|
||||
/// 房间id
|
||||
@property (nonatomic, strong) NSString* room_id;
|
||||
/// 红包类型 1 普通红包 2 口令红包
|
||||
@property (nonatomic, strong) NSString* type;
|
||||
/// 红包总数
|
||||
@property (nonatomic, strong) NSString *total_count;
|
||||
/// 1 金币红包 2 钻石红包
|
||||
@property (nonatomic, strong) NSString *coin_type;
|
||||
/// 用户id
|
||||
@property (nonatomic, strong) NSString *user_id;
|
||||
/// 用户昵称
|
||||
@property (nonatomic, strong) NSString *nickname;
|
||||
/// 用户头像
|
||||
@property (nonatomic, strong) NSString *avatar;
|
||||
/// 红包多久后消失
|
||||
@property (nonatomic, strong) NSString *redpacket_time;
|
||||
/// 条件
|
||||
@property (nonatomic, strong) NSString *conditions;
|
||||
/// 红包备注
|
||||
@property (nonatomic, strong) NSString *remark;
|
||||
/// 红包可以开抢的时间 为时间戳
|
||||
@property (nonatomic, assign) long start_time; // 倒计时时间(秒)
|
||||
/// 剩余金额
|
||||
@property (nonatomic, strong) NSString *left_amount;
|
||||
/// 剩余数量
|
||||
@property (nonatomic, strong) NSString *left_count;
|
||||
/// 是否已经抢过该红包 1- 是 0-没有抢过
|
||||
@property (nonatomic, strong) NSString *is_qiang;
|
||||
|
||||
// 计算剩余时间
|
||||
/// 是否可领取
|
||||
@property (nonatomic, assign) BOOL isAvailable;
|
||||
|
||||
/// 计算剩余时间
|
||||
- (long)remainingTime;
|
||||
// 检查是否可领取
|
||||
/// 检查是否可领取
|
||||
- (BOOL)canOpenNow;
|
||||
@end
|
||||
|
||||
|
||||
@interface QXDrawRedPacketModel : NSObject
|
||||
@property (nonatomic,strong)QXRedPacketModel* redpacket_info;
|
||||
@property (nonatomic,strong)QXDrawRedpacketRecordModel* my_record;
|
||||
@property (nonatomic,strong)NSArray<QXDrawRedpacketRecordModel*>* records;
|
||||
@end
|
||||
|
||||
@interface QXDrawRedpacketRecordModel : NSObject
|
||||
/// 房间id
|
||||
@property (nonatomic, strong) NSString* record_id;
|
||||
/// 红包id
|
||||
@property (nonatomic, strong) NSString* redpacket_id;
|
||||
/// 用户id
|
||||
@property (nonatomic, strong) NSString* user_id;
|
||||
/// 头像
|
||||
@property (nonatomic, strong) NSString* avatar;
|
||||
/// 昵称
|
||||
@property (nonatomic, strong) NSString* nickname;
|
||||
/// 抢红包时间
|
||||
@property (nonatomic, strong) NSString* createtime;
|
||||
/// 金额
|
||||
@property (nonatomic, strong) NSString* amount;
|
||||
@end
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user