com.aliyuncs.vod.transform.v20170321.GetMediaRefreshJobsResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-vod Show documentation
Show all versions of aliyun-java-sdk-vod Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The 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.vod.transform.v20170321;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.vod.model.v20170321.GetMediaRefreshJobsResponse;
import com.aliyuncs.vod.model.v20170321.GetMediaRefreshJobsResponse.MediaRefreshJob;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetMediaRefreshJobsResponseUnmarshaller {
public static GetMediaRefreshJobsResponse unmarshall(GetMediaRefreshJobsResponse getMediaRefreshJobsResponse, UnmarshallerContext _ctx) {
getMediaRefreshJobsResponse.setRequestId(_ctx.stringValue("GetMediaRefreshJobsResponse.RequestId"));
List mediaRefreshJobs = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("GetMediaRefreshJobsResponse.MediaRefreshJobs.Length"); i++) {
MediaRefreshJob mediaRefreshJob = new MediaRefreshJob();
mediaRefreshJob.setMediaRefreshJobId(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].MediaRefreshJobId"));
mediaRefreshJob.setMediaId(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].MediaId"));
mediaRefreshJob.setTaskType(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].TaskType"));
mediaRefreshJob.setFilterPolicy(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].FilterPolicy"));
mediaRefreshJob.setStatus(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].Status"));
mediaRefreshJob.setSuccessPlayUrls(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].SuccessPlayUrls"));
mediaRefreshJob.setTaskIds(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].TaskIds"));
mediaRefreshJob.setErrorCode(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].ErrorCode"));
mediaRefreshJob.setErrorMessage(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].ErrorMessage"));
mediaRefreshJob.setUserData(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].UserData"));
mediaRefreshJob.setGmtCreate(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].GmtCreate"));
mediaRefreshJob.setGmtModified(_ctx.stringValue("GetMediaRefreshJobsResponse.MediaRefreshJobs["+ i +"].GmtModified"));
mediaRefreshJobs.add(mediaRefreshJob);
}
getMediaRefreshJobsResponse.setMediaRefreshJobs(mediaRefreshJobs);
return getMediaRefreshJobsResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy