12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // KMAdvertisementModel.swift
- // KMAdvertisement
- //
- // Created by lizhe on 2022/11/30.
- //
- @objcMembers public class KMAdvertisementInfo: NSObject, Codable {
- public var recommondContent: KMAdvertisementContent?
- public var advertisement: KMAdvertisementItem?
- public var remoteControl: KMAdvertisementRemoteControl?
- public var discountContent: KMAdvertisementItem?
- public var popWindowContent: KMAdvertisementItem?
- public var StoreUserRecovery: KMAdvertisementItem?
- }
- @objcMembers public class KMAdvertisementContent: NSObject, Codable {
- public var recommondContentOther: KMAdvertisementItem?
- public var recommondContentPDFPro: KMAdvertisementItem?
- }
- @objcMembers public class KMAdvertisementItem: NSObject, Codable {
- public var version: String?
- public var name: Language?
- public var content: [KMAdvertisementItemInfo]?
- }
- @objcMembers public class KMAdvertisementRemoteControl: NSObject, Codable {
- var showMenuHelpInfo: String?
- }
- @objcMembers public class KMAdvertisementItemInfo: NSObject, Codable {
- var index: Int?
- var show: String? //是否显示,内部有做了时间区间判断
- var subscriptionType: String? //类型
- var showType: KMAdvertisementShowType?
- var startTime: String?
- var endTime: String?
- var version: String? //版本号,唯一标识符
- var showCloseBtn: String? //是否显示关闭按钮,(左下角广告需要)
- var image: Image? //APP互推,常规状态下的图片
- var saleImage: Image? // 订阅折扣图片
- var iconImage: String? //广告显示图片(自适应多语)
- var name: Language? //名称(自适应多语)
- var tooltip: Language? //提示语(自适应多语)
- var linkURL: Language? //跳转链接(自适应多语)
- var subTitle: Language? //名称(自适应多语)
- var otherTitle: Language? //名称(自适应多语)
- var btnTitle: Language? //名称(自适应多语)
-
- //Firebase
- var firebase: firebaseInfo?
- var firebaseEvent: String?
- var firebasePropertyKey: String?
- var firebasePropertyValue: String?
-
- public class Image: NSObject, Codable {
- public let zh_TW: String?
- public let hover_Dark: String?
- public let hover_Light: String?
-
- public let zh_CN: String?
- public let normal_Light: String?
- public let normal_Dark: String?
-
- public let en: String?
- }
- }
- public class firebaseInfo: NSObject, Codable {
- var event: String?
- var propertyKey: String?
- var propertyValue: String?
- }
- public class Language: NSObject, Codable {
- var en: String?
- var zh_TW: String?
- var zh_CN: String?
- }
|