diff --git a/aliyun-java-sdk-iqs/ChangeLog.txt b/aliyun-java-sdk-iqs/ChangeLog.txt new file mode 100644 index 0000000000..9a87e82095 --- /dev/null +++ b/aliyun-java-sdk-iqs/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-10-16 Version: 1.0.0 +- Generated 2024-07-12 for `IQS`. + diff --git a/aliyun-java-sdk-iqs/pom.xml b/aliyun-java-sdk-iqs/pom.xml new file mode 100644 index 0000000000..7ad40098ed --- /dev/null +++ b/aliyun-java-sdk-iqs/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.aliyun + aliyun-java-sdk-iqs + jar + 1.0.0 + aliyun-java-sdk-iqs + http://www.aliyun.com + Aliyun Open API SDK for Java +Copyright (C) Alibaba Cloud Computing +All rights reserved. +版权所有 (C)阿里云计算有限公司 +http://www.aliyun.com + + + sonatype-nexus-snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + com.aliyun + aliyun-java-sdk-core + true + [4.4.9,5.0.0) + + + com.google.code.gson + gson + 2.8.9 + + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git + scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git + https://github.com/aliyun/aliyun-openapi-java-sdk + + + + aliyunproducts + Aliyun SDK + aliyunsdk@aliyun.com + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + UTF-8 + none + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + sonatype-nexus-staging + https://s01.oss.sonatype.org/ + true + + + + + \ No newline at end of file diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneRequest.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneRequest.java new file mode 100644 index 0000000000..f3ef661f66 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneRequest.java @@ -0,0 +1,39 @@ +/* + * 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.iqs.model.v20240712; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CommonQueryBySceneRequest extends RoaAcsRequest { + + public CommonQueryBySceneRequest() { + super("IQS", "2024-07-12", "CommonQueryByScene"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/amap-function-call-agent/iqs-agent-service/v2/nl/common"); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return CommonQueryBySceneResponse.class; + } + +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneResponse.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneResponse.java new file mode 100644 index 0000000000..44d5b24b70 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/CommonQueryBySceneResponse.java @@ -0,0 +1,286 @@ +/* + * 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.iqs.model.v20240712; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.iqs.transform.v20240712.CommonQueryBySceneResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CommonQueryBySceneResponse extends AcsResponse { + + private List data; + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String address; + + private String cityCode; + + private String cityName; + + private String districtCode; + + private String districtName; + + private String id; + + private String latitude; + + private String longitude; + + private String name; + + private String provinceCode; + + private String provinceName; + + private String typeCode; + + private String types; + + private List images; + + private Metadata metadata; + + public String getAddress() { + return this.address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getCityCode() { + return this.cityCode; + } + + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + public String getCityName() { + return this.cityName; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getDistrictCode() { + return this.districtCode; + } + + public void setDistrictCode(String districtCode) { + this.districtCode = districtCode; + } + + public String getDistrictName() { + return this.districtName; + } + + public void setDistrictName(String districtName) { + this.districtName = districtName; + } + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatitude() { + return this.latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return this.longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getProvinceCode() { + return this.provinceCode; + } + + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + + public String getProvinceName() { + return this.provinceName; + } + + public void setProvinceName(String provinceName) { + this.provinceName = provinceName; + } + + public String getTypeCode() { + return this.typeCode; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getTypes() { + return this.types; + } + + public void setTypes(String types) { + this.types = types; + } + + public List getImages() { + return this.images; + } + + public void setImages(List images) { + this.images = images; + } + + public Metadata getMetadata() { + return this.metadata; + } + + public void setMetadata(Metadata metadata) { + this.metadata = metadata; + } + + public static class ImagesItem { + + private String title; + + private String url; + + public String getTitle() { + return this.title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + } + + public static class Metadata { + + private String businessArea; + + private String dailyOpeningHours; + + private String mainTag; + + private String phone; + + private String score; + + private String weeklyOpeningDays; + + public String getBusinessArea() { + return this.businessArea; + } + + public void setBusinessArea(String businessArea) { + this.businessArea = businessArea; + } + + public String getDailyOpeningHours() { + return this.dailyOpeningHours; + } + + public void setDailyOpeningHours(String dailyOpeningHours) { + this.dailyOpeningHours = dailyOpeningHours; + } + + public String getMainTag() { + return this.mainTag; + } + + public void setMainTag(String mainTag) { + this.mainTag = mainTag; + } + + public String getPhone() { + return this.phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getScore() { + return this.score; + } + + public void setScore(String score) { + this.score = score; + } + + public String getWeeklyOpeningDays() { + return this.weeklyOpeningDays; + } + + public void setWeeklyOpeningDays(String weeklyOpeningDays) { + this.weeklyOpeningDays = weeklyOpeningDays; + } + } + } + + @Override + public CommonQueryBySceneResponse getInstance(UnmarshallerContext context) { + return CommonQueryBySceneResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsRequest.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsRequest.java new file mode 100644 index 0000000000..72fcc49dfc --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsRequest.java @@ -0,0 +1,39 @@ +/* + * 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.iqs.model.v20240712; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class QueryAttractionsRequest extends RoaAcsRequest { + + public QueryAttractionsRequest() { + super("IQS", "2024-07-12", "QueryAttractions"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/amap-function-call-agent/iqs-agent-service/v1/nl/attractions"); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return QueryAttractionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsResponse.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsResponse.java new file mode 100644 index 0000000000..7dafc82ef6 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryAttractionsResponse.java @@ -0,0 +1,309 @@ +/* + * 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.iqs.model.v20240712; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.iqs.transform.v20240712.QueryAttractionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryAttractionsResponse extends AcsResponse { + + private String requestId; + + private QueryResult queryResult; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public QueryResult getQueryResult() { + return this.queryResult; + } + + public void setQueryResult(QueryResult queryResult) { + this.queryResult = queryResult; + } + + public static class QueryResult { + + private List data; + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String address; + + private String cityCode; + + private String cityName; + + private String districtCode; + + private String districtName; + + private String id; + + private String latitude; + + private String longitude; + + private String name; + + private String provinceCode; + + private String provinceName; + + private String typeCode; + + private String types; + + private List images; + + private Metadata metadata; + + public String getAddress() { + return this.address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getCityCode() { + return this.cityCode; + } + + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + public String getCityName() { + return this.cityName; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getDistrictCode() { + return this.districtCode; + } + + public void setDistrictCode(String districtCode) { + this.districtCode = districtCode; + } + + public String getDistrictName() { + return this.districtName; + } + + public void setDistrictName(String districtName) { + this.districtName = districtName; + } + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatitude() { + return this.latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return this.longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getProvinceCode() { + return this.provinceCode; + } + + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + + public String getProvinceName() { + return this.provinceName; + } + + public void setProvinceName(String provinceName) { + this.provinceName = provinceName; + } + + public String getTypeCode() { + return this.typeCode; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getTypes() { + return this.types; + } + + public void setTypes(String types) { + this.types = types; + } + + public List getImages() { + return this.images; + } + + public void setImages(List images) { + this.images = images; + } + + public Metadata getMetadata() { + return this.metadata; + } + + public void setMetadata(Metadata metadata) { + this.metadata = metadata; + } + + public static class ImagesItem { + + private String title; + + private String url; + + public String getTitle() { + return this.title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + } + + public static class Metadata { + + private String businessArea; + + private String dailyOpeningHours; + + private String mainTag; + + private String phone; + + private String score; + + private String weeklyOpeningDays; + + public String getBusinessArea() { + return this.businessArea; + } + + public void setBusinessArea(String businessArea) { + this.businessArea = businessArea; + } + + public String getDailyOpeningHours() { + return this.dailyOpeningHours; + } + + public void setDailyOpeningHours(String dailyOpeningHours) { + this.dailyOpeningHours = dailyOpeningHours; + } + + public String getMainTag() { + return this.mainTag; + } + + public void setMainTag(String mainTag) { + this.mainTag = mainTag; + } + + public String getPhone() { + return this.phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getScore() { + return this.score; + } + + public void setScore(String score) { + this.score = score; + } + + public String getWeeklyOpeningDays() { + return this.weeklyOpeningDays; + } + + public void setWeeklyOpeningDays(String weeklyOpeningDays) { + this.weeklyOpeningDays = weeklyOpeningDays; + } + } + } + } + + @Override + public QueryAttractionsResponse getInstance(UnmarshallerContext context) { + return QueryAttractionsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsRequest.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsRequest.java new file mode 100644 index 0000000000..89cd9dd6d2 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsRequest.java @@ -0,0 +1,39 @@ +/* + * 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.iqs.model.v20240712; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class QueryHotelsRequest extends RoaAcsRequest { + + public QueryHotelsRequest() { + super("IQS", "2024-07-12", "QueryHotels"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/amap-function-call-agent/iqs-agent-service/v1/nl/hotels"); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return QueryHotelsResponse.class; + } + +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsResponse.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsResponse.java new file mode 100644 index 0000000000..6fc4cbea9b --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryHotelsResponse.java @@ -0,0 +1,309 @@ +/* + * 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.iqs.model.v20240712; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.iqs.transform.v20240712.QueryHotelsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryHotelsResponse extends AcsResponse { + + private String requestId; + + private QueryResult queryResult; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public QueryResult getQueryResult() { + return this.queryResult; + } + + public void setQueryResult(QueryResult queryResult) { + this.queryResult = queryResult; + } + + public static class QueryResult { + + private List data; + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String address; + + private String cityCode; + + private String cityName; + + private String districtCode; + + private String districtName; + + private String id; + + private String latitude; + + private String longitude; + + private String name; + + private String provinceCode; + + private String provinceName; + + private String typeCode; + + private String types; + + private List images; + + private Metadata metadata; + + public String getAddress() { + return this.address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getCityCode() { + return this.cityCode; + } + + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + public String getCityName() { + return this.cityName; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getDistrictCode() { + return this.districtCode; + } + + public void setDistrictCode(String districtCode) { + this.districtCode = districtCode; + } + + public String getDistrictName() { + return this.districtName; + } + + public void setDistrictName(String districtName) { + this.districtName = districtName; + } + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatitude() { + return this.latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return this.longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getProvinceCode() { + return this.provinceCode; + } + + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + + public String getProvinceName() { + return this.provinceName; + } + + public void setProvinceName(String provinceName) { + this.provinceName = provinceName; + } + + public String getTypeCode() { + return this.typeCode; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getTypes() { + return this.types; + } + + public void setTypes(String types) { + this.types = types; + } + + public List getImages() { + return this.images; + } + + public void setImages(List images) { + this.images = images; + } + + public Metadata getMetadata() { + return this.metadata; + } + + public void setMetadata(Metadata metadata) { + this.metadata = metadata; + } + + public static class ImagesItem { + + private String title; + + private String url; + + public String getTitle() { + return this.title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + } + + public static class Metadata { + + private String businessArea; + + private String dailyOpeningHours; + + private String mainTag; + + private String phone; + + private String score; + + private String weeklyOpeningDays; + + public String getBusinessArea() { + return this.businessArea; + } + + public void setBusinessArea(String businessArea) { + this.businessArea = businessArea; + } + + public String getDailyOpeningHours() { + return this.dailyOpeningHours; + } + + public void setDailyOpeningHours(String dailyOpeningHours) { + this.dailyOpeningHours = dailyOpeningHours; + } + + public String getMainTag() { + return this.mainTag; + } + + public void setMainTag(String mainTag) { + this.mainTag = mainTag; + } + + public String getPhone() { + return this.phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getScore() { + return this.score; + } + + public void setScore(String score) { + this.score = score; + } + + public String getWeeklyOpeningDays() { + return this.weeklyOpeningDays; + } + + public void setWeeklyOpeningDays(String weeklyOpeningDays) { + this.weeklyOpeningDays = weeklyOpeningDays; + } + } + } + } + + @Override + public QueryHotelsResponse getInstance(UnmarshallerContext context) { + return QueryHotelsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsRequest.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsRequest.java new file mode 100644 index 0000000000..0637124982 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsRequest.java @@ -0,0 +1,39 @@ +/* + * 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.iqs.model.v20240712; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class QueryRestaurantsRequest extends RoaAcsRequest { + + public QueryRestaurantsRequest() { + super("IQS", "2024-07-12", "QueryRestaurants"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/amap-function-call-agent/iqs-agent-service/v1/nl/restaurants"); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return QueryRestaurantsResponse.class; + } + +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsResponse.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsResponse.java new file mode 100644 index 0000000000..95a4989c4f --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/model/v20240712/QueryRestaurantsResponse.java @@ -0,0 +1,309 @@ +/* + * 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.iqs.model.v20240712; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.iqs.transform.v20240712.QueryRestaurantsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryRestaurantsResponse extends AcsResponse { + + private String requestId; + + private QueryResult queryResult; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public QueryResult getQueryResult() { + return this.queryResult; + } + + public void setQueryResult(QueryResult queryResult) { + this.queryResult = queryResult; + } + + public static class QueryResult { + + private List data; + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String address; + + private String cityCode; + + private String cityName; + + private String districtCode; + + private String districtName; + + private String id; + + private String latitude; + + private String longitude; + + private String name; + + private String provinceCode; + + private String provinceName; + + private String typeCode; + + private String types; + + private List images; + + private Metadata metadata; + + public String getAddress() { + return this.address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getCityCode() { + return this.cityCode; + } + + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + public String getCityName() { + return this.cityName; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getDistrictCode() { + return this.districtCode; + } + + public void setDistrictCode(String districtCode) { + this.districtCode = districtCode; + } + + public String getDistrictName() { + return this.districtName; + } + + public void setDistrictName(String districtName) { + this.districtName = districtName; + } + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatitude() { + return this.latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return this.longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getProvinceCode() { + return this.provinceCode; + } + + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + + public String getProvinceName() { + return this.provinceName; + } + + public void setProvinceName(String provinceName) { + this.provinceName = provinceName; + } + + public String getTypeCode() { + return this.typeCode; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getTypes() { + return this.types; + } + + public void setTypes(String types) { + this.types = types; + } + + public List getImages() { + return this.images; + } + + public void setImages(List images) { + this.images = images; + } + + public Metadata getMetadata() { + return this.metadata; + } + + public void setMetadata(Metadata metadata) { + this.metadata = metadata; + } + + public static class ImagesItem { + + private String title; + + private String url; + + public String getTitle() { + return this.title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + } + + public static class Metadata { + + private String businessArea; + + private String dailyOpeningHours; + + private String mainTag; + + private String phone; + + private String score; + + private String weeklyOpeningDays; + + public String getBusinessArea() { + return this.businessArea; + } + + public void setBusinessArea(String businessArea) { + this.businessArea = businessArea; + } + + public String getDailyOpeningHours() { + return this.dailyOpeningHours; + } + + public void setDailyOpeningHours(String dailyOpeningHours) { + this.dailyOpeningHours = dailyOpeningHours; + } + + public String getMainTag() { + return this.mainTag; + } + + public void setMainTag(String mainTag) { + this.mainTag = mainTag; + } + + public String getPhone() { + return this.phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getScore() { + return this.score; + } + + public void setScore(String score) { + this.score = score; + } + + public String getWeeklyOpeningDays() { + return this.weeklyOpeningDays; + } + + public void setWeeklyOpeningDays(String weeklyOpeningDays) { + this.weeklyOpeningDays = weeklyOpeningDays; + } + } + } + } + + @Override + public QueryRestaurantsResponse getInstance(UnmarshallerContext context) { + return QueryRestaurantsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/CommonQueryBySceneResponseUnmarshaller.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/CommonQueryBySceneResponseUnmarshaller.java new file mode 100644 index 0000000000..fbe100d431 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/CommonQueryBySceneResponseUnmarshaller.java @@ -0,0 +1,74 @@ +/* + * 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.iqs.transform.v20240712; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.iqs.model.v20240712.CommonQueryBySceneResponse; +import com.aliyuncs.iqs.model.v20240712.CommonQueryBySceneResponse.DataItem; +import com.aliyuncs.iqs.model.v20240712.CommonQueryBySceneResponse.DataItem.ImagesItem; +import com.aliyuncs.iqs.model.v20240712.CommonQueryBySceneResponse.DataItem.Metadata; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CommonQueryBySceneResponseUnmarshaller { + + public static CommonQueryBySceneResponse unmarshall(CommonQueryBySceneResponse commonQueryBySceneResponse, UnmarshallerContext _ctx) { + + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CommonQueryBySceneResponse.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setAddress(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].address")); + dataItem.setCityCode(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].cityCode")); + dataItem.setCityName(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].cityName")); + dataItem.setDistrictCode(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].districtCode")); + dataItem.setDistrictName(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].districtName")); + dataItem.setId(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].id")); + dataItem.setLatitude(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].latitude")); + dataItem.setLongitude(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].longitude")); + dataItem.setName(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].name")); + dataItem.setProvinceCode(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].provinceCode")); + dataItem.setProvinceName(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].provinceName")); + dataItem.setTypeCode(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].typeCode")); + dataItem.setTypes(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].types")); + + Metadata metadata = new Metadata(); + metadata.setBusinessArea(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.businessArea")); + metadata.setDailyOpeningHours(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.dailyOpeningHours")); + metadata.setMainTag(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.mainTag")); + metadata.setPhone(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.phone")); + metadata.setScore(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.score")); + metadata.setWeeklyOpeningDays(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].metadata.weeklyOpeningDays")); + dataItem.setMetadata(metadata); + + List images = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("CommonQueryBySceneResponse.data["+ i +"].images.Length"); j++) { + ImagesItem imagesItem = new ImagesItem(); + imagesItem.setTitle(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].images["+ j +"].title")); + imagesItem.setUrl(_ctx.stringValue("CommonQueryBySceneResponse.data["+ i +"].images["+ j +"].url")); + + images.add(imagesItem); + } + dataItem.setImages(images); + + data.add(dataItem); + } + commonQueryBySceneResponse.setData(data); + + return commonQueryBySceneResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryAttractionsResponseUnmarshaller.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryAttractionsResponseUnmarshaller.java new file mode 100644 index 0000000000..1c70fc804f --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryAttractionsResponseUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * 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.iqs.transform.v20240712; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.iqs.model.v20240712.QueryAttractionsResponse; +import com.aliyuncs.iqs.model.v20240712.QueryAttractionsResponse.QueryResult; +import com.aliyuncs.iqs.model.v20240712.QueryAttractionsResponse.QueryResult.DataItem; +import com.aliyuncs.iqs.model.v20240712.QueryAttractionsResponse.QueryResult.DataItem.ImagesItem; +import com.aliyuncs.iqs.model.v20240712.QueryAttractionsResponse.QueryResult.DataItem.Metadata; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryAttractionsResponseUnmarshaller { + + public static QueryAttractionsResponse unmarshall(QueryAttractionsResponse queryAttractionsResponse, UnmarshallerContext _ctx) { + + queryAttractionsResponse.setRequestId(_ctx.stringValue("QueryAttractionsResponse.requestId")); + + QueryResult queryResult = new QueryResult(); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("QueryAttractionsResponse.queryResult.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setAddress(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].address")); + dataItem.setCityCode(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].cityCode")); + dataItem.setCityName(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].cityName")); + dataItem.setDistrictCode(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].districtCode")); + dataItem.setDistrictName(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].districtName")); + dataItem.setId(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].id")); + dataItem.setLatitude(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].latitude")); + dataItem.setLongitude(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].longitude")); + dataItem.setName(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].name")); + dataItem.setProvinceCode(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].provinceCode")); + dataItem.setProvinceName(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].provinceName")); + dataItem.setTypeCode(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].typeCode")); + dataItem.setTypes(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].types")); + + Metadata metadata = new Metadata(); + metadata.setBusinessArea(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.businessArea")); + metadata.setDailyOpeningHours(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.dailyOpeningHours")); + metadata.setMainTag(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.mainTag")); + metadata.setPhone(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.phone")); + metadata.setScore(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.score")); + metadata.setWeeklyOpeningDays(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].metadata.weeklyOpeningDays")); + dataItem.setMetadata(metadata); + + List images = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("QueryAttractionsResponse.queryResult.data["+ i +"].images.Length"); j++) { + ImagesItem imagesItem = new ImagesItem(); + imagesItem.setTitle(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].images["+ j +"].title")); + imagesItem.setUrl(_ctx.stringValue("QueryAttractionsResponse.queryResult.data["+ i +"].images["+ j +"].url")); + + images.add(imagesItem); + } + dataItem.setImages(images); + + data.add(dataItem); + } + queryResult.setData(data); + queryAttractionsResponse.setQueryResult(queryResult); + + return queryAttractionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryHotelsResponseUnmarshaller.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryHotelsResponseUnmarshaller.java new file mode 100644 index 0000000000..248ddd3c56 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryHotelsResponseUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * 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.iqs.transform.v20240712; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.iqs.model.v20240712.QueryHotelsResponse; +import com.aliyuncs.iqs.model.v20240712.QueryHotelsResponse.QueryResult; +import com.aliyuncs.iqs.model.v20240712.QueryHotelsResponse.QueryResult.DataItem; +import com.aliyuncs.iqs.model.v20240712.QueryHotelsResponse.QueryResult.DataItem.ImagesItem; +import com.aliyuncs.iqs.model.v20240712.QueryHotelsResponse.QueryResult.DataItem.Metadata; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryHotelsResponseUnmarshaller { + + public static QueryHotelsResponse unmarshall(QueryHotelsResponse queryHotelsResponse, UnmarshallerContext _ctx) { + + queryHotelsResponse.setRequestId(_ctx.stringValue("QueryHotelsResponse.requestId")); + + QueryResult queryResult = new QueryResult(); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("QueryHotelsResponse.queryResult.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setAddress(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].address")); + dataItem.setCityCode(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].cityCode")); + dataItem.setCityName(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].cityName")); + dataItem.setDistrictCode(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].districtCode")); + dataItem.setDistrictName(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].districtName")); + dataItem.setId(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].id")); + dataItem.setLatitude(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].latitude")); + dataItem.setLongitude(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].longitude")); + dataItem.setName(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].name")); + dataItem.setProvinceCode(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].provinceCode")); + dataItem.setProvinceName(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].provinceName")); + dataItem.setTypeCode(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].typeCode")); + dataItem.setTypes(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].types")); + + Metadata metadata = new Metadata(); + metadata.setBusinessArea(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.businessArea")); + metadata.setDailyOpeningHours(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.dailyOpeningHours")); + metadata.setMainTag(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.mainTag")); + metadata.setPhone(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.phone")); + metadata.setScore(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.score")); + metadata.setWeeklyOpeningDays(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].metadata.weeklyOpeningDays")); + dataItem.setMetadata(metadata); + + List images = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("QueryHotelsResponse.queryResult.data["+ i +"].images.Length"); j++) { + ImagesItem imagesItem = new ImagesItem(); + imagesItem.setTitle(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].images["+ j +"].title")); + imagesItem.setUrl(_ctx.stringValue("QueryHotelsResponse.queryResult.data["+ i +"].images["+ j +"].url")); + + images.add(imagesItem); + } + dataItem.setImages(images); + + data.add(dataItem); + } + queryResult.setData(data); + queryHotelsResponse.setQueryResult(queryResult); + + return queryHotelsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryRestaurantsResponseUnmarshaller.java b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryRestaurantsResponseUnmarshaller.java new file mode 100644 index 0000000000..97cb170833 --- /dev/null +++ b/aliyun-java-sdk-iqs/src/main/java/com/aliyuncs/iqs/transform/v20240712/QueryRestaurantsResponseUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * 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.iqs.transform.v20240712; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.iqs.model.v20240712.QueryRestaurantsResponse; +import com.aliyuncs.iqs.model.v20240712.QueryRestaurantsResponse.QueryResult; +import com.aliyuncs.iqs.model.v20240712.QueryRestaurantsResponse.QueryResult.DataItem; +import com.aliyuncs.iqs.model.v20240712.QueryRestaurantsResponse.QueryResult.DataItem.ImagesItem; +import com.aliyuncs.iqs.model.v20240712.QueryRestaurantsResponse.QueryResult.DataItem.Metadata; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryRestaurantsResponseUnmarshaller { + + public static QueryRestaurantsResponse unmarshall(QueryRestaurantsResponse queryRestaurantsResponse, UnmarshallerContext _ctx) { + + queryRestaurantsResponse.setRequestId(_ctx.stringValue("QueryRestaurantsResponse.requestId")); + + QueryResult queryResult = new QueryResult(); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("QueryRestaurantsResponse.queryResult.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setAddress(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].address")); + dataItem.setCityCode(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].cityCode")); + dataItem.setCityName(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].cityName")); + dataItem.setDistrictCode(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].districtCode")); + dataItem.setDistrictName(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].districtName")); + dataItem.setId(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].id")); + dataItem.setLatitude(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].latitude")); + dataItem.setLongitude(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].longitude")); + dataItem.setName(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].name")); + dataItem.setProvinceCode(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].provinceCode")); + dataItem.setProvinceName(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].provinceName")); + dataItem.setTypeCode(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].typeCode")); + dataItem.setTypes(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].types")); + + Metadata metadata = new Metadata(); + metadata.setBusinessArea(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.businessArea")); + metadata.setDailyOpeningHours(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.dailyOpeningHours")); + metadata.setMainTag(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.mainTag")); + metadata.setPhone(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.phone")); + metadata.setScore(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.score")); + metadata.setWeeklyOpeningDays(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].metadata.weeklyOpeningDays")); + dataItem.setMetadata(metadata); + + List images = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("QueryRestaurantsResponse.queryResult.data["+ i +"].images.Length"); j++) { + ImagesItem imagesItem = new ImagesItem(); + imagesItem.setTitle(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].images["+ j +"].title")); + imagesItem.setUrl(_ctx.stringValue("QueryRestaurantsResponse.queryResult.data["+ i +"].images["+ j +"].url")); + + images.add(imagesItem); + } + dataItem.setImages(images); + + data.add(dataItem); + } + queryResult.setData(data); + queryRestaurantsResponse.setQueryResult(queryResult); + + return queryRestaurantsResponse; + } +} \ No newline at end of file