KMAdvertisementModel.swift 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 startTime: String?
  36. var endTime: String?
  37. var version: String? //版本号,唯一标识符
  38. var showCloseBtn: String? //是否显示关闭按钮,(左下角广告需要)
  39. var image: Image? //APP互推,常规状态下的图片
  40. var saleImage: Image? // 订阅折扣图片
  41. var iconImage: String? //广告显示图片(自适应多语)
  42. var name: Language? //名称(自适应多语)
  43. var tooltip: Language? //提示语(自适应多语)
  44. var linkURL: Language? //跳转链接(自适应多语)
  45. var subTitle: Language? //名称(自适应多语)
  46. var otherTitle: Language? //名称(自适应多语)
  47. var btnTitle: Language? //名称(自适应多语)
  48. //Firebase
  49. var firebase: firebaseInfo?
  50. var firebaseEvent: String?
  51. var firebasePropertyKey: String?
  52. var firebasePropertyValue: String?
  53. public class Image: NSObject, Codable {
  54. public let zh_TW: String?
  55. public let hover_Dark: String?
  56. public let hover_Light: String?
  57. public let zh_CN: String?
  58. public let normal_Light: String?
  59. public let normal_Dark: String?
  60. public let en: String?
  61. }
  62. }
  63. public class firebaseInfo: NSObject, Codable {
  64. var event: String?
  65. var propertyKey: String?
  66. var propertyValue: String?
  67. }
  68. public class Language: NSObject, Codable {
  69. var en: String?
  70. var zh_TW: String?
  71. var zh_CN: String?
  72. }