com.aliyuncs.ims.transform.v20190815.GetVerificationInfoResponseUnmarshaller Maven / Gradle / Ivy
/*
* 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.ims.transform.v20190815;
import com.aliyuncs.ims.model.v20190815.GetVerificationInfoResponse;
import com.aliyuncs.ims.model.v20190815.GetVerificationInfoResponse.SecurityEmailDevice;
import com.aliyuncs.ims.model.v20190815.GetVerificationInfoResponse.SecurityPhoneDevice;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetVerificationInfoResponseUnmarshaller {
public static GetVerificationInfoResponse unmarshall(GetVerificationInfoResponse getVerificationInfoResponse, UnmarshallerContext _ctx) {
getVerificationInfoResponse.setRequestId(_ctx.stringValue("GetVerificationInfoResponse.RequestId"));
SecurityPhoneDevice securityPhoneDevice = new SecurityPhoneDevice();
securityPhoneDevice.setAreaCode(_ctx.stringValue("GetVerificationInfoResponse.SecurityPhoneDevice.AreaCode"));
securityPhoneDevice.setPhoneNumber(_ctx.stringValue("GetVerificationInfoResponse.SecurityPhoneDevice.PhoneNumber"));
securityPhoneDevice.setStatus(_ctx.stringValue("GetVerificationInfoResponse.SecurityPhoneDevice.Status"));
getVerificationInfoResponse.setSecurityPhoneDevice(securityPhoneDevice);
SecurityEmailDevice securityEmailDevice = new SecurityEmailDevice();
securityEmailDevice.setEmail(_ctx.stringValue("GetVerificationInfoResponse.SecurityEmailDevice.Email"));
securityEmailDevice.setStatus(_ctx.stringValue("GetVerificationInfoResponse.SecurityEmailDevice.Status"));
getVerificationInfoResponse.setSecurityEmailDevice(securityEmailDevice);
return getVerificationInfoResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy