Files
peko-ios/YuMi/Modules/ShoppingMall/MyDressingDataModel.h

52 lines
1.5 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.

//
// MyDressingDataModel.h
// YuMi
//
// Created by P on 2024/11/19.
//
#import "PIBaseModel.h"
#import "CarModel.h"
#import "NobleCardModel.h"
#import "NameplateModel.h"
#import "ChatBubbleModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface MyDressingDataModel : PIBaseModel
//dressId = 191;
//dressType = 0;
//effect = "https://image.pekolive.com/Vip1headdress.svga";
//effectType = 2;
//expireDays = 44;
//expireTime = 1735812327000;
//hasExpired = 0;
//name = "VIP1\U982d\U98fe";
//obtainWay = 1;
//pic = "https://image.pekolive.com/Vip1headdress.png";
//used = 0;
@property(nonatomic, assign) NSInteger id;
@property(nonatomic, assign) NSInteger dressId;
@property(nonatomic, assign) NSInteger dressType;
@property(nonatomic, copy) NSString *effect;
@property(nonatomic, assign) NSInteger effectType;
@property(nonatomic, assign) NSInteger expireDays;
@property(nonatomic, assign) NSInteger expireTime;
@property(nonatomic, assign) BOOL hasExpired;
@property(nonatomic, copy) NSString *name;
@property(nonatomic, assign) NSInteger obtainWay; // "获得方式1-普通2-活动"
@property(nonatomic, copy) NSString *pic;
@property(nonatomic, assign) NSInteger used;
- (NSString *)expiredContent;
+ (MyDressingDataModel *)modelFromVehicle:(CarModel *)model;
+ (MyDressingDataModel *)modelFromNameplate:(NameplateModel *)model;
+ (MyDressingDataModel *)modelFromNobelCard:(NobleCardModel *)model;
+ (MyDressingDataModel *)modelFromChatBubble:(ChatBubbleModel *)model;
@end
NS_ASSUME_NONNULL_END