com.aliyuncs.domain.transform.v20180208.QueryAuctionsResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-domain Show documentation
Show all versions of aliyun-java-sdk-domain Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* 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.QueryAuctionsResponse;
import com.aliyuncs.domain.model.v20180208.QueryAuctionsResponse.AuctionDetail;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryAuctionsResponseUnmarshaller {
public static QueryAuctionsResponse unmarshall(QueryAuctionsResponse queryAuctionsResponse, UnmarshallerContext _ctx) {
queryAuctionsResponse.setRequestId(_ctx.stringValue("QueryAuctionsResponse.RequestId"));
queryAuctionsResponse.setTotalItemNum(_ctx.integerValue("QueryAuctionsResponse.TotalItemNum"));
queryAuctionsResponse.setCurrentPageNum(_ctx.integerValue("QueryAuctionsResponse.CurrentPageNum"));
queryAuctionsResponse.setPageSize(_ctx.integerValue("QueryAuctionsResponse.PageSize"));
queryAuctionsResponse.setTotalPageNum(_ctx.integerValue("QueryAuctionsResponse.TotalPageNum"));
List data = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("QueryAuctionsResponse.Data.Length"); i++) {
AuctionDetail auctionDetail = new AuctionDetail();
auctionDetail.setDomainName(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].DomainName"));
auctionDetail.setAuctionId(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].AuctionId"));
auctionDetail.setDomainType(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].DomainType"));
auctionDetail.setBookedPartner(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].BookedPartner"));
auctionDetail.setPartnerType(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].PartnerType"));
auctionDetail.setCurrency(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].Currency"));
auctionDetail.setYourCurrentBid(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].YourCurrentBid"));
auctionDetail.setYourMaxBid(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].YourMaxBid"));
auctionDetail.setHighBid(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].HighBid"));
auctionDetail.setNextValidBid(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].NextValidBid"));
auctionDetail.setReserveMet(_ctx.booleanValue("QueryAuctionsResponse.Data["+ i +"].ReserveMet"));
auctionDetail.setTransferInPrice(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].TransferInPrice"));
auctionDetail.setPayPrice(_ctx.floatValue("QueryAuctionsResponse.Data["+ i +"].PayPrice"));
auctionDetail.setHighBidder(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].HighBidder"));
auctionDetail.setStatus(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].Status"));
auctionDetail.setPayStatus(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].PayStatus"));
auctionDetail.setProduceStatus(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].ProduceStatus"));
auctionDetail.setAuctionEndTime(_ctx.longValue("QueryAuctionsResponse.Data["+ i +"].AuctionEndTime"));
auctionDetail.setBookEndTime(_ctx.longValue("QueryAuctionsResponse.Data["+ i +"].BookEndTime"));
auctionDetail.setPayEndTime(_ctx.longValue("QueryAuctionsResponse.Data["+ i +"].PayEndTime"));
auctionDetail.setDeliveryTime(_ctx.longValue("QueryAuctionsResponse.Data["+ i +"].DeliveryTime"));
auctionDetail.setFailCode(_ctx.stringValue("QueryAuctionsResponse.Data["+ i +"].FailCode"));
data.add(auctionDetail);
}
queryAuctionsResponse.setData(data);
return queryAuctionsResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy