新增表
This commit is contained in:
parent
80c14c34cb
commit
c6757c950a
Binary file not shown.
118
Scripts/DR_Generated/DRChargeConst.cs
Normal file
118
Scripts/DR_Generated/DRChargeConst.cs
Normal file
@ -0,0 +1,118 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: ChargeConst
|
||||
// 数据类: ChargeConstItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// ChargeConst 数据行
|
||||
/// </summary>
|
||||
public class DRChargeConst : DataRowBase
|
||||
{
|
||||
private ChargeConstItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Key
|
||||
/// </summary>
|
||||
public string Key
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Key ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Value
|
||||
/// </summary>
|
||||
public string Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Value ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, ChargeConst config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<ChargeConst>();
|
||||
}
|
||||
|
||||
if (config?.Chargeconsts != null)
|
||||
{
|
||||
config.Chargeconsts.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(ChargeConstItem configData)
|
||||
{
|
||||
_configData = configData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解析数据行(优化:使用 userData 传入的配置实例,避免重复调用 GetConfig)
|
||||
/// </summary>
|
||||
public override bool ParseDataRow(string dataRowString, object userData)
|
||||
{
|
||||
int id = 0;
|
||||
if (!int.TryParse(dataRowString, out id))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// 性能优化:尝试从 userData 获取配置字典,直接获取 Item
|
||||
if (userData is System.Collections.Generic.Dictionary<string, object> userDataDict)
|
||||
{
|
||||
// 优先尝试从缓存的字典直接获取 Item(最快)
|
||||
if (userDataDict.TryGetValue("ConfigDict", out object dictObj))
|
||||
{
|
||||
var dict = dictObj as System.Collections.Generic.Dictionary<int, ChargeConstItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as ChargeConst;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRChargeConst.cs.meta
Normal file
11
Scripts/DR_Generated/DRChargeConst.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 782bde99a2b63c94985aa0e4808b37d5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
129
Scripts/DR_Generated/DRFriendConst.cs
Normal file
129
Scripts/DR_Generated/DRFriendConst.cs
Normal file
@ -0,0 +1,129 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: FriendConst
|
||||
// 数据类: FriendConstItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// FriendConst 数据行
|
||||
/// </summary>
|
||||
public class DRFriendConst : DataRowBase
|
||||
{
|
||||
private FriendConstItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Key
|
||||
/// </summary>
|
||||
public string Key
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Key ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Value
|
||||
/// </summary>
|
||||
public int Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Value ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ClientShow
|
||||
/// </summary>
|
||||
public string ClientShow
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.ClientShow ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, FriendConst config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<FriendConst>();
|
||||
}
|
||||
|
||||
if (config?.Friendconsts != null)
|
||||
{
|
||||
config.Friendconsts.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(FriendConstItem configData)
|
||||
{
|
||||
_configData = configData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解析数据行(优化:使用 userData 传入的配置实例,避免重复调用 GetConfig)
|
||||
/// </summary>
|
||||
public override bool ParseDataRow(string dataRowString, object userData)
|
||||
{
|
||||
int id = 0;
|
||||
if (!int.TryParse(dataRowString, out id))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// 性能优化:尝试从 userData 获取配置字典,直接获取 Item
|
||||
if (userData is System.Collections.Generic.Dictionary<string, object> userDataDict)
|
||||
{
|
||||
// 优先尝试从缓存的字典直接获取 Item(最快)
|
||||
if (userDataDict.TryGetValue("ConfigDict", out object dictObj))
|
||||
{
|
||||
var dict = dictObj as System.Collections.Generic.Dictionary<int, FriendConstItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as FriendConst;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRFriendConst.cs.meta
Normal file
11
Scripts/DR_Generated/DRFriendConst.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd484072f2049c245baa966b72458e67
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
118
Scripts/DR_Generated/DRGuideReward.cs
Normal file
118
Scripts/DR_Generated/DRGuideReward.cs
Normal file
@ -0,0 +1,118 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: GuideReward
|
||||
// 数据类: GuideRewardItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// GuideReward 数据行
|
||||
/// </summary>
|
||||
public class DRGuideReward : DataRowBase
|
||||
{
|
||||
private GuideRewardItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Items
|
||||
/// </summary>
|
||||
public string Items
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Items ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Num
|
||||
/// </summary>
|
||||
public int Num
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Num ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, GuideReward config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<GuideReward>();
|
||||
}
|
||||
|
||||
if (config?.Guiderewards != null)
|
||||
{
|
||||
config.Guiderewards.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(GuideRewardItem configData)
|
||||
{
|
||||
_configData = configData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解析数据行(优化:使用 userData 传入的配置实例,避免重复调用 GetConfig)
|
||||
/// </summary>
|
||||
public override bool ParseDataRow(string dataRowString, object userData)
|
||||
{
|
||||
int id = 0;
|
||||
if (!int.TryParse(dataRowString, out id))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// 性能优化:尝试从 userData 获取配置字典,直接获取 Item
|
||||
if (userData is System.Collections.Generic.Dictionary<string, object> userDataDict)
|
||||
{
|
||||
// 优先尝试从缓存的字典直接获取 Item(最快)
|
||||
if (userDataDict.TryGetValue("ConfigDict", out object dictObj))
|
||||
{
|
||||
var dict = dictObj as System.Collections.Generic.Dictionary<int, GuideRewardItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as GuideReward;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRGuideReward.cs.meta
Normal file
11
Scripts/DR_Generated/DRGuideReward.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 22969a5ac2ad49443ab9363d5e9dbc51
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -125,6 +125,9 @@ namespace Byway.Thrift.Data
|
||||
private global::Byway.Thrift.Data.LevelLauncherData _LevelLauncherData;
|
||||
private global::Byway.Thrift.Data.NickNameRandomData _NickNameRandomData;
|
||||
private global::Byway.Thrift.Data.ConstantString _ConstantString;
|
||||
private global::Byway.Thrift.Data.GuideReward _GuideReward;
|
||||
private global::Byway.Thrift.Data.FriendConst _FriendConst;
|
||||
private global::Byway.Thrift.Data.ChargeConst _ChargeConst;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.AdGiftData AdGiftData
|
||||
@ -1316,6 +1319,48 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.GuideReward GuideReward
|
||||
{
|
||||
get
|
||||
{
|
||||
return _GuideReward;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.GuideReward = true;
|
||||
this._GuideReward = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.FriendConst FriendConst
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FriendConst;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.FriendConst = true;
|
||||
this._FriendConst = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.ChargeConst ChargeConst
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ChargeConst;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ChargeConst = true;
|
||||
this._ChargeConst = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
@ -1492,6 +1537,12 @@ namespace Byway.Thrift.Data
|
||||
public bool NickNameRandomData;
|
||||
[DataMember]
|
||||
public bool ConstantString;
|
||||
[DataMember]
|
||||
public bool GuideReward;
|
||||
[DataMember]
|
||||
public bool FriendConst;
|
||||
[DataMember]
|
||||
public bool ChargeConst;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
@ -1921,6 +1972,21 @@ namespace Byway.Thrift.Data
|
||||
return __isset.ConstantString;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeGuideReward()
|
||||
{
|
||||
return __isset.GuideReward;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeFriendConst()
|
||||
{
|
||||
return __isset.FriendConst;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeChargeConst()
|
||||
{
|
||||
return __isset.ChargeConst;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public AllConfigs()
|
||||
@ -2355,6 +2421,21 @@ namespace Byway.Thrift.Data
|
||||
tmp0.ConstantString = (global::Byway.Thrift.Data.ConstantString)this.ConstantString.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.ConstantString = this.__isset.ConstantString;
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
tmp0.GuideReward = (global::Byway.Thrift.Data.GuideReward)this.GuideReward.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.GuideReward = this.__isset.GuideReward;
|
||||
if((FriendConst != null) && __isset.FriendConst)
|
||||
{
|
||||
tmp0.FriendConst = (global::Byway.Thrift.Data.FriendConst)this.FriendConst.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.FriendConst = this.__isset.FriendConst;
|
||||
if((ChargeConst != null) && __isset.ChargeConst)
|
||||
{
|
||||
tmp0.ChargeConst = (global::Byway.Thrift.Data.ChargeConst)this.ChargeConst.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.ChargeConst = this.__isset.ChargeConst;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
@ -3310,6 +3391,39 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 86:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
GuideReward = new global::Byway.Thrift.Data.GuideReward();
|
||||
await GuideReward.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 87:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FriendConst = new global::Byway.Thrift.Data.FriendConst();
|
||||
await FriendConst.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 88:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
ChargeConst = new global::Byway.Thrift.Data.ChargeConst();
|
||||
await ChargeConst.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
@ -4099,6 +4213,33 @@ namespace Byway.Thrift.Data
|
||||
await ConstantString.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
tmp2.Name = "GuideReward";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 86;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await GuideReward.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((FriendConst != null) && __isset.FriendConst)
|
||||
{
|
||||
tmp2.Name = "FriendConst";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 87;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FriendConst.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((ChargeConst != null) && __isset.ChargeConst)
|
||||
{
|
||||
tmp2.Name = "ChargeConst";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 88;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await ChargeConst.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
@ -4196,7 +4337,10 @@ namespace Byway.Thrift.Data
|
||||
&& ((__isset.WeekTaskReward == other.__isset.WeekTaskReward) && ((!__isset.WeekTaskReward) || (global::System.Object.Equals(WeekTaskReward, other.WeekTaskReward))))
|
||||
&& ((__isset.LevelLauncherData == other.__isset.LevelLauncherData) && ((!__isset.LevelLauncherData) || (global::System.Object.Equals(LevelLauncherData, other.LevelLauncherData))))
|
||||
&& ((__isset.NickNameRandomData == other.__isset.NickNameRandomData) && ((!__isset.NickNameRandomData) || (global::System.Object.Equals(NickNameRandomData, other.NickNameRandomData))))
|
||||
&& ((__isset.ConstantString == other.__isset.ConstantString) && ((!__isset.ConstantString) || (global::System.Object.Equals(ConstantString, other.ConstantString))));
|
||||
&& ((__isset.ConstantString == other.__isset.ConstantString) && ((!__isset.ConstantString) || (global::System.Object.Equals(ConstantString, other.ConstantString))))
|
||||
&& ((__isset.GuideReward == other.__isset.GuideReward) && ((!__isset.GuideReward) || (global::System.Object.Equals(GuideReward, other.GuideReward))))
|
||||
&& ((__isset.FriendConst == other.__isset.FriendConst) && ((!__isset.FriendConst) || (global::System.Object.Equals(FriendConst, other.FriendConst))))
|
||||
&& ((__isset.ChargeConst == other.__isset.ChargeConst) && ((!__isset.ChargeConst) || (global::System.Object.Equals(ChargeConst, other.ChargeConst))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
@ -4542,6 +4686,18 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
hashcode = (hashcode * 397) + ConstantString.GetHashCode();
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
hashcode = (hashcode * 397) + GuideReward.GetHashCode();
|
||||
}
|
||||
if((FriendConst != null) && __isset.FriendConst)
|
||||
{
|
||||
hashcode = (hashcode * 397) + FriendConst.GetHashCode();
|
||||
}
|
||||
if((ChargeConst != null) && __isset.ChargeConst)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ChargeConst.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
@ -5060,6 +5216,24 @@ namespace Byway.Thrift.Data
|
||||
tmp3.Append("ConstantString: ");
|
||||
ConstantString.ToString(tmp3);
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("GuideReward: ");
|
||||
GuideReward.ToString(tmp3);
|
||||
}
|
||||
if((FriendConst != null) && __isset.FriendConst)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("FriendConst: ");
|
||||
FriendConst.ToString(tmp3);
|
||||
}
|
||||
if((ChargeConst != null) && __isset.ChargeConst)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ChargeConst: ");
|
||||
ChargeConst.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
|
||||
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
public static class ChargeConstExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> other)) return false;
|
||||
if (ReferenceEquals(instance, other)) return true;
|
||||
|
||||
return TCollections.Equals(instance, other);
|
||||
}
|
||||
|
||||
|
||||
public static int GetHashCode(this Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem>(source.Count);
|
||||
foreach (var pair in source)
|
||||
tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
|
||||
return tmp15;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ad53fbc3e97e1c4799dac416c22e41f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChargeConst.cs
Normal file
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChargeConst.cs
Normal file
@ -0,0 +1,214 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class ChargeConst : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> _chargeconsts;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem> Chargeconsts
|
||||
{
|
||||
get
|
||||
{
|
||||
return _chargeconsts;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@chargeconsts = true;
|
||||
this._chargeconsts = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @chargeconsts;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeChargeconsts()
|
||||
{
|
||||
return __isset.@chargeconsts;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public ChargeConst()
|
||||
{
|
||||
}
|
||||
|
||||
public ChargeConst DeepCopy()
|
||||
{
|
||||
var tmp5 = new ChargeConst();
|
||||
if((Chargeconsts != null) && __isset.@chargeconsts)
|
||||
{
|
||||
tmp5.Chargeconsts = this.Chargeconsts.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@chargeconsts = this.__isset.@chargeconsts;
|
||||
return tmp5;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.Map)
|
||||
{
|
||||
{
|
||||
var _map6 = await iprot.ReadMapBeginAsync(cancellationToken);
|
||||
Chargeconsts = new Dictionary<int, global::Byway.Thrift.Data.ChargeConstItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.ChargeConstItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.ChargeConstItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Chargeconsts[_key8] = _val9;
|
||||
}
|
||||
await iprot.ReadMapEndAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp10 = new TStruct("ChargeConst");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Chargeconsts != null) && __isset.@chargeconsts)
|
||||
{
|
||||
tmp11.Name = "chargeconsts";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Chargeconsts.Count), cancellationToken);
|
||||
foreach (int _iter12 in Chargeconsts.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Chargeconsts[_iter12].WriteAsync(oprot, cancellationToken);
|
||||
}
|
||||
await oprot.WriteMapEndAsync(cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is ChargeConst other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@chargeconsts == other.__isset.@chargeconsts) && ((!__isset.@chargeconsts) || (TCollections.Equals(Chargeconsts, other.Chargeconsts))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Chargeconsts != null) && __isset.@chargeconsts)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Chargeconsts);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("ChargeConst(");
|
||||
int tmp14 = 0;
|
||||
if((Chargeconsts != null) && __isset.@chargeconsts)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Chargeconsts: ");
|
||||
Chargeconsts.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e8af6e1e8969714c998b6c425fc7ce6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChargeConstItem.cs
Normal file
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChargeConstItem.cs
Normal file
@ -0,0 +1,309 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class ChargeConstItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _Key;
|
||||
private string _Value;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Key
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Key;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Key = true;
|
||||
this._Key = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@Value = true;
|
||||
this._Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Key;
|
||||
[DataMember]
|
||||
public bool @Value;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeKey()
|
||||
{
|
||||
return __isset.Key;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeValue()
|
||||
{
|
||||
return __isset.@Value;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public ChargeConstItem()
|
||||
{
|
||||
}
|
||||
|
||||
public ChargeConstItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new ChargeConstItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
tmp0.Key = this.Key;
|
||||
}
|
||||
tmp0.__isset.Key = this.__isset.Key;
|
||||
if((Value != null) && __isset.@Value)
|
||||
{
|
||||
tmp0.Value = this.Value;
|
||||
}
|
||||
tmp0.__isset.@Value = this.__isset.@Value;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Id = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Key = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Value = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp1 = new TStruct("ChargeConstItem");
|
||||
await oprot.WriteStructBeginAsync(tmp1, cancellationToken);
|
||||
var tmp2 = new TField();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp2.Name = "Id";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Id, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
tmp2.Name = "Key";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Key, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Value != null) && __isset.@Value)
|
||||
{
|
||||
tmp2.Name = "Value";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Value, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is ChargeConstItem other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id))))
|
||||
&& ((__isset.Key == other.__isset.Key) && ((!__isset.Key) || (global::System.Object.Equals(Key, other.Key))))
|
||||
&& ((__isset.@Value == other.__isset.@Value) && ((!__isset.@Value) || (global::System.Object.Equals(Value, other.Value))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Key.GetHashCode();
|
||||
}
|
||||
if((Value != null) && __isset.@Value)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Value.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("ChargeConstItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Key: ");
|
||||
Key.ToString(tmp3);
|
||||
}
|
||||
if((Value != null) && __isset.@Value)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Value: ");
|
||||
Value.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b6e0351a664d474da893662ee186c90
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
public static class FriendConstExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> other)) return false;
|
||||
if (ReferenceEquals(instance, other)) return true;
|
||||
|
||||
return TCollections.Equals(instance, other);
|
||||
}
|
||||
|
||||
|
||||
public static int GetHashCode(this Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.FriendConstItem>(source.Count);
|
||||
foreach (var pair in source)
|
||||
tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
|
||||
return tmp15;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac1dfbe90a8ab0b498522f25c770f16d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/FriendConst.cs
Normal file
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/FriendConst.cs
Normal file
@ -0,0 +1,214 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class FriendConst : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> _friendconsts;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.FriendConstItem> Friendconsts
|
||||
{
|
||||
get
|
||||
{
|
||||
return _friendconsts;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@friendconsts = true;
|
||||
this._friendconsts = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @friendconsts;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeFriendconsts()
|
||||
{
|
||||
return __isset.@friendconsts;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FriendConst()
|
||||
{
|
||||
}
|
||||
|
||||
public FriendConst DeepCopy()
|
||||
{
|
||||
var tmp5 = new FriendConst();
|
||||
if((Friendconsts != null) && __isset.@friendconsts)
|
||||
{
|
||||
tmp5.Friendconsts = this.Friendconsts.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@friendconsts = this.__isset.@friendconsts;
|
||||
return tmp5;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.Map)
|
||||
{
|
||||
{
|
||||
var _map6 = await iprot.ReadMapBeginAsync(cancellationToken);
|
||||
Friendconsts = new Dictionary<int, global::Byway.Thrift.Data.FriendConstItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.FriendConstItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.FriendConstItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Friendconsts[_key8] = _val9;
|
||||
}
|
||||
await iprot.ReadMapEndAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp10 = new TStruct("FriendConst");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Friendconsts != null) && __isset.@friendconsts)
|
||||
{
|
||||
tmp11.Name = "friendconsts";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Friendconsts.Count), cancellationToken);
|
||||
foreach (int _iter12 in Friendconsts.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Friendconsts[_iter12].WriteAsync(oprot, cancellationToken);
|
||||
}
|
||||
await oprot.WriteMapEndAsync(cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is FriendConst other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@friendconsts == other.__isset.@friendconsts) && ((!__isset.@friendconsts) || (TCollections.Equals(Friendconsts, other.Friendconsts))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Friendconsts != null) && __isset.@friendconsts)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Friendconsts);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("FriendConst(");
|
||||
int tmp14 = 0;
|
||||
if((Friendconsts != null) && __isset.@friendconsts)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Friendconsts: ");
|
||||
Friendconsts.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ffbd67467f82044bbe791fb822d30ff
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
366
Scripts/thrift/gen-netstd/Byway/Thrift/Data/FriendConstItem.cs
Normal file
366
Scripts/thrift/gen-netstd/Byway/Thrift/Data/FriendConstItem.cs
Normal file
@ -0,0 +1,366 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class FriendConstItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _Key;
|
||||
private int _Value;
|
||||
private string _ClientShow;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Key
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Key;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Key = true;
|
||||
this._Key = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@Value = true;
|
||||
this._Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string ClientShow
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ClientShow;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ClientShow = true;
|
||||
this._ClientShow = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Key;
|
||||
[DataMember]
|
||||
public bool @Value;
|
||||
[DataMember]
|
||||
public bool ClientShow;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeKey()
|
||||
{
|
||||
return __isset.Key;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeValue()
|
||||
{
|
||||
return __isset.@Value;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeClientShow()
|
||||
{
|
||||
return __isset.ClientShow;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FriendConstItem()
|
||||
{
|
||||
}
|
||||
|
||||
public FriendConstItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new FriendConstItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
tmp0.Key = this.Key;
|
||||
}
|
||||
tmp0.__isset.Key = this.__isset.Key;
|
||||
if(__isset.@Value)
|
||||
{
|
||||
tmp0.Value = this.Value;
|
||||
}
|
||||
tmp0.__isset.@Value = this.__isset.@Value;
|
||||
if((ClientShow != null) && __isset.ClientShow)
|
||||
{
|
||||
tmp0.ClientShow = this.ClientShow;
|
||||
}
|
||||
tmp0.__isset.ClientShow = this.__isset.ClientShow;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Id = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Key = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Value = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
ClientShow = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp1 = new TStruct("FriendConstItem");
|
||||
await oprot.WriteStructBeginAsync(tmp1, cancellationToken);
|
||||
var tmp2 = new TField();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp2.Name = "Id";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Id, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
tmp2.Name = "Key";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Key, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.@Value)
|
||||
{
|
||||
tmp2.Name = "Value";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Value, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((ClientShow != null) && __isset.ClientShow)
|
||||
{
|
||||
tmp2.Name = "ClientShow";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 4;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(ClientShow, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is FriendConstItem other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id))))
|
||||
&& ((__isset.Key == other.__isset.Key) && ((!__isset.Key) || (global::System.Object.Equals(Key, other.Key))))
|
||||
&& ((__isset.@Value == other.__isset.@Value) && ((!__isset.@Value) || (global::System.Object.Equals(Value, other.Value))))
|
||||
&& ((__isset.ClientShow == other.__isset.ClientShow) && ((!__isset.ClientShow) || (global::System.Object.Equals(ClientShow, other.ClientShow))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Key.GetHashCode();
|
||||
}
|
||||
if(__isset.@Value)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Value.GetHashCode();
|
||||
}
|
||||
if((ClientShow != null) && __isset.ClientShow)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ClientShow.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("FriendConstItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((Key != null) && __isset.Key)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Key: ");
|
||||
Key.ToString(tmp3);
|
||||
}
|
||||
if(__isset.@Value)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Value: ");
|
||||
Value.ToString(tmp3);
|
||||
}
|
||||
if((ClientShow != null) && __isset.ClientShow)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ClientShow: ");
|
||||
ClientShow.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69791a51f01040a4e90585d747f471a5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
public static class GuideRewardExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> other)) return false;
|
||||
if (ReferenceEquals(instance, other)) return true;
|
||||
|
||||
return TCollections.Equals(instance, other);
|
||||
}
|
||||
|
||||
|
||||
public static int GetHashCode(this Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem>(source.Count);
|
||||
foreach (var pair in source)
|
||||
tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
|
||||
return tmp15;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d10e27f2efed994e9f32129e3c9fb8a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideReward.cs
Normal file
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideReward.cs
Normal file
@ -0,0 +1,214 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class GuideReward : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> _guiderewards;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem> Guiderewards
|
||||
{
|
||||
get
|
||||
{
|
||||
return _guiderewards;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@guiderewards = true;
|
||||
this._guiderewards = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @guiderewards;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeGuiderewards()
|
||||
{
|
||||
return __isset.@guiderewards;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public GuideReward()
|
||||
{
|
||||
}
|
||||
|
||||
public GuideReward DeepCopy()
|
||||
{
|
||||
var tmp5 = new GuideReward();
|
||||
if((Guiderewards != null) && __isset.@guiderewards)
|
||||
{
|
||||
tmp5.Guiderewards = this.Guiderewards.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@guiderewards = this.__isset.@guiderewards;
|
||||
return tmp5;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.Map)
|
||||
{
|
||||
{
|
||||
var _map6 = await iprot.ReadMapBeginAsync(cancellationToken);
|
||||
Guiderewards = new Dictionary<int, global::Byway.Thrift.Data.GuideRewardItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.GuideRewardItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.GuideRewardItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Guiderewards[_key8] = _val9;
|
||||
}
|
||||
await iprot.ReadMapEndAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp10 = new TStruct("GuideReward");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Guiderewards != null) && __isset.@guiderewards)
|
||||
{
|
||||
tmp11.Name = "guiderewards";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Guiderewards.Count), cancellationToken);
|
||||
foreach (int _iter12 in Guiderewards.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Guiderewards[_iter12].WriteAsync(oprot, cancellationToken);
|
||||
}
|
||||
await oprot.WriteMapEndAsync(cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is GuideReward other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@guiderewards == other.__isset.@guiderewards) && ((!__isset.@guiderewards) || (TCollections.Equals(Guiderewards, other.Guiderewards))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Guiderewards != null) && __isset.@guiderewards)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Guiderewards);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("GuideReward(");
|
||||
int tmp14 = 0;
|
||||
if((Guiderewards != null) && __isset.@guiderewards)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Guiderewards: ");
|
||||
Guiderewards.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef4017016bfd79447a938635bad6b085
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideRewardItem.cs
Normal file
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideRewardItem.cs
Normal file
@ -0,0 +1,309 @@
|
||||
/**
|
||||
* <auto-generated>
|
||||
* Autogenerated by Thrift Compiler (0.22.0)
|
||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||
* </auto-generated>
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Thrift;
|
||||
using Thrift.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
using Thrift.Protocol;
|
||||
using Thrift.Protocol.Entities;
|
||||
using Thrift.Protocol.Utilities;
|
||||
using Thrift.Transport;
|
||||
using Thrift.Transport.Client;
|
||||
|
||||
|
||||
#pragma warning disable IDE0079 // remove unnecessary pragmas
|
||||
#pragma warning disable IDE0017 // object init can be simplified
|
||||
#pragma warning disable IDE0028 // collection init can be simplified
|
||||
#pragma warning disable IDE0305 // collection init can be simplified
|
||||
#pragma warning disable IDE0034 // simplify default expression
|
||||
#pragma warning disable IDE0066 // use switch expression
|
||||
#pragma warning disable IDE0090 // simplify new expression
|
||||
#pragma warning disable IDE0290 // use primary CTOR
|
||||
#pragma warning disable IDE1006 // parts of the code use IDL spelling
|
||||
#pragma warning disable CA1822 // empty DeepCopy() methods still non-static
|
||||
#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions
|
||||
|
||||
namespace Byway.Thrift.Data
|
||||
{
|
||||
|
||||
[DataContract(Namespace="")]
|
||||
public partial class GuideRewardItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _Items;
|
||||
private int _Num;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Items
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Items;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Items = true;
|
||||
this._Items = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Num
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Num;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Num = true;
|
||||
this._Num = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Items;
|
||||
[DataMember]
|
||||
public bool Num;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeItems()
|
||||
{
|
||||
return __isset.Items;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeNum()
|
||||
{
|
||||
return __isset.Num;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public GuideRewardItem()
|
||||
{
|
||||
}
|
||||
|
||||
public GuideRewardItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new GuideRewardItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
tmp0.Items = this.Items;
|
||||
}
|
||||
tmp0.__isset.Items = this.__isset.Items;
|
||||
if(__isset.Num)
|
||||
{
|
||||
tmp0.Num = this.Num;
|
||||
}
|
||||
tmp0.__isset.Num = this.__isset.Num;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
|
||||
{
|
||||
iprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
TField field;
|
||||
await iprot.ReadStructBeginAsync(cancellationToken);
|
||||
while (true)
|
||||
{
|
||||
field = await iprot.ReadFieldBeginAsync(cancellationToken);
|
||||
if (field.Type == TType.Stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (field.ID)
|
||||
{
|
||||
case 1:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Id = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Items = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Num = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
}
|
||||
|
||||
await iprot.ReadFieldEndAsync(cancellationToken);
|
||||
}
|
||||
|
||||
await iprot.ReadStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
iprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
|
||||
{
|
||||
oprot.IncrementRecursionDepth();
|
||||
try
|
||||
{
|
||||
var tmp1 = new TStruct("GuideRewardItem");
|
||||
await oprot.WriteStructBeginAsync(tmp1, cancellationToken);
|
||||
var tmp2 = new TField();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp2.Name = "Id";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Id, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
tmp2.Name = "Items";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Items, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.Num)
|
||||
{
|
||||
tmp2.Name = "Num";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Num, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
oprot.DecrementRecursionDepth();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object that)
|
||||
{
|
||||
if (!(that is GuideRewardItem other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id))))
|
||||
&& ((__isset.Items == other.__isset.Items) && ((!__isset.Items) || (global::System.Object.Equals(Items, other.Items))))
|
||||
&& ((__isset.Num == other.__isset.Num) && ((!__isset.Num) || (global::System.Object.Equals(Num, other.Num))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Items.GetHashCode();
|
||||
}
|
||||
if(__isset.Num)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Num.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("GuideRewardItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Items: ");
|
||||
Items.ToString(tmp3);
|
||||
}
|
||||
if(__isset.Num)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Num: ");
|
||||
Num.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94f30f151b2b5bd44aba8e2603ba78dc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user