/* * 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 { /// /// 模块名,固定字段:transaction /// [JsonProperty("Module")] public string Module{ get; set; } /// /// 操作名,固定字段:query /// [JsonProperty("Operation")] public string Operation{ get; set; } /// /// 区块链网络ID,可在区块链网络详情或列表中获取 /// [JsonProperty("ClusterId")] public string ClusterId{ get; set; } /// /// 业务所属智能合约名称,可在智能合约详情或列表中获取 /// [JsonProperty("ChaincodeName")] public string ChaincodeName{ get; set; } /// /// 业务所属通道名称,可在通道详情或列表中获取 /// [JsonProperty("ChannelName")] public string ChannelName{ get; set; } /// /// 执行该查询交易的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称极其所属组织名称 /// [JsonProperty("Peers")] public PeerSet[] Peers{ get; set; } /// /// 该笔交易查询需要调用的智能合约中的函数名称 /// [JsonProperty("FuncName")] public string FuncName{ get; set; } /// /// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称 /// [JsonProperty("GroupName")] public string GroupName{ get; set; } /// /// 被调用的函数参数列表 /// [JsonProperty("Args")] public string[] Args{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }