提交
This commit is contained in:
27
QXLive/HomePage(声播)/Model/QXRedPacketModel.h
Normal file
27
QXLive/HomePage(声播)/Model/QXRedPacketModel.h
Normal 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
|
||||
Reference in New Issue
Block a user