UserInfo.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using LitJson;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace rtc
  6. {
  7. public class UserInfo
  8. {
  9. public static string avatar;
  10. public static Texture textIcon;
  11. public static string defaultavatar;
  12. public static Texture defaulttextIcon;
  13. public static string phone = string.Empty;
  14. public static string UnionId = string.Empty;
  15. public static string PassWord = string.Empty;
  16. //影创账号
  17. public static int activateType;
  18. //影创账号
  19. public static double indate;
  20. //影创账号
  21. public static string userName = string.Empty;
  22. public static bool isSN;
  23. //设备sn号
  24. public static string Serialno = string.Empty;
  25. //影创账号
  26. public static string Account = string.Empty;
  27. //影创应用号
  28. public static string AppID = string.Empty;
  29. //影创Token
  30. public static string Token = string.Empty;
  31. //应用Token
  32. public static string User_Token = string.Empty;
  33. //应用uid
  34. public static string uid = string.Empty;
  35. public static JsonData UserIconData;
  36. public static bool isRemindTip
  37. {
  38. get
  39. {
  40. return PlayerPrefs.GetInt("isRemindTip") == 1 ? true : false;
  41. }
  42. }
  43. /// <summary>
  44. /// 判断是否为游客账号
  45. /// </summary>
  46. /// <returns><c>true</c>, if vistor account was ised, <c>false</c> otherwise.</returns>
  47. public static bool isVistorAccount()
  48. {
  49. return Serialno == Account;
  50. }
  51. /// <summary>
  52. /// 判断用户是否登陆
  53. /// </summary>
  54. /// <returns><c>true</c>, if login was ised, <c>false</c> otherwise.</returns>
  55. public static bool isLogin()
  56. {
  57. return Account != string.Empty;
  58. }
  59. public static string BusyType = "free/busy";
  60. //public static string FreeType = "free";
  61. }
  62. }