// // QXRedPacketModel.h // QXLive // // Created by 启星 on 2025/10/11. // #import NS_ASSUME_NONNULL_BEGIN @interface QXRedPacketModel : NSObject @property (nonatomic, strong) NSString *redpacket_id; // 红包唯一ID @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; // 在房间中的位置标识 // 计算剩余时间 - (long)remainingTime; // 检查是否可领取 - (BOOL)canOpenNow; @end NS_ASSUME_NONNULL_END