123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- //
- // 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?
-
- public var topRightInfoContent: KMAdvertisementItem? //顶部右上角信息
- public var loginViewContent: KMAdvertisementItem? //登录界面信息
- public var userViewInfoContent: 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?
- }
|