DialogCounter.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace PDFSettings
  7. {
  8. //用于记录弹窗策略相关的参数
  9. public class DialogCounter
  10. {
  11. /// <summary>
  12. /// 是否已经点击RateUs弹窗的按钮
  13. /// </summary>
  14. public bool HasRateUs = false;
  15. /// <summary>
  16. /// 版本更新时间
  17. /// </summary>
  18. public System.DateTime UpdateTime = System.DateTime.Now;
  19. /// <summary>
  20. /// 弹窗显示的时间
  21. /// </summary>
  22. public System.DateTime ShowedDate = System.DateTime.Now;
  23. /// <summary>
  24. /// app的打开次数
  25. /// </summary>
  26. public int AppOpenedCount = 0;
  27. /// <summary>
  28. /// 弹窗显示次数
  29. /// </summary>
  30. public int DialogShowedCount = 0;
  31. /// <summary>
  32. /// 当前版本不再显示设置默认APP 弹窗
  33. /// </summary>
  34. public bool SetDefualtAppDontShow = false;
  35. /// <summary>
  36. /// 更新后已显示
  37. /// </summary>
  38. public bool HasShowedAfterUpdated = false;
  39. }
  40. }