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

com.aliyuncs.cspro.transform.v20180315.GetSecCheckResultDetailResponseUnmarshaller 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: 1.3.2
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.cspro.transform.v20180315;

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

import com.aliyuncs.cspro.model.v20180315.GetSecCheckResultDetailResponse;
import com.aliyuncs.cspro.model.v20180315.GetSecCheckResultDetailResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;


public class GetSecCheckResultDetailResponseUnmarshaller {

	public static GetSecCheckResultDetailResponse unmarshall(GetSecCheckResultDetailResponse getSecCheckResultDetailResponse, UnmarshallerContext context) {
		
		getSecCheckResultDetailResponse.setRequestId(context.stringValue("GetSecCheckResultDetailResponse.RequestId"));
		getSecCheckResultDetailResponse.setSuccess(context.booleanValue("GetSecCheckResultDetailResponse.Success"));
		getSecCheckResultDetailResponse.setCode(context.stringValue("GetSecCheckResultDetailResponse.Code"));
		getSecCheckResultDetailResponse.setMessage(context.stringValue("GetSecCheckResultDetailResponse.Message"));

		Data data = new Data();
		data.setId(context.longValue("GetSecCheckResultDetailResponse.Data.Id"));
		data.setResultId(context.longValue("GetSecCheckResultDetailResponse.Data.ResultId"));
		data.setKeywords(context.stringValue("GetSecCheckResultDetailResponse.Data.Keywords"));
		data.setContent(context.stringValue("GetSecCheckResultDetailResponse.Data.Content"));

		List picUrls = new ArrayList();
		for (int i = 0; i < context.lengthValue("GetSecCheckResultDetailResponse.Data.PicUrls.Length"); i++) {
			picUrls.add(context.stringValue("GetSecCheckResultDetailResponse.Data.PicUrls["+ i +"]"));
		}
		data.setPicUrls(picUrls);

		List snapshotKeys = new ArrayList();
		for (int i = 0; i < context.lengthValue("GetSecCheckResultDetailResponse.Data.SnapshotKeys.Length"); i++) {
			snapshotKeys.add(context.stringValue("GetSecCheckResultDetailResponse.Data.SnapshotKeys["+ i +"]"));
		}
		data.setSnapshotKeys(snapshotKeys);
		getSecCheckResultDetailResponse.setData(data);
	 
	 	return getSecCheckResultDetailResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy