예제 #1
0
        public static DescribeDomainPvDataResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainPvDataResponse describeDomainPvDataResponse = new DescribeDomainPvDataResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DescribeDomainPvData.RequestId"),
                DomainName   = context.StringValue("DescribeDomainPvData.DomainName"),
                DataInterval = context.StringValue("DescribeDomainPvData.DataInterval"),
                StartTime    = context.StringValue("DescribeDomainPvData.StartTime"),
                EndTime      = context.StringValue("DescribeDomainPvData.EndTime")
            };
            List <DescribeDomainPvDataResponse.UsageData> pvDataInterval = new List <DescribeDomainPvDataResponse.UsageData>();

            for (int i = 0; i < context.Length("DescribeDomainPvData.PvDataInterval.Length"); i++)
            {
                DescribeDomainPvDataResponse.UsageData usageData = new DescribeDomainPvDataResponse.UsageData()
                {
                    TimeStamp = context.StringValue($"DescribeDomainPvData.PvDataInterval[{i}].TimeStamp"),
                    Value     = context.StringValue($"DescribeDomainPvData.PvDataInterval[{i}].Value")
                };
                pvDataInterval.Add(usageData);
            }
            describeDomainPvDataResponse.PvDataInterval = pvDataInterval;

            return(describeDomainPvDataResponse);
        }
예제 #2
0
        public static DescribeDomainPvDataResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainPvDataResponse describeDomainPvDataResponse = new DescribeDomainPvDataResponse();

            describeDomainPvDataResponse.HttpResponse = context.HttpResponse;
            describeDomainPvDataResponse.RequestId    = context.StringValue("DescribeDomainPvData.RequestId");
            describeDomainPvDataResponse.DomainName   = context.StringValue("DescribeDomainPvData.DomainName");
            describeDomainPvDataResponse.DataInterval = context.StringValue("DescribeDomainPvData.DataInterval");
            describeDomainPvDataResponse.StartTime    = context.StringValue("DescribeDomainPvData.StartTime");
            describeDomainPvDataResponse.EndTime      = context.StringValue("DescribeDomainPvData.EndTime");

            List <DescribeDomainPvDataResponse.DescribeDomainPvData_UsageData> describeDomainPvDataResponse_pvDataInterval = new List <DescribeDomainPvDataResponse.DescribeDomainPvData_UsageData>();

            for (int i = 0; i < context.Length("DescribeDomainPvData.PvDataInterval.Length"); i++)
            {
                DescribeDomainPvDataResponse.DescribeDomainPvData_UsageData usageData = new DescribeDomainPvDataResponse.DescribeDomainPvData_UsageData();
                usageData.TimeStamp = context.StringValue("DescribeDomainPvData.PvDataInterval[" + i + "].TimeStamp");
                usageData._Value    = context.StringValue("DescribeDomainPvData.PvDataInterval[" + i + "].Value");

                describeDomainPvDataResponse_pvDataInterval.Add(usageData);
            }
            describeDomainPvDataResponse.PvDataInterval = describeDomainPvDataResponse_pvDataInterval;

            return(describeDomainPvDataResponse);
        }