代码修改后的版本,全部提交
This commit is contained in:
99
TencentCloud/Tbaas/V20180416/Models/ApplyUserCertRequest.cs
Normal file
99
TencentCloud/Tbaas/V20180416/Models/ApplyUserCertRequest.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ApplyUserCertRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:cert_mng
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:cert_apply_for_user
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请证书的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户证书标识,用于标识用户证书,要求由纯小写字母组成,长度小于10
|
||||
/// </summary>
|
||||
[JsonProperty("UserIdentity")]
|
||||
public string UserIdentity{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书申请实体,使用腾讯云账号实名认证的名称
|
||||
/// </summary>
|
||||
[JsonProperty("Applicant")]
|
||||
public string Applicant{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证件号码。如果腾讯云账号对应的实名认证类型为企业认证,填入“0”;如果腾讯云账号对应的实名认证类型为个人认证,填入个人身份证号码
|
||||
/// </summary>
|
||||
[JsonProperty("IdentityNum")]
|
||||
public string IdentityNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// csr p10证书文件。需要用户根据文档生成证书的CSR文件
|
||||
/// </summary>
|
||||
[JsonProperty("CsrData")]
|
||||
public string CsrData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书备注信息
|
||||
/// </summary>
|
||||
[JsonProperty("Notes")]
|
||||
public string Notes{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "UserIdentity", this.UserIdentity);
|
||||
this.SetParamSimple(map, prefix + "Applicant", this.Applicant);
|
||||
this.SetParamSimple(map, prefix + "IdentityNum", this.IdentityNum);
|
||||
this.SetParamSimple(map, prefix + "CsrData", this.CsrData);
|
||||
this.SetParamSimple(map, prefix + "Notes", this.Notes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tbaas/V20180416/Models/ApplyUserCertResponse.cs
Normal file
57
TencentCloud/Tbaas/V20180416/Models/ApplyUserCertResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ApplyUserCertResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 证书ID
|
||||
/// </summary>
|
||||
[JsonProperty("CertId")]
|
||||
public ulong? CertId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书DN
|
||||
/// </summary>
|
||||
[JsonProperty("CertDn")]
|
||||
public string CertDn{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "CertId", this.CertId);
|
||||
this.SetParamSimple(map, prefix + "CertDn", this.CertDn);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
92
TencentCloud/Tbaas/V20180416/Models/BcosBlockObj.cs
Normal file
92
TencentCloud/Tbaas/V20180416/Models/BcosBlockObj.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BcosBlockObj : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 区块哈希
|
||||
/// </summary>
|
||||
[JsonProperty("BlockHash")]
|
||||
public string BlockHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块高度
|
||||
/// </summary>
|
||||
[JsonProperty("BlockNumber")]
|
||||
public long? BlockNumber{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块时间戳
|
||||
/// </summary>
|
||||
[JsonProperty("BlockTimestamp")]
|
||||
public string BlockTimestamp{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包节点ID
|
||||
/// </summary>
|
||||
[JsonProperty("Sealer")]
|
||||
public string Sealer{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包节点索引
|
||||
/// </summary>
|
||||
[JsonProperty("SealerIndex")]
|
||||
public long? SealerIndex{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录保存时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易数量
|
||||
/// </summary>
|
||||
[JsonProperty("TransCount")]
|
||||
public long? TransCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录修改时间
|
||||
/// </summary>
|
||||
[JsonProperty("ModifyTime")]
|
||||
public string ModifyTime{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BlockHash", this.BlockHash);
|
||||
this.SetParamSimple(map, prefix + "BlockNumber", this.BlockNumber);
|
||||
this.SetParamSimple(map, prefix + "BlockTimestamp", this.BlockTimestamp);
|
||||
this.SetParamSimple(map, prefix + "Sealer", this.Sealer);
|
||||
this.SetParamSimple(map, prefix + "SealerIndex", this.SealerIndex);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "TransCount", this.TransCount);
|
||||
this.SetParamSimple(map, prefix + "ModifyTime", this.ModifyTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
85
TencentCloud/Tbaas/V20180416/Models/BcosTransInfo.cs
Normal file
85
TencentCloud/Tbaas/V20180416/Models/BcosTransInfo.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BcosTransInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 所属区块高度
|
||||
/// </summary>
|
||||
[JsonProperty("BlockNumber")]
|
||||
public long? BlockNumber{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块时间戳
|
||||
/// </summary>
|
||||
[JsonProperty("BlockTimestamp")]
|
||||
public string BlockTimestamp{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易哈希
|
||||
/// </summary>
|
||||
[JsonProperty("TransHash")]
|
||||
public string TransHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易发起者
|
||||
/// </summary>
|
||||
[JsonProperty("TransFrom")]
|
||||
public string TransFrom{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易接收者
|
||||
/// </summary>
|
||||
[JsonProperty("TransTo")]
|
||||
public string TransTo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 落库时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[JsonProperty("ModifyTime")]
|
||||
public string ModifyTime{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BlockNumber", this.BlockNumber);
|
||||
this.SetParamSimple(map, prefix + "BlockTimestamp", this.BlockTimestamp);
|
||||
this.SetParamSimple(map, prefix + "TransHash", this.TransHash);
|
||||
this.SetParamSimple(map, prefix + "TransFrom", this.TransFrom);
|
||||
this.SetParamSimple(map, prefix + "TransTo", this.TransTo);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "ModifyTime", this.ModifyTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
71
TencentCloud/Tbaas/V20180416/Models/Block.cs
Normal file
71
TencentCloud/Tbaas/V20180416/Models/Block.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Block : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 区块编号
|
||||
/// </summary>
|
||||
[JsonProperty("BlockNum")]
|
||||
public ulong? BlockNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块Hash数值
|
||||
/// </summary>
|
||||
[JsonProperty("DataHash")]
|
||||
public string DataHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块ID,与区块编号一致
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public ulong? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 前一个区块Hash(未使用),与区块Hash数值一致
|
||||
/// </summary>
|
||||
[JsonProperty("PreHash")]
|
||||
public string PreHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块内的交易数量
|
||||
/// </summary>
|
||||
[JsonProperty("TxCount")]
|
||||
public ulong? TxCount{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BlockNum", this.BlockNum);
|
||||
this.SetParamSimple(map, prefix + "DataHash", this.DataHash);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "PreHash", this.PreHash);
|
||||
this.SetParamSimple(map, prefix + "TxCount", this.TxCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BlockByNumberHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:block
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:block_by_number
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块高度
|
||||
/// </summary>
|
||||
[JsonProperty("BlockNumber")]
|
||||
public long? BlockNumber{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "BlockNumber", this.BlockNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class BlockByNumberHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回区块json字符串
|
||||
/// </summary>
|
||||
[JsonProperty("BlockJson")]
|
||||
public string BlockJson{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BlockJson", this.BlockJson);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeployDynamicContractHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:contract
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:deploy_by_dynamic_contract
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约名称
|
||||
/// </summary>
|
||||
[JsonProperty("ContractName")]
|
||||
public string ContractName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约编译后的abi
|
||||
/// </summary>
|
||||
[JsonProperty("AbiInfo")]
|
||||
public string AbiInfo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约编译后的binary
|
||||
/// </summary>
|
||||
[JsonProperty("ByteCodeBin")]
|
||||
public string ByteCodeBin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数入参
|
||||
/// </summary>
|
||||
[JsonProperty("ConstructorParams")]
|
||||
public string[] ConstructorParams{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "ContractName", this.ContractName);
|
||||
this.SetParamSimple(map, prefix + "AbiInfo", this.AbiInfo);
|
||||
this.SetParamSimple(map, prefix + "ByteCodeBin", this.ByteCodeBin);
|
||||
this.SetParamArraySimple(map, prefix + "ConstructorParams.", this.ConstructorParams);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeployDynamicContractHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 部署成功返回的合约地址
|
||||
/// </summary>
|
||||
[JsonProperty("ContractAddress")]
|
||||
public string ContractAddress{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "ContractAddress", this.ContractAddress);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DownloadUserCertRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:cert_mng
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:cert_download_for_user
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书ID,可以在证书详情页面获取
|
||||
/// </summary>
|
||||
[JsonProperty("CertId")]
|
||||
public ulong? CertId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书DN,可以在证书详情页面获取
|
||||
/// </summary>
|
||||
[JsonProperty("CertDn")]
|
||||
public string CertDn{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下载证书的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "CertId", this.CertId);
|
||||
this.SetParamSimple(map, prefix + "CertDn", this.CertDn);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DownloadUserCertResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 证书名称
|
||||
/// </summary>
|
||||
[JsonProperty("CertName")]
|
||||
public string CertName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书内容
|
||||
/// </summary>
|
||||
[JsonProperty("CertCtx")]
|
||||
public string CertCtx{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "CertName", this.CertName);
|
||||
this.SetParamSimple(map, prefix + "CertCtx", this.CertCtx);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tbaas/V20180416/Models/EndorserGroup.cs
Normal file
50
TencentCloud/Tbaas/V20180416/Models/EndorserGroup.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EndorserGroup : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 背书组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("EndorserGroupName")]
|
||||
public string EndorserGroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 背书节点列表
|
||||
/// </summary>
|
||||
[JsonProperty("EndorserPeerList")]
|
||||
public string[] EndorserPeerList{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "EndorserGroupName", this.EndorserGroupName);
|
||||
this.SetParamArraySimple(map, prefix + "EndorserPeerList.", this.EndorserPeerList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockListHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:block
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:get_block_list
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录偏移数
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每页记录数
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块哈希
|
||||
/// </summary>
|
||||
[JsonProperty("BlockHash")]
|
||||
public string BlockHash{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "BlockHash", this.BlockHash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockListHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 总记录数
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数据列表
|
||||
/// </summary>
|
||||
[JsonProperty("List")]
|
||||
public BcosBlockObj[] List{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamArrayObj(map, prefix + "List.", this.List);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
99
TencentCloud/Tbaas/V20180416/Models/GetBlockListRequest.cs
Normal file
99
TencentCloud/Tbaas/V20180416/Models/GetBlockListRequest.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockListRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,固定字段:block
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名称,固定字段:block_list
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通道ID,固定字段:0
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelId")]
|
||||
public ulong? ChannelId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID,固定字段:0
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public ulong? GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要查询的通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要获取的起始交易偏移
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要获取的交易数量
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ChannelId", this.ChannelId);
|
||||
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tbaas/V20180416/Models/GetBlockListResponse.cs
Normal file
57
TencentCloud/Tbaas/V20180416/Models/GetBlockListResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockListResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 区块数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public ulong? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块列表
|
||||
/// </summary>
|
||||
[JsonProperty("BlockList")]
|
||||
public Block[] BlockList{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamArrayObj(map, prefix + "BlockList.", this.BlockList);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockTransactionListForUserRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:block_transaction_list_for_user
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public ulong? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询的交易列表起始偏移地址
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询的交易列表数量
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetBlockTransactionListForUserResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public ulong? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易列表
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionList")]
|
||||
public TransactionItem[] TransactionList{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamArrayObj(map, prefix + "TransactionList.", this.TransactionList);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetClusterSummaryRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,固定字段:cluster_mng
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名称,固定字段:cluster_summary
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID,固定字段:0
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public ulong? GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
148
TencentCloud/Tbaas/V20180416/Models/GetClusterSummaryResponse.cs
Normal file
148
TencentCloud/Tbaas/V20180416/Models/GetClusterSummaryResponse.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetClusterSummaryResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 网络通道总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalChannelCount")]
|
||||
public ulong? TotalChannelCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织创建的通道数量
|
||||
/// </summary>
|
||||
[JsonProperty("MyChannelCount")]
|
||||
public ulong? MyChannelCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织加入的通道数量
|
||||
/// </summary>
|
||||
[JsonProperty("JoinChannelCount")]
|
||||
public ulong? JoinChannelCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网络节点总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalPeerCount")]
|
||||
public ulong? TotalPeerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织创建的节点数量
|
||||
/// </summary>
|
||||
[JsonProperty("MyPeerCount")]
|
||||
public ulong? MyPeerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 其他组织创建的节点数量
|
||||
/// </summary>
|
||||
[JsonProperty("OrderCount")]
|
||||
public ulong? OrderCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网络组织总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalGroupCount")]
|
||||
public ulong? TotalGroupCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织创建的组织数量
|
||||
/// </summary>
|
||||
[JsonProperty("MyGroupCount")]
|
||||
public ulong? MyGroupCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网络智能合约总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalChaincodeCount")]
|
||||
public ulong? TotalChaincodeCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最近7天发起的智能合约数量
|
||||
/// </summary>
|
||||
[JsonProperty("RecentChaincodeCount")]
|
||||
public ulong? RecentChaincodeCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织发起的智能合约数量
|
||||
/// </summary>
|
||||
[JsonProperty("MyChaincodeCount")]
|
||||
public ulong? MyChaincodeCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织的证书总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCertCount")]
|
||||
public ulong? TotalCertCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 颁发给当前组织的证书数量
|
||||
/// </summary>
|
||||
[JsonProperty("TlsCertCount")]
|
||||
public ulong? TlsCertCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网络背书节点证书数量
|
||||
/// </summary>
|
||||
[JsonProperty("PeerCertCount")]
|
||||
public ulong? PeerCertCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前组织业务证书数量
|
||||
/// </summary>
|
||||
[JsonProperty("ClientCertCount")]
|
||||
public ulong? ClientCertCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalChannelCount", this.TotalChannelCount);
|
||||
this.SetParamSimple(map, prefix + "MyChannelCount", this.MyChannelCount);
|
||||
this.SetParamSimple(map, prefix + "JoinChannelCount", this.JoinChannelCount);
|
||||
this.SetParamSimple(map, prefix + "TotalPeerCount", this.TotalPeerCount);
|
||||
this.SetParamSimple(map, prefix + "MyPeerCount", this.MyPeerCount);
|
||||
this.SetParamSimple(map, prefix + "OrderCount", this.OrderCount);
|
||||
this.SetParamSimple(map, prefix + "TotalGroupCount", this.TotalGroupCount);
|
||||
this.SetParamSimple(map, prefix + "MyGroupCount", this.MyGroupCount);
|
||||
this.SetParamSimple(map, prefix + "TotalChaincodeCount", this.TotalChaincodeCount);
|
||||
this.SetParamSimple(map, prefix + "RecentChaincodeCount", this.RecentChaincodeCount);
|
||||
this.SetParamSimple(map, prefix + "MyChaincodeCount", this.MyChaincodeCount);
|
||||
this.SetParamSimple(map, prefix + "TotalCertCount", this.TotalCertCount);
|
||||
this.SetParamSimple(map, prefix + "TlsCertCount", this.TlsCertCount);
|
||||
this.SetParamSimple(map, prefix + "PeerCertCount", this.PeerCertCount);
|
||||
this.SetParamSimple(map, prefix + "ClientCertCount", this.ClientCertCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
92
TencentCloud/Tbaas/V20180416/Models/GetInvokeTxRequest.cs
Normal file
92
TencentCloud/Tbaas/V20180416/Models/GetInvokeTxRequest.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetInvokeTxRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:query_txid
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行该查询交易的节点名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("PeerName")]
|
||||
public string PeerName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行该查询交易的节点所属组织名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("PeerGroup")]
|
||||
public string PeerGroup{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易ID
|
||||
/// </summary>
|
||||
[JsonProperty("TxId")]
|
||||
public string TxId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "PeerName", this.PeerName);
|
||||
this.SetParamSimple(map, prefix + "PeerGroup", this.PeerGroup);
|
||||
this.SetParamSimple(map, prefix + "TxId", this.TxId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Tbaas/V20180416/Models/GetInvokeTxResponse.cs
Normal file
64
TencentCloud/Tbaas/V20180416/Models/GetInvokeTxResponse.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetInvokeTxResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易执行状态码
|
||||
/// </summary>
|
||||
[JsonProperty("TxValidationCode")]
|
||||
public long? TxValidationCode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易执行消息
|
||||
/// </summary>
|
||||
[JsonProperty("TxValidationMsg")]
|
||||
public string TxValidationMsg{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块ID
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public long? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TxValidationCode", this.TxValidationCode);
|
||||
this.SetParamSimple(map, prefix + "TxValidationMsg", this.TxValidationMsg);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetLatesdTransactionListRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名称,固定字段:latest_transaction_list
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID,固定字段:0
|
||||
/// </summary>
|
||||
[JsonProperty("GroupId")]
|
||||
public ulong? GroupId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通道ID,固定字段:0
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelId")]
|
||||
public ulong? ChannelId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取的最新交易的区块数量,取值范围1~5
|
||||
/// </summary>
|
||||
[JsonProperty("LatestBlockNumber")]
|
||||
public ulong? LatestBlockNumber{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要查询的通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要获取的起始交易偏移
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要获取的交易数量
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
|
||||
this.SetParamSimple(map, prefix + "ChannelId", this.ChannelId);
|
||||
this.SetParamSimple(map, prefix + "LatestBlockNumber", this.LatestBlockNumber);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetLatesdTransactionListResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易总数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public ulong? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易列表
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionList")]
|
||||
public TransactionItem[] TransactionList{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamArrayObj(map, prefix + "TransactionList.", this.TransactionList);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransByHashHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:get_trans_by_hash
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易哈希
|
||||
/// </summary>
|
||||
[JsonProperty("TransHash")]
|
||||
public string TransHash{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "TransHash", this.TransHash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransByHashHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易信息json字符串
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionJson")]
|
||||
public string TransactionJson{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TransactionJson", this.TransactionJson);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransListHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:get_trans_list
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录偏移量
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每页记录数
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易哈希
|
||||
/// </summary>
|
||||
[JsonProperty("TransHash")]
|
||||
public string TransHash{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "TransHash", this.TransHash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransListHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 总记录数
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数据列表
|
||||
/// </summary>
|
||||
[JsonProperty("List")]
|
||||
public BcosTransInfo[] List{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamArrayObj(map, prefix + "List.", this.List);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransactionDetailForUserRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:transaction_detail_for_user
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public ulong? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易ID,需要查询的详情的交易ID
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionId")]
|
||||
public string TransactionId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "TransactionId", this.TransactionId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class GetTransactionDetailForUserResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易ID
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionId")]
|
||||
public string TransactionId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易hash
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionHash")]
|
||||
public string TransactionHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建交易的组织名
|
||||
/// </summary>
|
||||
[JsonProperty("CreateOrgName")]
|
||||
public string CreateOrgName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易类型(普通交易和配置交易)
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionType")]
|
||||
public string TransactionType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易状态
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionStatus")]
|
||||
public string TransactionStatus{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易创建时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易数据
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionData")]
|
||||
public string TransactionData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块号
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public ulong? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块哈希
|
||||
/// </summary>
|
||||
[JsonProperty("BlockHash")]
|
||||
public string BlockHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块高度
|
||||
/// </summary>
|
||||
[JsonProperty("BlockHeight")]
|
||||
public ulong? BlockHeight{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通道名称
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在合约名称
|
||||
/// </summary>
|
||||
[JsonProperty("ContractName")]
|
||||
public string ContractName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 背书组织列表
|
||||
/// </summary>
|
||||
[JsonProperty("EndorserOrgList")]
|
||||
public EndorserGroup[] EndorserOrgList{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TransactionId", this.TransactionId);
|
||||
this.SetParamSimple(map, prefix + "TransactionHash", this.TransactionHash);
|
||||
this.SetParamSimple(map, prefix + "CreateOrgName", this.CreateOrgName);
|
||||
this.SetParamSimple(map, prefix + "TransactionType", this.TransactionType);
|
||||
this.SetParamSimple(map, prefix + "TransactionStatus", this.TransactionStatus);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "TransactionData", this.TransactionData);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "BlockHash", this.BlockHash);
|
||||
this.SetParamSimple(map, prefix + "BlockHeight", this.BlockHeight);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamSimple(map, prefix + "ContractName", this.ContractName);
|
||||
this.SetParamArrayObj(map, prefix + "EndorserOrgList.", this.EndorserOrgList);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
106
TencentCloud/Tbaas/V20180416/Models/InvokeRequest.cs
Normal file
106
TencentCloud/Tbaas/V20180416/Models/InvokeRequest.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class InvokeRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:invoke
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属智能合约名称,可在智能合约详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChaincodeName")]
|
||||
public string ChaincodeName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对该笔交易进行背书的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("Peers")]
|
||||
public PeerSet[] Peers{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 该笔交易需要调用的智能合约中的函数名称
|
||||
/// </summary>
|
||||
[JsonProperty("FuncName")]
|
||||
public string FuncName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被调用的函数参数列表
|
||||
/// </summary>
|
||||
[JsonProperty("Args")]
|
||||
public string[] Args{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 同步调用标识,可选参数,值为0或者不传表示使用同步方法调用,调用后会等待交易执行后再返回执行结果;值为1时表示使用异步方式调用Invoke,执行后会立即返回交易对应的Txid,后续需要通过GetInvokeTx这个API查询该交易的执行结果。(对于逻辑较为简单的交易,可以使用同步模式;对于逻辑较为复杂的交易,建议使用异步模式,否则容易导致API因等待时间过长,返回等待超时)
|
||||
/// </summary>
|
||||
[JsonProperty("AsyncFlag")]
|
||||
public ulong? AsyncFlag{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "ChaincodeName", this.ChaincodeName);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamArrayObj(map, prefix + "Peers.", this.Peers);
|
||||
this.SetParamSimple(map, prefix + "FuncName", this.FuncName);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamArraySimple(map, prefix + "Args.", this.Args);
|
||||
this.SetParamSimple(map, prefix + "AsyncFlag", this.AsyncFlag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tbaas/V20180416/Models/InvokeResponse.cs
Normal file
57
TencentCloud/Tbaas/V20180416/Models/InvokeResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class InvokeResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易ID
|
||||
/// </summary>
|
||||
[JsonProperty("Txid")]
|
||||
public string Txid{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易执行结果
|
||||
/// </summary>
|
||||
[JsonProperty("Events")]
|
||||
public string Events{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Txid", this.Txid);
|
||||
this.SetParamSimple(map, prefix + "Events", this.Events);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tbaas/V20180416/Models/PeerSet.cs
Normal file
50
TencentCloud/Tbaas/V20180416/Models/PeerSet.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PeerSet : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 节点名称
|
||||
/// </summary>
|
||||
[JsonProperty("PeerName")]
|
||||
public string PeerName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("OrgName")]
|
||||
public string OrgName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "PeerName", this.PeerName);
|
||||
this.SetParamSimple(map, prefix + "OrgName", this.OrgName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
99
TencentCloud/Tbaas/V20180416/Models/QueryRequest.cs
Normal file
99
TencentCloud/Tbaas/V20180416/Models/QueryRequest.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class QueryRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:query
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区块链网络ID,可在区块链网络详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ClusterId")]
|
||||
public string ClusterId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属智能合约名称,可在智能合约详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChaincodeName")]
|
||||
public string ChaincodeName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务所属通道名称,可在通道详情或列表中获取
|
||||
/// </summary>
|
||||
[JsonProperty("ChannelName")]
|
||||
public string ChannelName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行该查询交易的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
||||
/// </summary>
|
||||
[JsonProperty("Peers")]
|
||||
public PeerSet[] Peers{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 该笔交易查询需要调用的智能合约中的函数名称
|
||||
/// </summary>
|
||||
[JsonProperty("FuncName")]
|
||||
public string FuncName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
||||
/// </summary>
|
||||
[JsonProperty("GroupName")]
|
||||
public string GroupName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被调用的函数参数列表
|
||||
/// </summary>
|
||||
[JsonProperty("Args")]
|
||||
public string[] Args{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
|
||||
this.SetParamSimple(map, prefix + "ChaincodeName", this.ChaincodeName);
|
||||
this.SetParamSimple(map, prefix + "ChannelName", this.ChannelName);
|
||||
this.SetParamArrayObj(map, prefix + "Peers.", this.Peers);
|
||||
this.SetParamSimple(map, prefix + "FuncName", this.FuncName);
|
||||
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
|
||||
this.SetParamArraySimple(map, prefix + "Args.", this.Args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tbaas/V20180416/Models/QueryResponse.cs
Normal file
50
TencentCloud/Tbaas/V20180416/Models/QueryResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class QueryResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 查询结果数据
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public string[] Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SendTransactionHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:send_transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约编号
|
||||
/// </summary>
|
||||
[JsonProperty("ContractId")]
|
||||
public long? ContractId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约方法名
|
||||
/// </summary>
|
||||
[JsonProperty("FuncName")]
|
||||
public string FuncName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约方法入参
|
||||
/// </summary>
|
||||
[JsonProperty("FuncParam")]
|
||||
public string[] FuncParam{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "ContractId", this.ContractId);
|
||||
this.SetParamSimple(map, prefix + "FuncName", this.FuncName);
|
||||
this.SetParamArraySimple(map, prefix + "FuncParam.", this.FuncParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SendTransactionHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易结果json字符串
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionRsp")]
|
||||
public string TransactionRsp{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TransactionRsp", this.TransactionRsp);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tbaas/V20180416/Models/SrvInvokeRequest.cs
Normal file
57
TencentCloud/Tbaas/V20180416/Models/SrvInvokeRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SrvInvokeRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 服务类型,iss或者dam
|
||||
/// </summary>
|
||||
[JsonProperty("Service")]
|
||||
public string Service{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务接口,要调用的方法函数名
|
||||
/// </summary>
|
||||
[JsonProperty("Method")]
|
||||
public string Method{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户自定义json字符串
|
||||
/// </summary>
|
||||
[JsonProperty("Param")]
|
||||
public string Param{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Service", this.Service);
|
||||
this.SetParamSimple(map, prefix + "Method", this.Method);
|
||||
this.SetParamSimple(map, prefix + "Param", this.Param);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Tbaas/V20180416/Models/SrvInvokeResponse.cs
Normal file
64
TencentCloud/Tbaas/V20180416/Models/SrvInvokeResponse.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SrvInvokeResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回码
|
||||
/// </summary>
|
||||
[JsonProperty("RetCode")]
|
||||
public long? RetCode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回消息
|
||||
/// </summary>
|
||||
[JsonProperty("RetMsg")]
|
||||
public string RetMsg{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数据
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public string Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RetCode", this.RetCode);
|
||||
this.SetParamSimple(map, prefix + "RetMsg", this.RetMsg);
|
||||
this.SetParamSimple(map, prefix + "Data", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TransByDynamicContractHandlerRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名,固定字段:transaction
|
||||
/// </summary>
|
||||
[JsonProperty("Module")]
|
||||
public string Module{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作名,固定字段:trans_by_dynamic_contract
|
||||
/// </summary>
|
||||
[JsonProperty("Operation")]
|
||||
public string Operation{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 群组编号
|
||||
/// </summary>
|
||||
[JsonProperty("GroupPk")]
|
||||
public string GroupPk{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约地址(合约部署成功,可得到合约地址)
|
||||
/// </summary>
|
||||
[JsonProperty("ContractAddress")]
|
||||
public string ContractAddress{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约名
|
||||
/// </summary>
|
||||
[JsonProperty("ContractName")]
|
||||
public string ContractName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约编译后的abi
|
||||
/// </summary>
|
||||
[JsonProperty("AbiInfo")]
|
||||
public string AbiInfo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约被调用方法名
|
||||
/// </summary>
|
||||
[JsonProperty("FuncName")]
|
||||
public string FuncName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 合约被调用方法的入参
|
||||
/// </summary>
|
||||
[JsonProperty("FuncParam")]
|
||||
public string[] FuncParam{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Module", this.Module);
|
||||
this.SetParamSimple(map, prefix + "Operation", this.Operation);
|
||||
this.SetParamSimple(map, prefix + "GroupPk", this.GroupPk);
|
||||
this.SetParamSimple(map, prefix + "ContractAddress", this.ContractAddress);
|
||||
this.SetParamSimple(map, prefix + "ContractName", this.ContractName);
|
||||
this.SetParamSimple(map, prefix + "AbiInfo", this.AbiInfo);
|
||||
this.SetParamSimple(map, prefix + "FuncName", this.FuncName);
|
||||
this.SetParamArraySimple(map, prefix + "FuncParam.", this.FuncParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TransByDynamicContractHandlerResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易结果json字符串
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionRsp")]
|
||||
public string TransactionRsp{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TransactionRsp", this.TransactionRsp);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
92
TencentCloud/Tbaas/V20180416/Models/TransactionItem.cs
Normal file
92
TencentCloud/Tbaas/V20180416/Models/TransactionItem.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TransactionItem : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 交易ID
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionId")]
|
||||
public string TransactionId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易hash
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionHash")]
|
||||
public string TransactionHash{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建交易的组织名
|
||||
/// </summary>
|
||||
[JsonProperty("CreateOrgName")]
|
||||
public string CreateOrgName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块号
|
||||
/// </summary>
|
||||
[JsonProperty("BlockId")]
|
||||
public ulong? BlockId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易类型(普通交易和配置交易)
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionType")]
|
||||
public string TransactionType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易创建时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易所在区块高度
|
||||
/// </summary>
|
||||
[JsonProperty("BlockHeight")]
|
||||
public ulong? BlockHeight{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易状态
|
||||
/// </summary>
|
||||
[JsonProperty("TransactionStatus")]
|
||||
public string TransactionStatus{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TransactionId", this.TransactionId);
|
||||
this.SetParamSimple(map, prefix + "TransactionHash", this.TransactionHash);
|
||||
this.SetParamSimple(map, prefix + "CreateOrgName", this.CreateOrgName);
|
||||
this.SetParamSimple(map, prefix + "BlockId", this.BlockId);
|
||||
this.SetParamSimple(map, prefix + "TransactionType", this.TransactionType);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "BlockHeight", this.BlockHeight);
|
||||
this.SetParamSimple(map, prefix + "TransactionStatus", this.TransactionStatus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
776
TencentCloud/Tbaas/V20180416/TbaasClient.cs
Normal file
776
TencentCloud/Tbaas/V20180416/TbaasClient.cs
Normal file
@@ -0,0 +1,776 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tbaas.V20180416
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Tbaas.V20180416.Models;
|
||||
|
||||
public class TbaasClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "tbaas.tencentcloudapi.com";
|
||||
private const string version = "2018-04-16";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public TbaasClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public TbaasClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 申请用户证书
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ApplyUserCertRequest"/></param>
|
||||
/// <returns><see cref="ApplyUserCertResponse"/></returns>
|
||||
public async Task<ApplyUserCertResponse> ApplyUserCert(ApplyUserCertRequest req)
|
||||
{
|
||||
JsonResponseModel<ApplyUserCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "ApplyUserCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ApplyUserCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 申请用户证书
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ApplyUserCertRequest"/></param>
|
||||
/// <returns><see cref="ApplyUserCertResponse"/></returns>
|
||||
public ApplyUserCertResponse ApplyUserCertSync(ApplyUserCertRequest req)
|
||||
{
|
||||
JsonResponseModel<ApplyUserCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "ApplyUserCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ApplyUserCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos根据块高查询区块信息
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="BlockByNumberHandlerRequest"/></param>
|
||||
/// <returns><see cref="BlockByNumberHandlerResponse"/></returns>
|
||||
public async Task<BlockByNumberHandlerResponse> BlockByNumberHandler(BlockByNumberHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<BlockByNumberHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "BlockByNumberHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<BlockByNumberHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos根据块高查询区块信息
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="BlockByNumberHandlerRequest"/></param>
|
||||
/// <returns><see cref="BlockByNumberHandlerResponse"/></returns>
|
||||
public BlockByNumberHandlerResponse BlockByNumberHandlerSync(BlockByNumberHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<BlockByNumberHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "BlockByNumberHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<BlockByNumberHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 动态部署合约
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeployDynamicContractHandlerRequest"/></param>
|
||||
/// <returns><see cref="DeployDynamicContractHandlerResponse"/></returns>
|
||||
public async Task<DeployDynamicContractHandlerResponse> DeployDynamicContractHandler(DeployDynamicContractHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<DeployDynamicContractHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeployDynamicContractHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeployDynamicContractHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 动态部署合约
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeployDynamicContractHandlerRequest"/></param>
|
||||
/// <returns><see cref="DeployDynamicContractHandlerResponse"/></returns>
|
||||
public DeployDynamicContractHandlerResponse DeployDynamicContractHandlerSync(DeployDynamicContractHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<DeployDynamicContractHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeployDynamicContractHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeployDynamicContractHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载用户证书
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DownloadUserCertRequest"/></param>
|
||||
/// <returns><see cref="DownloadUserCertResponse"/></returns>
|
||||
public async Task<DownloadUserCertResponse> DownloadUserCert(DownloadUserCertRequest req)
|
||||
{
|
||||
JsonResponseModel<DownloadUserCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DownloadUserCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DownloadUserCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载用户证书
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DownloadUserCertRequest"/></param>
|
||||
/// <returns><see cref="DownloadUserCertResponse"/></returns>
|
||||
public DownloadUserCertResponse DownloadUserCertSync(DownloadUserCertRequest req)
|
||||
{
|
||||
JsonResponseModel<DownloadUserCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DownloadUserCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DownloadUserCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查看当前网络下的所有区块列表,分页展示
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockListRequest"/></param>
|
||||
/// <returns><see cref="GetBlockListResponse"/></returns>
|
||||
public async Task<GetBlockListResponse> GetBlockList(GetBlockListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetBlockList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查看当前网络下的所有区块列表,分页展示
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockListRequest"/></param>
|
||||
/// <returns><see cref="GetBlockListResponse"/></returns>
|
||||
public GetBlockListResponse GetBlockListSync(GetBlockListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetBlockList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos分页查询当前群组下的区块列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockListHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetBlockListHandlerResponse"/></returns>
|
||||
public async Task<GetBlockListHandlerResponse> GetBlockListHandler(GetBlockListHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockListHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetBlockListHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockListHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos分页查询当前群组下的区块列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockListHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetBlockListHandlerResponse"/></returns>
|
||||
public GetBlockListHandlerResponse GetBlockListHandlerSync(GetBlockListHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockListHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetBlockListHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockListHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取区块内的交易列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockTransactionListForUserRequest"/></param>
|
||||
/// <returns><see cref="GetBlockTransactionListForUserResponse"/></returns>
|
||||
public async Task<GetBlockTransactionListForUserResponse> GetBlockTransactionListForUser(GetBlockTransactionListForUserRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockTransactionListForUserResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetBlockTransactionListForUser");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockTransactionListForUserResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取区块内的交易列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetBlockTransactionListForUserRequest"/></param>
|
||||
/// <returns><see cref="GetBlockTransactionListForUserResponse"/></returns>
|
||||
public GetBlockTransactionListForUserResponse GetBlockTransactionListForUserSync(GetBlockTransactionListForUserRequest req)
|
||||
{
|
||||
JsonResponseModel<GetBlockTransactionListForUserResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetBlockTransactionListForUser");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetBlockTransactionListForUserResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取区块链网络概要
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetClusterSummaryRequest"/></param>
|
||||
/// <returns><see cref="GetClusterSummaryResponse"/></returns>
|
||||
public async Task<GetClusterSummaryResponse> GetClusterSummary(GetClusterSummaryRequest req)
|
||||
{
|
||||
JsonResponseModel<GetClusterSummaryResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetClusterSummary");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetClusterSummaryResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取区块链网络概要
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetClusterSummaryRequest"/></param>
|
||||
/// <returns><see cref="GetClusterSummaryResponse"/></returns>
|
||||
public GetClusterSummaryResponse GetClusterSummarySync(GetClusterSummaryRequest req)
|
||||
{
|
||||
JsonResponseModel<GetClusterSummaryResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetClusterSummary");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetClusterSummaryResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoke异步调用结果查询
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetInvokeTxRequest"/></param>
|
||||
/// <returns><see cref="GetInvokeTxResponse"/></returns>
|
||||
public async Task<GetInvokeTxResponse> GetInvokeTx(GetInvokeTxRequest req)
|
||||
{
|
||||
JsonResponseModel<GetInvokeTxResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetInvokeTx");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetInvokeTxResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoke异步调用结果查询
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetInvokeTxRequest"/></param>
|
||||
/// <returns><see cref="GetInvokeTxResponse"/></returns>
|
||||
public GetInvokeTxResponse GetInvokeTxSync(GetInvokeTxRequest req)
|
||||
{
|
||||
JsonResponseModel<GetInvokeTxResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetInvokeTx");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetInvokeTxResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取最新交易列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetLatesdTransactionListRequest"/></param>
|
||||
/// <returns><see cref="GetLatesdTransactionListResponse"/></returns>
|
||||
public async Task<GetLatesdTransactionListResponse> GetLatesdTransactionList(GetLatesdTransactionListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetLatesdTransactionListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetLatesdTransactionList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetLatesdTransactionListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取最新交易列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetLatesdTransactionListRequest"/></param>
|
||||
/// <returns><see cref="GetLatesdTransactionListResponse"/></returns>
|
||||
public GetLatesdTransactionListResponse GetLatesdTransactionListSync(GetLatesdTransactionListRequest req)
|
||||
{
|
||||
JsonResponseModel<GetLatesdTransactionListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetLatesdTransactionList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetLatesdTransactionListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos根据交易哈希查看交易详细信息
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransByHashHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetTransByHashHandlerResponse"/></returns>
|
||||
public async Task<GetTransByHashHandlerResponse> GetTransByHashHandler(GetTransByHashHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransByHashHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetTransByHashHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransByHashHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos根据交易哈希查看交易详细信息
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransByHashHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetTransByHashHandlerResponse"/></returns>
|
||||
public GetTransByHashHandlerResponse GetTransByHashHandlerSync(GetTransByHashHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransByHashHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetTransByHashHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransByHashHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos分页查询当前群组的交易信息列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransListHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetTransListHandlerResponse"/></returns>
|
||||
public async Task<GetTransListHandlerResponse> GetTransListHandler(GetTransListHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransListHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetTransListHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransListHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos分页查询当前群组的交易信息列表
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransListHandlerRequest"/></param>
|
||||
/// <returns><see cref="GetTransListHandlerResponse"/></returns>
|
||||
public GetTransListHandlerResponse GetTransListHandlerSync(GetTransListHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransListHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetTransListHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransListHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取交易详情
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransactionDetailForUserRequest"/></param>
|
||||
/// <returns><see cref="GetTransactionDetailForUserResponse"/></returns>
|
||||
public async Task<GetTransactionDetailForUserResponse> GetTransactionDetailForUser(GetTransactionDetailForUserRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransactionDetailForUserResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "GetTransactionDetailForUser");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransactionDetailForUserResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取交易详情
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="GetTransactionDetailForUserRequest"/></param>
|
||||
/// <returns><see cref="GetTransactionDetailForUserResponse"/></returns>
|
||||
public GetTransactionDetailForUserResponse GetTransactionDetailForUserSync(GetTransactionDetailForUserRequest req)
|
||||
{
|
||||
JsonResponseModel<GetTransactionDetailForUserResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "GetTransactionDetailForUser");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetTransactionDetailForUserResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="InvokeRequest"/></param>
|
||||
/// <returns><see cref="InvokeResponse"/></returns>
|
||||
public async Task<InvokeResponse> Invoke(InvokeRequest req)
|
||||
{
|
||||
JsonResponseModel<InvokeResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "Invoke");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<InvokeResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="InvokeRequest"/></param>
|
||||
/// <returns><see cref="InvokeResponse"/></returns>
|
||||
public InvokeResponse InvokeSync(InvokeRequest req)
|
||||
{
|
||||
JsonResponseModel<InvokeResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "Invoke");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<InvokeResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="QueryRequest"/></param>
|
||||
/// <returns><see cref="QueryResponse"/></returns>
|
||||
public async Task<QueryResponse> Query(QueryRequest req)
|
||||
{
|
||||
JsonResponseModel<QueryResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "Query");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<QueryResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="QueryRequest"/></param>
|
||||
/// <returns><see cref="QueryResponse"/></returns>
|
||||
public QueryResponse QuerySync(QueryRequest req)
|
||||
{
|
||||
JsonResponseModel<QueryResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "Query");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<QueryResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos发送交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SendTransactionHandlerRequest"/></param>
|
||||
/// <returns><see cref="SendTransactionHandlerResponse"/></returns>
|
||||
public async Task<SendTransactionHandlerResponse> SendTransactionHandler(SendTransactionHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<SendTransactionHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "SendTransactionHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendTransactionHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bcos发送交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SendTransactionHandlerRequest"/></param>
|
||||
/// <returns><see cref="SendTransactionHandlerResponse"/></returns>
|
||||
public SendTransactionHandlerResponse SendTransactionHandlerSync(SendTransactionHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<SendTransactionHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "SendTransactionHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendTransactionHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// trustsql服务统一接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SrvInvokeRequest"/></param>
|
||||
/// <returns><see cref="SrvInvokeResponse"/></returns>
|
||||
public async Task<SrvInvokeResponse> SrvInvoke(SrvInvokeRequest req)
|
||||
{
|
||||
JsonResponseModel<SrvInvokeResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "SrvInvoke");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SrvInvokeResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// trustsql服务统一接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="SrvInvokeRequest"/></param>
|
||||
/// <returns><see cref="SrvInvokeResponse"/></returns>
|
||||
public SrvInvokeResponse SrvInvokeSync(SrvInvokeRequest req)
|
||||
{
|
||||
JsonResponseModel<SrvInvokeResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "SrvInvoke");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SrvInvokeResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据动态部署的合约发送交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="TransByDynamicContractHandlerRequest"/></param>
|
||||
/// <returns><see cref="TransByDynamicContractHandlerResponse"/></returns>
|
||||
public async Task<TransByDynamicContractHandlerResponse> TransByDynamicContractHandler(TransByDynamicContractHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<TransByDynamicContractHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "TransByDynamicContractHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<TransByDynamicContractHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据动态部署的合约发送交易
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="TransByDynamicContractHandlerRequest"/></param>
|
||||
/// <returns><see cref="TransByDynamicContractHandlerResponse"/></returns>
|
||||
public TransByDynamicContractHandlerResponse TransByDynamicContractHandlerSync(TransByDynamicContractHandlerRequest req)
|
||||
{
|
||||
JsonResponseModel<TransByDynamicContractHandlerResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "TransByDynamicContractHandler");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<TransByDynamicContractHandlerResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user