// // 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? } //@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? // } //}