Files
yinmeng-ios/xplan-ios/Main/Room/View/SendRedPacket/Model/XPRedPacketResultModel.h
2022-09-08 11:33:42 +08:00

55 lines
1.3 KiB
Objective-C

//
// XPRedPacketResultModel.h
// xplan-ios
//
// Created by GreenLand on 2022/9/2.
//
#import <Foundation/Foundation.h>
#import "XPRedPacketModel.h"
NS_ASSUME_NONNULL_BEGIN
/*
当前用户的红包状态
ING(1, “开抢中”),
TIME_OUT(2, “过时”),
REMAIN_ZERO(3, “抢光了”),
SUCCESS(4, “抢到了”),
WILL(5, “将要开始”),
TIME_OUT_BACK(6, “超时已退还”),
*/
typedef enum : NSUInteger {
RedPacketState_Ing = 1,
RedPacketState_Time_Out = 2,
RedPacketState_Remain_Zero = 3,
RedPacketState_Success = 4,
RedPacketState_will = 5,
RedPacketState_Time_Out_Back = 6,
} RedPacketState;
@class UserInfoModel, XPRedPacketPersonReceiveModel;
@interface XPRedPacketResultModel : NSObject
@property (nonatomic, copy) NSString *currentUserAmount;
@property (nonatomic, assign) RedPacketState redEnvelopeState;
@property (nonatomic, strong) XPRedPacketModel *redEnvelopeVO;
///钻石红包领取详情
@property (nonatomic, strong) NSArray<XPRedPacketPersonReceiveModel *> *redEnvelopeItemVOs;
@end
@interface XPRedPacketPersonReceiveModel : NSObject
@property (nonatomic, strong) NSNumber *amount;
@property (nonatomic, strong) UserInfoModel *userVO;
@property (nonatomic, assign) NSTimeInterval createTime;
@end
NS_ASSUME_NONNULL_END