Aliyun.Acs.Push.Transform.V20150827.GetDeviceInfosResponseUnmarshaller.Unmarshall C# (CSharp) Метод

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

public static Unmarshall ( UnmarshallerContext context ) : GetDeviceInfosResponse
context UnmarshallerContext
Результат Aliyun.Acs.Push.Model.V20150827.GetDeviceInfosResponse
        public static GetDeviceInfosResponse Unmarshall(UnmarshallerContext context)
        {
            GetDeviceInfosResponse getDeviceInfosResponse = new GetDeviceInfosResponse();

            getDeviceInfosResponse.HttpResponse = context.HttpResponse;
            getDeviceInfosResponse.RequestId = context.StringValue("GetDeviceInfos.RequestId");

            List<GetDeviceInfosResponse.DeviceInfo> deviceInfos = new List<GetDeviceInfosResponse.DeviceInfo>();
            for (int i = 0; i < context.Length("GetDeviceInfos.DeviceInfos.Length"); i++) {
                GetDeviceInfosResponse.DeviceInfo deviceInfo = new GetDeviceInfosResponse.DeviceInfo();
                deviceInfo.DeviceId = context.StringValue("GetDeviceInfos.DeviceInfos["+ i +"].DeviceId");
                deviceInfo.IsOnline = context.BooleanValue("GetDeviceInfos.DeviceInfos["+ i +"].IsOnline");

                deviceInfos.Add(deviceInfo);
            }
            getDeviceInfosResponse.DeviceInfos = deviceInfos;

            return getDeviceInfosResponse;
        }
GetDeviceInfosResponseUnmarshaller