48 lines
1.5 KiB
Objective-C
48 lines
1.5 KiB
Objective-C
//
|
||
// PIUniversalBannerModel.h
|
||
// YuMi
|
||
//
|
||
// Created by duoban on 2024/3/19.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import <SVGA.h>
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
|
||
|
||
|
||
@class PIUniversalBannerItemModel;
|
||
@interface PIUniversalBannerModel : NSObject
|
||
@property(nonatomic,copy) NSDictionary *template;
|
||
@property(nonatomic,copy) NSString *textColor;
|
||
@property(nonatomic,assign) CGFloat fontSize;
|
||
@property(nonatomic,copy) NSString *resourceType;
|
||
@property(nonatomic,copy) NSString *resourceContent;
|
||
@property(nonatomic,assign) int skipType;
|
||
@property(nonatomic,copy) NSString *skipContent; // 当 skip 为 7 时,skipContent 内容为游戏 id
|
||
@property(nonatomic,copy) NSString *svgaTextKey;
|
||
@property(nonatomic,copy) NSArray<PIUniversalBannerItemModel *> *contents;
|
||
@property(nonatomic,assign) CGFloat resourceWidth;
|
||
@property(nonatomic,assign) CGFloat resourceHeight;
|
||
@property(nonatomic,strong) SVGAVideoEntity *videoItem;
|
||
@property(nonatomic,strong) UIImage *image;
|
||
@property(nonatomic,assign) CGFloat resourceTop;
|
||
@property (nonatomic, assign) NSInteger partitionId;
|
||
@end
|
||
|
||
|
||
|
||
@interface PIUniversalBannerItemModel : NSObject
|
||
@property(nonatomic,copy) NSString *type;
|
||
@property(nonatomic,copy) NSString *textColor;
|
||
@property(nonatomic,copy) NSString *key;
|
||
@property(nonatomic,copy) NSDictionary *text;
|
||
@property(nonatomic,assign) int skipType;
|
||
@property(nonatomic,copy) NSString *skipContent;
|
||
@property (nonatomic, assign) NSInteger height;
|
||
@property (nonatomic, assign) NSInteger width;
|
||
@property (nonatomic, copy) NSString *image;
|
||
@end
|
||
NS_ASSUME_NONNULL_END
|