123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- //
- // 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?
- }
- @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 iconImage: String? //广告显示图片(自适应多语)
- var name: Language? //名称(自适应多语)
- var tooltip: Language? //提示语(自适应多语)
- var linkURL: Language? //跳转链接(自适应多语)
- var subTitle: Language? //名称(自适应多语)
- var otherTitle: Language? //名称(自适应多语)
- var btnTitle: Language? //名称(自适应多语)
-
- //Firebase
- 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 Language: NSObject, Codable {
- var en: String?
- var zh_TW: String?
- var zh_CN: String?
- }
- //@objcMembers public class KMAdvertisementModel: NSObject, Codable {
- // public var appName: KMAdvertisementAppNameType = .FilmageEditorMac //产品名
- // public var platform: KMAdvertisementPlatformType = .Mac //平台
- // public var showType: KMAdvertisementShowType = .view //显示类型
- // public let startTime: String? //开始时间 时间戳
- // public let endTime: String? //结束时间 时间戳
- // public let version: String? //小于等于此版本生效
- // public let hidden: Bool? //是否显示
- // let subscribeType: KMAdvertisementSubscribeType? //是否订阅
- // public var content: [KMAdvertisementModelSection]?
- //}
- //
- //@objcMembers public class KMAdvertisementModelSection: NSObject, Codable {
- // public let sectionTitle: KMAdvertisementModelItem.Text?
- // public var content: [KMAdvertisementModelItem]?
- //}
- //
- //@objcMembers public class KMAdvertisementModelItem: NSObject, Codable {
- // public var productID: String?
- // public let startTime: String? //开始时间 时间戳
- // public let endTime: String? //结束时间 时间戳
- // public var hidden: Bool?
- //
- // public var index: Int?
- // public let title: Text?
- // public let imageURL: Image?
- // public let ipadImageURL: Image?
- // public let linkURL: Language?
- // public let tips: Language?
- // public let button: Text?
- // public var actionType: KMAdvertisementActionType = .URL
- //
- // public struct Text: Codable {
- // public let font: Font?
- // public let color: Color?
- // public let background: Background?
- // public let language: Language?
- // }
- //
- // public struct Font: Codable {
- // public let name: String?
- // public let size: Int?
- // }
- //
- // public struct Color: Codable {
- // let height: ColorState?
- // let normal: ColorState?
- //
- // struct ColorState: Codable {
- // public let dark: ColorInfo?
- // public let universal: ColorInfo?
- //
- // struct ColorInfo: Codable {
- // public var hex: String?
- // public var alpha: Float?
- // }
- // }
- // }
- //
- // public struct Background: Codable {
- // let color: Color?
- // let layer: Layer?
- //
- // struct Layer: Codable {
- // public let cornerRadius: CGFloat?
- // public let borderWidth: CGFloat?
- // public let borderColor: Color?
- // }
- // }
- //
- // public struct Image: Codable {
- // public let height: ImageInfo?
- // public let normal: ImageInfo?
- // public let background: Background?
- // }
- //
- // public struct ImageInfo: Codable {
- // public let dark: Language?
- // public let universal: Language?
- // }
- //
- // public class Language: NSObject, Codable {
- // public let en: String?
- // public let zh_TW: String?
- // public let zh_CN: String?
- // }
- //}
|