All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.baas.transform.v20181221.UpgradeFabricChaincodeResponseUnmarshaller Maven / Gradle / Ivy

/*
 * 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.
 */

package com.aliyuncs.baas.transform.v20181221;

import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeResponse;
import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeResponse.Result;
import com.aliyuncs.transform.UnmarshallerContext;


public class UpgradeFabricChaincodeResponseUnmarshaller {

	public static UpgradeFabricChaincodeResponse unmarshall(UpgradeFabricChaincodeResponse upgradeFabricChaincodeResponse, UnmarshallerContext _ctx) {
		
		upgradeFabricChaincodeResponse.setRequestId(_ctx.stringValue("UpgradeFabricChaincodeResponse.RequestId"));
		upgradeFabricChaincodeResponse.setSuccess(_ctx.booleanValue("UpgradeFabricChaincodeResponse.Success"));
		upgradeFabricChaincodeResponse.setErrorCode(_ctx.integerValue("UpgradeFabricChaincodeResponse.ErrorCode"));

		Result result = new Result();
		result.setType(_ctx.integerValue("UpgradeFabricChaincodeResponse.Result.Type"));
		result.setEndorsePolicy(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.EndorsePolicy"));
		result.setState(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.State"));
		result.setCreateTime(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.CreateTime"));
		result.setChaincodeId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeId"));
		result.setProviderName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ProviderName"));
		result.setMessage(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Message"));
		result.setChaincodeName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeName"));
		result.setInput(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Input"));
		result.setInstall(_ctx.booleanValue("UpgradeFabricChaincodeResponse.Result.Install"));
		result.setProviderId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ProviderId"));
		result.setDeployTime(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.DeployTime"));
		result.setChaincodeVersion(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeVersion"));
		result.setConsortiumId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ConsortiumId"));
		result.setChannelName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChannelName"));
		result.setPath(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Path"));
		upgradeFabricChaincodeResponse.setResult(result);
	 
	 	return upgradeFabricChaincodeResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy