public static UpdateEslDeviceLightResponse Unmarshall(UnmarshallerContext context) { UpdateEslDeviceLightResponse updateEslDeviceLightResponse = new UpdateEslDeviceLightResponse(); updateEslDeviceLightResponse.HttpResponse = context.HttpResponse; updateEslDeviceLightResponse.ErrorMessage = context.StringValue("UpdateEslDeviceLight.ErrorMessage"); updateEslDeviceLightResponse.ErrorCode = context.StringValue("UpdateEslDeviceLight.ErrorCode"); updateEslDeviceLightResponse.Message = context.StringValue("UpdateEslDeviceLight.Message"); updateEslDeviceLightResponse.SuccessCount = context.IntegerValue("UpdateEslDeviceLight.SuccessCount"); updateEslDeviceLightResponse.FailCount = context.IntegerValue("UpdateEslDeviceLight.FailCount"); updateEslDeviceLightResponse.DynamicCode = context.StringValue("UpdateEslDeviceLight.DynamicCode"); updateEslDeviceLightResponse.Code = context.StringValue("UpdateEslDeviceLight.Code"); updateEslDeviceLightResponse.DynamicMessage = context.StringValue("UpdateEslDeviceLight.DynamicMessage"); updateEslDeviceLightResponse.RequestId = context.StringValue("UpdateEslDeviceLight.RequestId"); updateEslDeviceLightResponse.Success = context.BooleanValue("UpdateEslDeviceLight.Success"); List <UpdateEslDeviceLightResponse.UpdateEslDeviceLight_LightFailEslInfo> updateEslDeviceLightResponse_lightFailEslInfos = new List <UpdateEslDeviceLightResponse.UpdateEslDeviceLight_LightFailEslInfo>(); for (int i = 0; i < context.Length("UpdateEslDeviceLight.LightFailEslInfos.Length"); i++) { UpdateEslDeviceLightResponse.UpdateEslDeviceLight_LightFailEslInfo lightFailEslInfo = new UpdateEslDeviceLightResponse.UpdateEslDeviceLight_LightFailEslInfo(); lightFailEslInfo.ErrorMessage = context.StringValue("UpdateEslDeviceLight.LightFailEslInfos[" + i + "].ErrorMessage"); lightFailEslInfo.EslBarCode = context.StringValue("UpdateEslDeviceLight.LightFailEslInfos[" + i + "].EslBarCode"); updateEslDeviceLightResponse_lightFailEslInfos.Add(lightFailEslInfo); } updateEslDeviceLightResponse.LightFailEslInfos = updateEslDeviceLightResponse_lightFailEslInfos; return(updateEslDeviceLightResponse); }
public static UpdateEslDeviceLightResponse Unmarshall(UnmarshallerContext context) { UpdateEslDeviceLightResponse updateEslDeviceLightResponse = new UpdateEslDeviceLightResponse(); updateEslDeviceLightResponse.HttpResponse = context.HttpResponse; updateEslDeviceLightResponse.ErrorMessage = context.StringValue("UpdateEslDeviceLight.ErrorMessage"); updateEslDeviceLightResponse.ErrorCode = context.StringValue("UpdateEslDeviceLight.ErrorCode"); updateEslDeviceLightResponse.FailEslBarCodes = context.StringValue("UpdateEslDeviceLight.FailEslBarCodes"); updateEslDeviceLightResponse.Message = context.StringValue("UpdateEslDeviceLight.Message"); updateEslDeviceLightResponse.SuccessCount = context.LongValue("UpdateEslDeviceLight.SuccessCount"); updateEslDeviceLightResponse.FailCount = context.LongValue("UpdateEslDeviceLight.FailCount"); updateEslDeviceLightResponse.DynamicCode = context.StringValue("UpdateEslDeviceLight.DynamicCode"); updateEslDeviceLightResponse.Code = context.StringValue("UpdateEslDeviceLight.Code"); updateEslDeviceLightResponse.DynamicMessage = context.StringValue("UpdateEslDeviceLight.DynamicMessage"); updateEslDeviceLightResponse.RequestId = context.StringValue("UpdateEslDeviceLight.RequestId"); updateEslDeviceLightResponse.Success = context.BooleanValue("UpdateEslDeviceLight.Success"); return(updateEslDeviceLightResponse); }