新增int常量表 客户端添加邀请好友数值;
This commit is contained in:
parent
36f955e8cf
commit
0509e5a759
Binary file not shown.
118
Scripts/DR_Generated/DRConstantInt.cs
Normal file
118
Scripts/DR_Generated/DRConstantInt.cs
Normal file
@ -0,0 +1,118 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: ConstantInt
|
||||
// 数据类: ConstantIntItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// ConstantInt 数据行
|
||||
/// </summary>
|
||||
public class DRConstantInt : DataRowBase
|
||||
{
|
||||
private ConstantIntItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ConstantKey
|
||||
/// </summary>
|
||||
public string ConstantKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.ConstantKey ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ConstantValue
|
||||
/// </summary>
|
||||
public int ConstantValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.ConstantValue ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, ConstantInt config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<ConstantInt>();
|
||||
}
|
||||
|
||||
if (config?.Constantints != null)
|
||||
{
|
||||
config.Constantints.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(ConstantIntItem 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, ConstantIntItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as ConstantInt;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRConstantInt.cs.meta
Normal file
11
Scripts/DR_Generated/DRConstantInt.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aaeeb1bc79fb99349a41702dcc31e443
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
118
Scripts/DR_Generated/DRFriendInviteRewardData.cs
Normal file
118
Scripts/DR_Generated/DRFriendInviteRewardData.cs
Normal file
@ -0,0 +1,118 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: FriendInviteRewardData
|
||||
// 数据类: FriendInviteRewardDataItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// FriendInviteRewardData 数据行
|
||||
/// </summary>
|
||||
public class DRFriendInviteRewardData : DataRowBase
|
||||
{
|
||||
private FriendInviteRewardDataItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Need
|
||||
/// </summary>
|
||||
public int Need
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Need ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Items
|
||||
/// </summary>
|
||||
public string Items
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Items ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, FriendInviteRewardData config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<FriendInviteRewardData>();
|
||||
}
|
||||
|
||||
if (config?.Friendinviterewarddatas != null)
|
||||
{
|
||||
config.Friendinviterewarddatas.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(FriendInviteRewardDataItem 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, FriendInviteRewardDataItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as FriendInviteRewardData;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRFriendInviteRewardData.cs.meta
Normal file
11
Scripts/DR_Generated/DRFriendInviteRewardData.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cc60c027d3dd6c4493ed60b069e2f0e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -126,6 +126,7 @@ 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.ConstantInt _ConstantInt;
|
||||
private global::Byway.Thrift.Data.GuideReward _GuideReward;
|
||||
private global::Byway.Thrift.Data.FriendConst _FriendConst;
|
||||
private global::Byway.Thrift.Data.ChargeConst _ChargeConst;
|
||||
@ -133,6 +134,7 @@ namespace Byway.Thrift.Data
|
||||
private global::Byway.Thrift.Data.FurShop _FurShop;
|
||||
private global::Byway.Thrift.Data.FakePlayroomDataMould _FakePlayroomDataMould;
|
||||
private global::Byway.Thrift.Data.LimitedTimeEventData _LimitedTimeEventData;
|
||||
private global::Byway.Thrift.Data.FriendInviteRewardData _FriendInviteRewardData;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.AdGiftData AdGiftData
|
||||
@ -1338,6 +1340,20 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.ConstantInt ConstantInt
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ConstantInt;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ConstantInt = true;
|
||||
this._ConstantInt = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.GuideReward GuideReward
|
||||
{
|
||||
@ -1436,6 +1452,20 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.FriendInviteRewardData FriendInviteRewardData
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FriendInviteRewardData;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.FriendInviteRewardData = true;
|
||||
this._FriendInviteRewardData = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
@ -1615,6 +1645,8 @@ namespace Byway.Thrift.Data
|
||||
[DataMember]
|
||||
public bool ConstantString;
|
||||
[DataMember]
|
||||
public bool ConstantInt;
|
||||
[DataMember]
|
||||
public bool GuideReward;
|
||||
[DataMember]
|
||||
public bool FriendConst;
|
||||
@ -1628,6 +1660,8 @@ namespace Byway.Thrift.Data
|
||||
public bool FakePlayroomDataMould;
|
||||
[DataMember]
|
||||
public bool LimitedTimeEventData;
|
||||
[DataMember]
|
||||
public bool FriendInviteRewardData;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
@ -2062,6 +2096,11 @@ namespace Byway.Thrift.Data
|
||||
return __isset.ConstantString;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeConstantInt()
|
||||
{
|
||||
return __isset.ConstantInt;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeGuideReward()
|
||||
{
|
||||
return __isset.GuideReward;
|
||||
@ -2097,6 +2136,11 @@ namespace Byway.Thrift.Data
|
||||
return __isset.LimitedTimeEventData;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeFriendInviteRewardData()
|
||||
{
|
||||
return __isset.FriendInviteRewardData;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public AllConfigs()
|
||||
@ -2536,6 +2580,11 @@ namespace Byway.Thrift.Data
|
||||
tmp0.ConstantString = (global::Byway.Thrift.Data.ConstantString)this.ConstantString.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.ConstantString = this.__isset.ConstantString;
|
||||
if((ConstantInt != null) && __isset.ConstantInt)
|
||||
{
|
||||
tmp0.ConstantInt = (global::Byway.Thrift.Data.ConstantInt)this.ConstantInt.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.ConstantInt = this.__isset.ConstantInt;
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
tmp0.GuideReward = (global::Byway.Thrift.Data.GuideReward)this.GuideReward.DeepCopy();
|
||||
@ -2571,6 +2620,11 @@ namespace Byway.Thrift.Data
|
||||
tmp0.LimitedTimeEventData = (global::Byway.Thrift.Data.LimitedTimeEventData)this.LimitedTimeEventData.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.LimitedTimeEventData = this.__isset.LimitedTimeEventData;
|
||||
if((FriendInviteRewardData != null) && __isset.FriendInviteRewardData)
|
||||
{
|
||||
tmp0.FriendInviteRewardData = (global::Byway.Thrift.Data.FriendInviteRewardData)this.FriendInviteRewardData.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.FriendInviteRewardData = this.__isset.FriendInviteRewardData;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
@ -3538,6 +3592,17 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
break;
|
||||
case 87:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
ConstantInt = new global::Byway.Thrift.Data.ConstantInt();
|
||||
await ConstantInt.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 88:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
GuideReward = new global::Byway.Thrift.Data.GuideReward();
|
||||
@ -3548,7 +3613,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 88:
|
||||
case 89:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FriendConst = new global::Byway.Thrift.Data.FriendConst();
|
||||
@ -3559,7 +3624,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 89:
|
||||
case 90:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
ChargeConst = new global::Byway.Thrift.Data.ChargeConst();
|
||||
@ -3570,7 +3635,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 90:
|
||||
case 91:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
AmbientData = new global::Byway.Thrift.Data.AmbientData();
|
||||
@ -3581,7 +3646,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 91:
|
||||
case 92:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FurShop = new global::Byway.Thrift.Data.FurShop();
|
||||
@ -3592,7 +3657,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 92:
|
||||
case 93:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FakePlayroomDataMould = new global::Byway.Thrift.Data.FakePlayroomDataMould();
|
||||
@ -3603,7 +3668,7 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 93:
|
||||
case 94:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
LimitedTimeEventData = new global::Byway.Thrift.Data.LimitedTimeEventData();
|
||||
@ -3614,6 +3679,17 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 95:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FriendInviteRewardData = new global::Byway.Thrift.Data.FriendInviteRewardData();
|
||||
await FriendInviteRewardData.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
@ -4412,11 +4488,20 @@ namespace Byway.Thrift.Data
|
||||
await ConstantString.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((ConstantInt != null) && __isset.ConstantInt)
|
||||
{
|
||||
tmp2.Name = "ConstantInt";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 87;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await ConstantInt.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
tmp2.Name = "GuideReward";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 87;
|
||||
tmp2.ID = 88;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await GuideReward.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4425,7 +4510,7 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "FriendConst";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 88;
|
||||
tmp2.ID = 89;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FriendConst.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4434,7 +4519,7 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "ChargeConst";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 89;
|
||||
tmp2.ID = 90;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await ChargeConst.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4443,7 +4528,7 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "AmbientData";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 90;
|
||||
tmp2.ID = 91;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await AmbientData.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4452,7 +4537,7 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "FurShop";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 91;
|
||||
tmp2.ID = 92;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FurShop.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4461,7 +4546,7 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "FakePlayroomDataMould";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 92;
|
||||
tmp2.ID = 93;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FakePlayroomDataMould.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
@ -4470,11 +4555,20 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
tmp2.Name = "LimitedTimeEventData";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 93;
|
||||
tmp2.ID = 94;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await LimitedTimeEventData.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((FriendInviteRewardData != null) && __isset.FriendInviteRewardData)
|
||||
{
|
||||
tmp2.Name = "FriendInviteRewardData";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 95;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FriendInviteRewardData.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
@ -4574,13 +4668,15 @@ namespace Byway.Thrift.Data
|
||||
&& ((__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.ConstantInt == other.__isset.ConstantInt) && ((!__isset.ConstantInt) || (global::System.Object.Equals(ConstantInt, other.ConstantInt))))
|
||||
&& ((__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))))
|
||||
&& ((__isset.AmbientData == other.__isset.AmbientData) && ((!__isset.AmbientData) || (global::System.Object.Equals(AmbientData, other.AmbientData))))
|
||||
&& ((__isset.FurShop == other.__isset.FurShop) && ((!__isset.FurShop) || (global::System.Object.Equals(FurShop, other.FurShop))))
|
||||
&& ((__isset.FakePlayroomDataMould == other.__isset.FakePlayroomDataMould) && ((!__isset.FakePlayroomDataMould) || (global::System.Object.Equals(FakePlayroomDataMould, other.FakePlayroomDataMould))))
|
||||
&& ((__isset.LimitedTimeEventData == other.__isset.LimitedTimeEventData) && ((!__isset.LimitedTimeEventData) || (global::System.Object.Equals(LimitedTimeEventData, other.LimitedTimeEventData))));
|
||||
&& ((__isset.LimitedTimeEventData == other.__isset.LimitedTimeEventData) && ((!__isset.LimitedTimeEventData) || (global::System.Object.Equals(LimitedTimeEventData, other.LimitedTimeEventData))))
|
||||
&& ((__isset.FriendInviteRewardData == other.__isset.FriendInviteRewardData) && ((!__isset.FriendInviteRewardData) || (global::System.Object.Equals(FriendInviteRewardData, other.FriendInviteRewardData))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
@ -4930,6 +5026,10 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
hashcode = (hashcode * 397) + ConstantString.GetHashCode();
|
||||
}
|
||||
if((ConstantInt != null) && __isset.ConstantInt)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ConstantInt.GetHashCode();
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
hashcode = (hashcode * 397) + GuideReward.GetHashCode();
|
||||
@ -4958,6 +5058,10 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
hashcode = (hashcode * 397) + LimitedTimeEventData.GetHashCode();
|
||||
}
|
||||
if((FriendInviteRewardData != null) && __isset.FriendInviteRewardData)
|
||||
{
|
||||
hashcode = (hashcode * 397) + FriendInviteRewardData.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
@ -5482,6 +5586,12 @@ namespace Byway.Thrift.Data
|
||||
tmp3.Append("ConstantString: ");
|
||||
ConstantString.ToString(tmp3);
|
||||
}
|
||||
if((ConstantInt != null) && __isset.ConstantInt)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ConstantInt: ");
|
||||
ConstantInt.ToString(tmp3);
|
||||
}
|
||||
if((GuideReward != null) && __isset.GuideReward)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
@ -5524,6 +5634,12 @@ namespace Byway.Thrift.Data
|
||||
tmp3.Append("LimitedTimeEventData: ");
|
||||
LimitedTimeEventData.ToString(tmp3);
|
||||
}
|
||||
if((FriendInviteRewardData != null) && __isset.FriendInviteRewardData)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("FriendInviteRewardData: ");
|
||||
FriendInviteRewardData.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 ConstantIntExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> 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.ConstantIntItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem>(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: c023900d609c4d5419fe9fc5c722b423
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ConstantInt.cs
Normal file
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ConstantInt.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 ConstantInt : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> _constantints;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem> Constantints
|
||||
{
|
||||
get
|
||||
{
|
||||
return _constantints;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@constantints = true;
|
||||
this._constantints = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @constantints;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeConstantints()
|
||||
{
|
||||
return __isset.@constantints;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public ConstantInt()
|
||||
{
|
||||
}
|
||||
|
||||
public ConstantInt DeepCopy()
|
||||
{
|
||||
var tmp5 = new ConstantInt();
|
||||
if((Constantints != null) && __isset.@constantints)
|
||||
{
|
||||
tmp5.Constantints = this.Constantints.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@constantints = this.__isset.@constantints;
|
||||
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);
|
||||
Constantints = new Dictionary<int, global::Byway.Thrift.Data.ConstantIntItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.ConstantIntItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.ConstantIntItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Constantints[_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("ConstantInt");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Constantints != null) && __isset.@constantints)
|
||||
{
|
||||
tmp11.Name = "constantints";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Constantints.Count), cancellationToken);
|
||||
foreach (int _iter12 in Constantints.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Constantints[_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 ConstantInt other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@constantints == other.__isset.@constantints) && ((!__isset.@constantints) || (TCollections.Equals(Constantints, other.Constantints))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Constantints != null) && __isset.@constantints)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Constantints);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("ConstantInt(");
|
||||
int tmp14 = 0;
|
||||
if((Constantints != null) && __isset.@constantints)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Constantints: ");
|
||||
Constantints.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbf38bbf1bfd2a046a8190e4e881f14f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ConstantIntItem.cs
Normal file
309
Scripts/thrift/gen-netstd/Byway/Thrift/Data/ConstantIntItem.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 ConstantIntItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _ConstantKey;
|
||||
private int _ConstantValue;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string ConstantKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ConstantKey;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ConstantKey = true;
|
||||
this._ConstantKey = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int ConstantValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ConstantValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ConstantValue = true;
|
||||
this._ConstantValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool ConstantKey;
|
||||
[DataMember]
|
||||
public bool ConstantValue;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeConstantKey()
|
||||
{
|
||||
return __isset.ConstantKey;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeConstantValue()
|
||||
{
|
||||
return __isset.ConstantValue;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public ConstantIntItem()
|
||||
{
|
||||
}
|
||||
|
||||
public ConstantIntItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new ConstantIntItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((ConstantKey != null) && __isset.ConstantKey)
|
||||
{
|
||||
tmp0.ConstantKey = this.ConstantKey;
|
||||
}
|
||||
tmp0.__isset.ConstantKey = this.__isset.ConstantKey;
|
||||
if(__isset.ConstantValue)
|
||||
{
|
||||
tmp0.ConstantValue = this.ConstantValue;
|
||||
}
|
||||
tmp0.__isset.ConstantValue = this.__isset.ConstantValue;
|
||||
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)
|
||||
{
|
||||
ConstantKey = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
ConstantValue = 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("ConstantIntItem");
|
||||
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((ConstantKey != null) && __isset.ConstantKey)
|
||||
{
|
||||
tmp2.Name = "ConstantKey";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(ConstantKey, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.ConstantValue)
|
||||
{
|
||||
tmp2.Name = "ConstantValue";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(ConstantValue, 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 ConstantIntItem 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.ConstantKey == other.__isset.ConstantKey) && ((!__isset.ConstantKey) || (global::System.Object.Equals(ConstantKey, other.ConstantKey))))
|
||||
&& ((__isset.ConstantValue == other.__isset.ConstantValue) && ((!__isset.ConstantValue) || (global::System.Object.Equals(ConstantValue, other.ConstantValue))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((ConstantKey != null) && __isset.ConstantKey)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ConstantKey.GetHashCode();
|
||||
}
|
||||
if(__isset.ConstantValue)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ConstantValue.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("ConstantIntItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((ConstantKey != null) && __isset.ConstantKey)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ConstantKey: ");
|
||||
ConstantKey.ToString(tmp3);
|
||||
}
|
||||
if(__isset.ConstantValue)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ConstantValue: ");
|
||||
ConstantValue.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 70c1c065595d55445986d81ca8d959e4
|
||||
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 FriendInviteRewardDataExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> 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.FriendInviteRewardDataItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem>(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: 75fcf6c7b81d46a43b8040874abdc172
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -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 FriendInviteRewardData : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> _friendinviterewarddatas;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem> Friendinviterewarddatas
|
||||
{
|
||||
get
|
||||
{
|
||||
return _friendinviterewarddatas;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@friendinviterewarddatas = true;
|
||||
this._friendinviterewarddatas = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @friendinviterewarddatas;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeFriendinviterewarddatas()
|
||||
{
|
||||
return __isset.@friendinviterewarddatas;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FriendInviteRewardData()
|
||||
{
|
||||
}
|
||||
|
||||
public FriendInviteRewardData DeepCopy()
|
||||
{
|
||||
var tmp5 = new FriendInviteRewardData();
|
||||
if((Friendinviterewarddatas != null) && __isset.@friendinviterewarddatas)
|
||||
{
|
||||
tmp5.Friendinviterewarddatas = this.Friendinviterewarddatas.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@friendinviterewarddatas = this.__isset.@friendinviterewarddatas;
|
||||
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);
|
||||
Friendinviterewarddatas = new Dictionary<int, global::Byway.Thrift.Data.FriendInviteRewardDataItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.FriendInviteRewardDataItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.FriendInviteRewardDataItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Friendinviterewarddatas[_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("FriendInviteRewardData");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Friendinviterewarddatas != null) && __isset.@friendinviterewarddatas)
|
||||
{
|
||||
tmp11.Name = "friendinviterewarddatas";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Friendinviterewarddatas.Count), cancellationToken);
|
||||
foreach (int _iter12 in Friendinviterewarddatas.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Friendinviterewarddatas[_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 FriendInviteRewardData other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@friendinviterewarddatas == other.__isset.@friendinviterewarddatas) && ((!__isset.@friendinviterewarddatas) || (TCollections.Equals(Friendinviterewarddatas, other.Friendinviterewarddatas))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Friendinviterewarddatas != null) && __isset.@friendinviterewarddatas)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Friendinviterewarddatas);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("FriendInviteRewardData(");
|
||||
int tmp14 = 0;
|
||||
if((Friendinviterewarddatas != null) && __isset.@friendinviterewarddatas)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Friendinviterewarddatas: ");
|
||||
Friendinviterewarddatas.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 674ecb219ee0c2d4a8247f8503767eab
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -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 FriendInviteRewardDataItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private int _Need;
|
||||
private string _Items;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Need
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Need;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Need = true;
|
||||
this._Need = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Items
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Items;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Items = true;
|
||||
this._Items = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Need;
|
||||
[DataMember]
|
||||
public bool Items;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeNeed()
|
||||
{
|
||||
return __isset.Need;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeItems()
|
||||
{
|
||||
return __isset.Items;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FriendInviteRewardDataItem()
|
||||
{
|
||||
}
|
||||
|
||||
public FriendInviteRewardDataItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new FriendInviteRewardDataItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if(__isset.Need)
|
||||
{
|
||||
tmp0.Need = this.Need;
|
||||
}
|
||||
tmp0.__isset.Need = this.__isset.Need;
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
tmp0.Items = this.Items;
|
||||
}
|
||||
tmp0.__isset.Items = this.__isset.Items;
|
||||
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.I32)
|
||||
{
|
||||
Need = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Items = 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("FriendInviteRewardDataItem");
|
||||
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(__isset.Need)
|
||||
{
|
||||
tmp2.Name = "Need";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Need, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
tmp2.Name = "Items";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Items, 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 FriendInviteRewardDataItem 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.Need == other.__isset.Need) && ((!__isset.Need) || (global::System.Object.Equals(Need, other.Need))))
|
||||
&& ((__isset.Items == other.__isset.Items) && ((!__isset.Items) || (global::System.Object.Equals(Items, other.Items))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if(__isset.Need)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Need.GetHashCode();
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Items.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("FriendInviteRewardDataItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if(__isset.Need)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Need: ");
|
||||
Need.ToString(tmp3);
|
||||
}
|
||||
if((Items != null) && __isset.Items)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Items: ");
|
||||
Items.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97565740634233c4a9652544f96d125b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user