SDKInterfaceDefine.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace FrameWork.SDKManager
  5. {
  6. public class SDKInterfaceDefine
  7. {
  8. public const string ModuleName = "ModuleName";
  9. public const string FunctionName = "FunctionName";
  10. public const string ListenerName = "ListenerName";
  11. public const string SDKName = "SDKName";
  12. public const string SDKIndex = "SDKIndex";
  13. public const string Tag = "Tag";
  14. public const string ParameterName_IsSuccess = "IsSuccess";
  15. public const string ParameterName_Error = "Error";
  16. public const string ParameterName_Content = "Content";
  17. public const string ModuleName_Init = "Init";
  18. public const string ModuleName_Dispose = "Dispose";
  19. public const string ModuleName_Debug = "Debug";
  20. public const string ModuleName_Login = "Login";
  21. public const string ModuleName_Pay = "Pay";
  22. public const string ModuleName_AD = "AD";
  23. public const string ModuleName_Log = "Log";
  24. public const string ModuleName_Other = "Other";
  25. public const string ModuleName_LifeCycle = "LifeCycle";
  26. //回调方法
  27. public const string FunctionName_OnError = "OnError";
  28. public const string FunctionName_OnLog = "OnLog";
  29. public const string FunctionName_OnInit = "OnInit";
  30. public const string FunctionName_OnLogin = "OnLogin";
  31. public const string FunctionName_OnLogout = "OnLogout";
  32. public const string FunctionName_OnPay = "OnPay";
  33. public const string FunctionName_OnOther = "OnOther";
  34. //LifeCycle 相关参数
  35. public const string LifeCycle_FunctionName_OnApplicationQuit = "OnApplicationQuit";
  36. //Login相关参数
  37. public const string FunctionName_Logout = "Logout";
  38. public const string Login_ParameterName_Device = "Device";
  39. public const string Login_ParameterName_AccountId = "AccountId";
  40. public const string Login_ParameterName_loginPlatform = "loginPlatform";
  41. //Pay相关参数
  42. public const string Pay_ParameterName_GoodsID = "GoodsID";
  43. public const string Pay_ParameterName_GoodsType = "GoodsType";
  44. public const string Pay_ParameterName_Count = "Count";
  45. public const string Pay_ParameterName_GoodsName = "GoodsName";
  46. public const string Pay_ParameterName_CallBackUrl = "CallBackUrl";
  47. public const string Pay_ParameterName_CpOrderID = "CpOrderID";//第三方支付ID
  48. public const string Pay_ParameterName_OrderID = "OrderID"; //我们自己的支付ID
  49. public const string Pay_ParameterName_Price = "Price"; //价格
  50. public const string Pay_ParameterName_Currency = "Currency"; //货币
  51. public const string Pay_ParameterName_Payment = "Payment"; //支付途径
  52. public const string Pay_ParameterName_Receipt = "Receipt"; //支付回执
  53. public const string Pay_GoodsTypeEnum_ONCE_ONLY = "ONCE_ONLY";
  54. public const string Pay_GoodsTypeEnum_NORMAL = "NORMAL";
  55. public const string Pay_GoodsTypeEnum_RIGHTS = "RIGHTS";
  56. //AD相关参数
  57. //Log相关参数
  58. public const string Log_FunctionName_Login = "LogLogin";
  59. public const string Log_FunctionName_LoginOut = "LogLoginOut";
  60. public const string Log_FunctionName_Event = "LogEvent";
  61. public const string Log_FunctionName_LogPay = "LogPay";
  62. public const string Log_FunctionName_LogPaySuccess = "LogPaySuccess";
  63. public const string Log_FunctionName_RewardVirtualCurrency = "LogRewardVirtualCurrency"; //奖励虚拟币
  64. public const string Log_FunctionName_PurchaseVirtualCurrency = "LogPurchaseVirtualCurrency";//消费虚拟币
  65. public const string Log_FunctionName_UseItem = "LogUseItem";//使用虚拟物品(通过虚拟币购买的)
  66. //Log Login相关
  67. public const string Log_ParameterName_AccountId = "AccountId";
  68. //Log VirtualCurrency相关
  69. public const string Log_ParameterName_RewardReason = "RewardReason";
  70. //Log Event相关
  71. public const string Log_ParameterName_EventID = "EventID";
  72. public const string Log_ParameterName_EventLabel = "EventLabel";
  73. public const string Log_ParameterName_EventMap = "EventMap";
  74. //Other相关参数
  75. public const string Other_FunctionName_Exit = "Exit";
  76. //Other -> 剪贴板
  77. public const string Other_FunctionName_CopyToClipboard = "CopyToClipboard";
  78. public const string Other_FunctionName_CopyFromClipboard = "CopyFromClipboard";
  79. public const string Other_ParameterName_Content = "Content";
  80. //Other -> 热更新安装包
  81. public const string Other_FunctionName_DownloadAPK = "DownloadAPK";
  82. public const string Other_FunctionName_GetAPKSize = "GetAPKSize";
  83. public const string Other_ParameterName_DownloadURL = "DownloadURL";
  84. public const string Other_ParameterName_Progress = "Progress";
  85. public const string Other_ParameterName_TotalProgress = "TotalProgress";
  86. public const string Other_ParameterName_Size = "Size";
  87. //Properties
  88. public const string FileName_ChannelProperties = "Channel";
  89. public const string PropertiesKey_IsLog = "IsLog"; //是否输出日志
  90. public const string PropertiesKey_UpdateDownLoadPath = "UpdateDownLoadPath"; //热更新下载地址(最后没有斜线)
  91. public const string PropertiesKey_ChannelName = "ChannelName"; //渠道名称
  92. public const string PropertiesKey_StoreName = "StoreName"; //商店名称
  93. public const string PropertiesKey_LoginPlatform = "LoginPlatform"; //登录平台
  94. public const string PropertiesKey_NetworkID = "NetworkID"; //服务器选择
  95. public const string PropertiesKey_QQGroup = "QQGroup"; //服务器选择
  96. }
  97. }