Files
peko-ios/YuMi/Modules/YMRoom/Model/CustomRoomBGItemModel.h
2024-11-11 19:35:21 +08:00

52 lines
1.2 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// CustomRoomBGItemModel.h
// YuMi
//
// Created by P on 2024/10/30.
//
#import "PIBaseModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
RoomBGStatus_Expired = -1,
RoomBGStatus_Reviewing = 0,
RoomBGStatus_Pass = 1,
RoomBGStatus_Rejected = 2
} RoomBGStatus;
typedef enum : NSUInteger {
RoomBGType_Free = 0,
RoomBGType_Pay = 1,
RoomBGType_Custom = 2 ,
} RoomBGType;
@interface CustomRoomBGItemModel : PIBaseModel
@property (nonatomic, assign) NSInteger buyHour;
@property (nonatomic, assign) NSInteger goldPrice;
@property (nonatomic, assign) NSInteger id;
@property (nonatomic, assign) BOOL isCur;
@property (nonatomic, copy) NSString *remainHour;
@property (nonatomic, copy) NSString *url;
/// 0=免费1=付费2=自定义
@property (nonatomic, assign) RoomBGType type;
/// -1=过期0=审核中1=通过2=不过审
@property (nonatomic, assign) RoomBGStatus status;
- (NSString *)remainDays;
- (NSString *)pricePerDays;
- (BOOL)isAlreadyPay;
@end
@interface CustomRoomBGModel : PIBaseModel
@property (nonatomic, assign) NSInteger customHour;
@property (nonatomic, assign) NSInteger customGoldPrice;
@property (nonatomic, copy) NSArray <CustomRoomBGItemModel *> *itemList;
@end
NS_ASSUME_NONNULL_END