Aliyun.Acs.Iot.Transform.V20160530.BatchGetDeviceStateResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный статический Метод

public static Unmarshall ( UnmarshallerContext context ) : BatchGetDeviceStateResponse
context UnmarshallerContext
Результат Aliyun.Acs.Iot.Model.V20160530.BatchGetDeviceStateResponse
        public static BatchGetDeviceStateResponse Unmarshall(UnmarshallerContext context)
        {
            BatchGetDeviceStateResponse batchGetDeviceStateResponse = new BatchGetDeviceStateResponse();

            batchGetDeviceStateResponse.HttpResponse = context.HttpResponse;
            batchGetDeviceStateResponse.RequestId = context.StringValue("BatchGetDeviceState.RequestId");
            batchGetDeviceStateResponse.Success = context.BooleanValue("BatchGetDeviceState.Success");
            batchGetDeviceStateResponse.ErrorMessage = context.StringValue("BatchGetDeviceState.ErrorMessage");

            List<BatchGetDeviceStateResponse.DeviceStatus> deviceStatusList = new List<BatchGetDeviceStateResponse.DeviceStatus>();
            for (int i = 0; i < context.Length("BatchGetDeviceState.DeviceStatusList.Length"); i++) {
                BatchGetDeviceStateResponse.DeviceStatus deviceStatus = new BatchGetDeviceStateResponse.DeviceStatus();
                deviceStatus.DeviceId = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].DeviceId");
                deviceStatus.DeviceName = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].DeviceName");
                deviceStatus.Status = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].Status");
                deviceStatus.AsAddress = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].AsAddress");

                deviceStatusList.Add(deviceStatus);
            }
            batchGetDeviceStateResponse.DeviceStatusList = deviceStatusList;

            return batchGetDeviceStateResponse;
        }
BatchGetDeviceStateResponseUnmarshaller