KMAdvertisementModel.swift 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // KMAdvertisementModel.swift
  3. // KMAdvertisement
  4. //
  5. // Created by lizhe on 2022/11/30.
  6. //
  7. @objcMembers public class KMAdvertisementInfo: NSObject, Codable {
  8. public var recommondContent: KMAdvertisementContent?
  9. public var advertisement: KMAdvertisementItem?
  10. public var remoteControl: KMAdvertisementRemoteControl?
  11. public var discountContent: KMAdvertisementItem?
  12. public var popWindowContent: KMAdvertisementItem?
  13. public var StoreUserRecovery: KMAdvertisementItem?
  14. public var topRightInfoContent: KMAdvertisementItem? //顶部右上角信息
  15. public var loginViewContent: KMAdvertisementItem? //登录界面信息
  16. public var userViewInfoContent: KMAdvertisementItem? //会员信息界面信息
  17. }
  18. @objcMembers public class KMAdvertisementContent: NSObject, Codable {
  19. public var recommondContentOther: KMAdvertisementItem?
  20. public var recommondContentPDFPro: KMAdvertisementItem?
  21. }
  22. @objcMembers public class KMAdvertisementItem: NSObject, Codable {
  23. public var version: String?
  24. public var name: Language?
  25. public var content: [KMAdvertisementItemInfo]?
  26. }
  27. @objcMembers public class KMAdvertisementRemoteControl: NSObject, Codable {
  28. var showMenuHelpInfo: String?
  29. }
  30. @objcMembers public class KMAdvertisementItemInfo: NSObject, Codable {
  31. var index: Int?
  32. var show: String? //是否显示,内部有做了时间区间判断
  33. var subscriptionType: String? //类型
  34. var showType: KMAdvertisementShowType?
  35. var jumpType: String?
  36. var startTime: String?
  37. var endTime: String?
  38. var version: String? //版本号,唯一标识符
  39. var showCloseBtn: String? //是否显示关闭按钮,(左下角广告需要)
  40. var image: Image? //APP互推,常规状态下的图片
  41. var saleImage: Image? // 订阅折扣图片
  42. var iconImage: String? //广告显示图片(自适应多语)
  43. var dfpImage: Image?
  44. var name: Language? //名称(自适应多语)
  45. var tooltip: Language? //提示语(自适应多语)
  46. var linkURL: Language? //跳转链接(自适应多语)
  47. var subTitle: Language? //名称(自适应多语)
  48. var newSubTitle: Language? //名称(自适应多语)
  49. var otherTitle: Language? //名称(自适应多语)
  50. var btnTitle: Language? //名称(自适应多语)
  51. //Firebase
  52. var firebase: firebaseInfo?
  53. var firebaseEvent: String?
  54. var firebasePropertyKey: String?
  55. var firebasePropertyValue: String?
  56. public class Image: NSObject, Codable {
  57. public let zh_TW: String?
  58. public let hover_Dark: String?
  59. public let hover_Light: String?
  60. public let zh_CN: String?
  61. public let normal_Light: String?
  62. public let normal_Dark: String?
  63. public let en: String?
  64. }
  65. }
  66. public class firebaseInfo: NSObject, Codable {
  67. var event: String?
  68. var propertyKey: String?
  69. var propertyValue: String?
  70. }
  71. public class Language: NSObject, Codable {
  72. var en: String?
  73. var zh_TW: String?
  74. var zh_CN: String?
  75. }