This commit is contained in:
启星
2025-10-12 15:48:35 +08:00
parent 5adf8e8412
commit 0b855ca803
128 changed files with 3313 additions and 256 deletions

View File

@@ -0,0 +1,27 @@
//
// QXRedPacketModel.h
// QXLive
//
// Created by 启星 on 2025/10/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface QXRedPacketModel : NSObject
@property (nonatomic, copy) NSString *packetId; // 红包唯一ID
@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