2025-01-25 04:38:09 +08:00

123 lines
6.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Thousandto.CoreSDK;
namespace Thousandto.CoreSDK
{
/// <summary>
/// 外部调用的sdk的接口函数将一些sdk相关的东西封装一下
/// </summary>
public class SDKCacheData
{
#region
public static string RoleName { get; set; }
public static string RoleID { get; set; }
public static string RoleLevel { get; set; }
public static string RoleVipLevel { get; set; }
public static string RoleCreateTime { get; set; }
public static string RoleLevelUpTime { get; set; }
public static string RoleGoldBalance { get; set; } //角色身上剩余的元宝
public static string RoleRechargeBalance { get; set; } //本次充值所得元宝
public static string RoleGuidName { get; set; } //公会名
public static string RoleRealmLv{ get; set; } //境界等级
public static string FightPower { get; set; } //角色战力
public static string RoleSex { get; set; } //角色性别0:女,1:男
public static string MapId { get; set; } //当前地图ID
public static string AppVersion { get; set; } //游戏版本号
public static string LoginType { get; set; } //登陆类型,普通登录=1掉线重连=2 ,跨天登记=3
#endregion
#region
public static string ServerName { get; set; }
public static string ServerID { get; set; }
#endregion
#region
public static string RechargeBalance { get; set; } //RMB和元宝兑换比例
public static string ItemPrice { get; set; } //价格
public static string BuyNum { get; set; } //购买数量
public static string ItemDes { get; set; } //商品描述
public static string ItemId { get; set; } //商品id
public static string ItemName { get; set; } //商品名
public static string ItemType { get; set; } //元宝(商品类型)
public static string ItemCurrency { get; set; } //货币类型
public static string OrderId { get; set; } //U8Server订单号下单时U8Server返回的
public static string PayCfgId { get; set; } //RechargeItem表的ID
public static string PayNotifyUrl { get; set; } //通知发货的地址
public static string GoodsDealType { get; set; } //SDK要的充值类型
public static string OrderNo { get; set; } //充值的订单号
#endregion
#region
public static string UserID { get; set; } //平台的唯一uid
public static string UserName { get; set; } //第三方渠道的账号ID 或者名字
#endregion
#region U8SDK的参数x8 sdk来存储一些必要的数据
public static string ServersJson { get; set; } //SDK那边获取到的服务器列表
public static string DefaultURL = "http://tzj-xpt.iwgame.cc"; //默认的域名环境
public static string ServerUrl { get; set; } //服务器列表的域名
public static string SecID { get; set; } //SDK那边获取到的“场景ID”现有的“区服列表”接口新增“场景ID”如sce_id可选参数如果传入了此值会和后台配置的场景ID做匹配匹配上了返回对应的标签没匹配上则返回一个默认标签如“火爆”
public static string DevicesId { get; set; } //SDK回传的设备ID
public static string SourceId { get; set; } //SDK返回的srid
public static string PlatUserName { get; set; } //SDK登陆成功之后返回的第三方渠道的账号ID 或者名字
public static string PlatformUID { get; set; } //SDK登陆返回的UserID
public static string Token { get; set; } //SDK登陆成功之后的Token
public static string AppID { get; set; } //应用编号
public static string ChannelID { get; set; } //渠道编号
public static string NoticeContent { get; set; } //公告内容
public static string CPExtData { get; set; } //渠道(如4399)额外的内容.[JSON数据]sdk渠道的id,平台名称,简称等等信息
#endregion
#region
/// <summary>
/// 渠道(如4399)的UserID[注意:有可能是空的]
/// </summary>
public static string CPUserID { get; set; }
/// <summary>
/// 渠道的用户名
/// </summary>
public static string CPUserName { get; set; }
/// <summary>
/// SDK获取的平台ID
/// </summary>
public static string CPPlatformId { get; set; }
/// <summary>
/// 游戏平台简称
/// </summary>
public static string CPPlatformGname { get; set; }
/// <summary>
/// 游戏简称
/// </summary>
public static string CPGameName { get; set; }
/// <summary>
/// 用户设备IDAndroid系统取IMEI码
/// iOS6.0以前系统取设备号iOS6.0及以后的系统取广告标示符IDFA -Identifier For Advertising,
/// PC可以采用mac地址。请注意不要用MD5加密did字段
/// </summary>
public static string CPDid { get; set; }
/// <summary>
/// 设备名称,如 HUAWEI 9508
/// </summary>
public static string CPDevice_name { get; set; }
/// <summary>
/// SDK获取的gameID
/// </summary>
public static string CPGameId { get; set; }
#endregion
#region QQ大厅的参数
/// <summary>
/// QQ大区ID
/// </summary>
public static string QQZoneID { get; set; }
#endregion
/// <summary>
/// 运营商
/// </summary>
public static string Merchant { get; set; }
public static string Extension{ get; set; } //扩展字段,支付回调时原样返回此参数
}
}