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

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

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

            listDevicePermitsResponse.HttpResponse = context.HttpResponse;
            listDevicePermitsResponse.RequestId = context.StringValue("ListDevicePermits.RequestId");
            listDevicePermitsResponse.Success = context.BooleanValue("ListDevicePermits.Success");
            listDevicePermitsResponse.ErrorMessage = context.StringValue("ListDevicePermits.ErrorMessage");

            List<ListDevicePermitsResponse.DevicePermission> devicePermissions = new List<ListDevicePermitsResponse.DevicePermission>();
            for (int i = 0; i < context.Length("ListDevicePermits.DevicePermissions.Length"); i++) {
                ListDevicePermitsResponse.DevicePermission devicePermission = new ListDevicePermitsResponse.DevicePermission();
                devicePermission.Id = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].Id");
                devicePermission.GrantType = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].GrantType");
                devicePermission.TopicFullName = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].TopicFullName");
                devicePermission.TopicUserId = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].TopicUserId");

                devicePermissions.Add(devicePermission);
            }
            listDevicePermitsResponse.DevicePermissions = devicePermissions;

            return listDevicePermitsResponse;
        }
ListDevicePermitsResponseUnmarshaller