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

com.aliyuncs.domain.transform.v20180208.QueryBrokerDemandResponseUnmarshaller Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 3.15.10
Show newest version
/*
 * 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.domain.transform.v20180208;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.domain.model.v20180208.QueryBrokerDemandResponse;
import com.aliyuncs.domain.model.v20180208.QueryBrokerDemandResponse.Demand;
import com.aliyuncs.transform.UnmarshallerContext;


public class QueryBrokerDemandResponseUnmarshaller {

	public static QueryBrokerDemandResponse unmarshall(QueryBrokerDemandResponse queryBrokerDemandResponse, UnmarshallerContext _ctx) {
		
		queryBrokerDemandResponse.setRequestId(_ctx.stringValue("QueryBrokerDemandResponse.RequestId"));
		queryBrokerDemandResponse.setTotalItemNum(_ctx.integerValue("QueryBrokerDemandResponse.TotalItemNum"));
		queryBrokerDemandResponse.setCurrentPageNum(_ctx.integerValue("QueryBrokerDemandResponse.CurrentPageNum"));
		queryBrokerDemandResponse.setPageSize(_ctx.integerValue("QueryBrokerDemandResponse.PageSize"));
		queryBrokerDemandResponse.setTotalPageNum(_ctx.integerValue("QueryBrokerDemandResponse.TotalPageNum"));

		List data = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("QueryBrokerDemandResponse.Data.Length"); i++) {
			Demand demand = new Demand();
			demand.setBizId(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].BizId"));
			demand.setStatus(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].Status"));
			demand.setDemandDomain(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].DemandDomain"));
			demand.setDemandPrice(_ctx.floatValue("QueryBrokerDemandResponse.Data["+ i +"].DemandPrice"));
			demand.setMobile(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].Mobile"));
			demand.setDescription(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].Description"));
			demand.setPublishTime(_ctx.longValue("QueryBrokerDemandResponse.Data["+ i +"].PublishTime"));
			demand.setPayDomain(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].PayDomain"));
			demand.setPayPrice(_ctx.floatValue("QueryBrokerDemandResponse.Data["+ i +"].PayPrice"));
			demand.setPayTime(_ctx.longValue("QueryBrokerDemandResponse.Data["+ i +"].PayTime"));
			demand.setProduceType(_ctx.integerValue("QueryBrokerDemandResponse.Data["+ i +"].ProduceType"));
			demand.setBargainSellerPrice(_ctx.floatValue("QueryBrokerDemandResponse.Data["+ i +"].BargainSellerPrice"));
			demand.setBargainSellerMobile(_ctx.stringValue("QueryBrokerDemandResponse.Data["+ i +"].BargainSellerMobile"));
			demand.setServicePayPrice(_ctx.floatValue("QueryBrokerDemandResponse.Data["+ i +"].ServicePayPrice"));

			data.add(demand);
		}
		queryBrokerDemandResponse.setData(data);
	 
	 	return queryBrokerDemandResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy