ViewerEventBarSettingResponse.cs 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace KdanCommon.CMSCollection.Data
  8. {
  9. public partial class ViewerEventBarSettingResponse
  10. {
  11. [JsonProperty("data")]
  12. public ViewerEventBarSetting[] Data { get; set; }
  13. }
  14. public partial class ViewerEventBarSetting : ISetting
  15. {
  16. public string SettingName
  17. {
  18. get
  19. {
  20. return "ViewerEventBarSetting";
  21. }
  22. }
  23. [JsonProperty("id")]
  24. public long Id { get; set; }
  25. [JsonProperty("event_name")]
  26. public string EventName { get; set; }
  27. [JsonProperty("target_user")]
  28. public string TargetUser { get; set; }
  29. [JsonProperty("start_time")]
  30. public long StartTime { get; set; }
  31. [JsonProperty("end_time")]
  32. public long EndTime { get; set; }
  33. [JsonProperty("event_bar_text_color")]
  34. public string EventBarTextColor { get; set; }
  35. [JsonProperty("event_bar_background_color")]
  36. public string EventBarBackgroundColor { get; set; }
  37. [JsonProperty("event_bar_link_url")]
  38. public Uri EventBarLinkUrl { get; set; }
  39. [JsonProperty("event_bar_icon_image")]
  40. public string EventBarIconImage { get; set; }
  41. public string EventBarIconImageUrlStr
  42. {
  43. get
  44. {
  45. if (string.IsNullOrEmpty(EventBarIconImage))
  46. return null;
  47. return $"{CMSCollection.CMSDomain}/assets/{EventBarIconImage}";
  48. }
  49. }
  50. [JsonProperty("event_bar_close_button_image")]
  51. public string EventBarCloseButtonImage { get; set; }
  52. public string EventBarCloseButtonImageUrlStr
  53. {
  54. get
  55. {
  56. if (string.IsNullOrEmpty(EventBarCloseButtonImage))
  57. return null;
  58. return $"{CMSCollection.CMSDomain}/assets/{EventBarCloseButtonImage}";
  59. }
  60. }
  61. [JsonProperty("event_bar_icon_visible")]
  62. public bool EventBarIconVisible { get; set; }
  63. [JsonProperty("event_bar_close_button_visible")]
  64. public bool EventBarCloseButtonVisible { get; set; }
  65. [JsonProperty("dialog_text_color")]
  66. public string DialogTextColor { get; set; }
  67. [JsonProperty("dialog_background_color")]
  68. public string DialogBackgroundColor { get; set; }
  69. [JsonProperty("dialog_image")]
  70. public string DialogImage { get; set; }
  71. public string DialogImageUrlStr
  72. {
  73. get
  74. {
  75. if (string.IsNullOrEmpty(DialogImage))
  76. return null;
  77. return $"{CMSCollection.CMSDomain}/assets/{DialogImage}";
  78. }
  79. }
  80. [JsonProperty("dialog_close_icon_image")]
  81. public string DialogCloseIconImage { get; set; }
  82. public string DialogCloseIconImageUrlStr
  83. {
  84. get
  85. {
  86. if (string.IsNullOrEmpty(DialogCloseIconImage))
  87. return null;
  88. return $"{CMSCollection.CMSDomain}/assets/{DialogCloseIconImage}";
  89. }
  90. }
  91. [JsonProperty("dialog_close_button_visible")]
  92. public bool DialogCloseButtonVisible { get; set; }
  93. [JsonProperty("do_not_show_checkbox_checked_color")]
  94. public string DoNotShowCheckboxCheckedColor { get; set; }
  95. [JsonProperty("do_not_show_checkbox_unchecked_color")]
  96. public string DoNotShowCheckboxUncheckedColor { get; set; }
  97. [JsonProperty("do_not_show_visible")]
  98. public bool DoNotShowVisible { get; set; }
  99. [JsonProperty("event_visible")]
  100. public bool EventVisible { get; set; }
  101. [JsonProperty("platform")]
  102. public string Platform { get; set; }
  103. [JsonProperty("do_not_show_checkbox_text_color")]
  104. public string DoNotShowCheckboxTextColor { get; set; }
  105. [JsonProperty("evnet_bar_text_translations")]
  106. public Translation[] EvnetBarTextTranslations { get; set; }
  107. [JsonProperty("dialog_text_translations")]
  108. public Translation[] DialogTextTranslations { get; set; }
  109. [JsonProperty("dialog_button")]
  110. public DialogButton[] DialogButton { get; set; }
  111. [JsonProperty("do_not_show_translations")]
  112. public Translation[] DoNotShowTranslations { get; set; }
  113. [JsonProperty("do_not_show_dialog")]
  114. public bool DoNotShowDialog { get; set; }
  115. [JsonProperty("regions")]
  116. public string[] Regions { get; set; }
  117. }
  118. public partial class DialogButton
  119. {
  120. [JsonProperty("id")]
  121. public long Id { get; set; }
  122. [JsonProperty("dialog_button_text_color")]
  123. public string DialogButtonTextColor { get; set; }
  124. [JsonProperty("dialog_button_background_color")]
  125. public string DialogButtonBackgroundColor { get; set; }
  126. [JsonProperty("dialog_button_url")]
  127. public Uri DialogButtonUrl { get; set; }
  128. [JsonProperty("dialog_button_border_color")]
  129. public string DialogButtonBorderColor { get; set; }
  130. [JsonProperty("dialog_button_sort")]
  131. public long DialogButtonSort { get; set; }
  132. [JsonProperty("dialog_button_translations")]
  133. public Translation[] DialogButtonTranslations { get; set; }
  134. }
  135. public partial class Translation
  136. {
  137. [JsonProperty("id")]
  138. public long Id { get; set; }
  139. [JsonProperty("languages_code")]
  140. public string LanguagesCode { get; set; }
  141. [JsonProperty("content")]
  142. public string Content { get; set; }
  143. }
  144. }