Files
featherVoice/QXLive/HomePage(声播)/Model/QXRedPacketModel.h

85 lines
2.5 KiB
C
Raw Normal View History

2025-10-20 09:43:10 +08:00
//
// QXRedPacketModel.h
// QXLive
//
// Created by 启星 on 2025/10/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class QXDrawRedpacketRecordModel,QXRedpacketStatisticsModel;
@interface QXRedPacketModel : NSObject
/// 红包唯一ID
@property (nonatomic, strong) NSString *redpacket_id;
/// 口令
@property (nonatomic, strong) NSString *password;
/// 倒计时 截止时间 为0时是立刻
@property (nonatomic, strong) NSString *countdown;
/// 红包总金额
@property (nonatomic, strong) NSString* total_amount;
/// 房间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