TimeData.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. using Newtonsoft.Json;
  6. namespace WebTools.Times.Data
  7. {
  8. [Serializable]
  9. public class TimeData
  10. {
  11. [SerializeField]
  12. [JsonProperty]
  13. private long timeStamp;
  14. [SerializeField]
  15. [JsonProperty]
  16. private long quitTimeStamp;
  17. [SerializeField]
  18. [JsonProperty]
  19. private long rewardTimeStamp;
  20. [JsonIgnore]
  21. public long QuitTime
  22. {
  23. get
  24. {
  25. return quitTimeStamp;
  26. }
  27. set
  28. {
  29. quitTimeStamp = value;
  30. }
  31. }
  32. [JsonIgnore]
  33. public long TimeStamp
  34. {
  35. get
  36. {
  37. return timeStamp;
  38. }
  39. set
  40. {
  41. timeStamp = value;
  42. }
  43. }
  44. [JsonIgnore]
  45. public long RewardTimeStamp
  46. {
  47. get
  48. {
  49. return rewardTimeStamp;
  50. }
  51. set
  52. {
  53. rewardTimeStamp = value;
  54. }
  55. }
  56. }
  57. }