GameArchivesDataBean.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /// <summary>
  5. /// 游戏档位数据
  6. /// create by chenbaoyang
  7. /// </summary>
  8. namespace com.m3839.sdk.archives.bean
  9. {
  10. public class GameArchivesDataBean
  11. {
  12. /** 游戏ID */
  13. private string gameId;
  14. /** 用户ID */
  15. private string userId;
  16. /** 存档ID */
  17. private int archivesId;
  18. /** 存档标题*/
  19. private string archivesTitle;
  20. /** 存档内容*/
  21. private string archivesContent;
  22. /** 存档透传字段*/
  23. private string archivesExt;
  24. /** 存档的时间 */
  25. private string updateTime;
  26. public GameArchivesDataBean()
  27. {
  28. }
  29. /// <summary>
  30. /// 游戏档位数据
  31. /// </summary>
  32. public GameArchivesDataBean(AndroidJavaObject bean)
  33. {
  34. this.gameId = bean.Call<string>("getGameId");
  35. this.userId = bean.Call<string>("getUserId");
  36. this.archivesId = bean.Call<int>("getArchivesId");
  37. this.archivesTitle = bean.Call<string>("getGiftLinkTitle");
  38. this.archivesContent = bean.Call<string>("getArchivesContent");
  39. this.archivesExt = bean.Call<string>("getArchivesExt");
  40. this.updateTime = bean.Call<string>("getUpdateTime");
  41. }
  42. [System.Obsolete("该方法已过时")]
  43. public string getGameId()
  44. {
  45. return gameId;
  46. }
  47. [System.Obsolete("该方法已过时")]
  48. public void setGameId(string gameId)
  49. {
  50. this.gameId = gameId;
  51. }
  52. public string getUserId()
  53. {
  54. return userId;
  55. }
  56. public void setUserId(string userId)
  57. {
  58. this.userId = userId;
  59. }
  60. public int getArchivesId()
  61. {
  62. return archivesId;
  63. }
  64. public void setArchivesId(int archivesId)
  65. {
  66. this.archivesId = archivesId;
  67. }
  68. public string getArchivesTitle()
  69. {
  70. return archivesTitle;
  71. }
  72. public void setArchivesTitle(string archivesTitle)
  73. {
  74. this.archivesTitle = archivesTitle;
  75. }
  76. public string getArchivesContent()
  77. {
  78. return archivesContent;
  79. }
  80. public void setArchivesContent(string archivesContent)
  81. {
  82. this.archivesContent = archivesContent;
  83. }
  84. public string getArchivesExt()
  85. {
  86. return archivesExt;
  87. }
  88. public void setArchivesExt(string archivesExt)
  89. {
  90. this.archivesExt = archivesExt;
  91. }
  92. public string getUpdateTime()
  93. {
  94. return updateTime;
  95. }
  96. public void setUpdateTime(string updateTime)
  97. {
  98. this.updateTime = updateTime;
  99. }
  100. public static AndroidJavaObject ToA(GameArchivesDataBean bean)
  101. {
  102. AndroidJavaObject payInfo = new AndroidJavaObject("com.m3839.sdk.archives.bean.GameArchivesDataBean");
  103. payInfo.Call("setGameId", bean.getGameId());
  104. payInfo.Call("setUserId", bean.getUserId());
  105. payInfo.Call("setArchivesId", bean.getArchivesId());
  106. payInfo.Call("setArchivesTitle", bean.getArchivesTitle());
  107. payInfo.Call("setArchivesContent", bean.getArchivesContent());
  108. payInfo.Call("setArchivesExt", bean.getArchivesExt());
  109. payInfo.Call("setUpdateTime", bean.getUpdateTime());
  110. return payInfo;
  111. }
  112. }
  113. }