Aliyun.Acs.Cdn.Transform.V20141111.DescribeLiveSnapshotConfigResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public static method

public static Unmarshall ( UnmarshallerContext context ) : DescribeLiveSnapshotConfigResponse
context UnmarshallerContext
return Aliyun.Acs.Cdn.Model.V20141111.DescribeLiveSnapshotConfigResponse
        public static DescribeLiveSnapshotConfigResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLiveSnapshotConfigResponse describeLiveSnapshotConfigResponse = new DescribeLiveSnapshotConfigResponse();

            describeLiveSnapshotConfigResponse.HttpResponse = context.HttpResponse;
            describeLiveSnapshotConfigResponse.RequestId = context.StringValue("DescribeLiveSnapshotConfig.RequestId");
            describeLiveSnapshotConfigResponse.PageNum = context.IntegerValue("DescribeLiveSnapshotConfig.PageNum");
            describeLiveSnapshotConfigResponse.PageSize = context.IntegerValue("DescribeLiveSnapshotConfig.PageSize");
            describeLiveSnapshotConfigResponse.Order = context.StringValue("DescribeLiveSnapshotConfig.Order");
            describeLiveSnapshotConfigResponse.TotalNum = context.IntegerValue("DescribeLiveSnapshotConfig.TotalNum");
            describeLiveSnapshotConfigResponse.TotalPage = context.IntegerValue("DescribeLiveSnapshotConfig.TotalPage");

            List<DescribeLiveSnapshotConfigResponse.LiveStreamSnapshotConfig> liveStreamSnapshotConfigList = new List<DescribeLiveSnapshotConfigResponse.LiveStreamSnapshotConfig>();
            for (int i = 0; i < context.Length("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList.Length"); i++) {
                DescribeLiveSnapshotConfigResponse.LiveStreamSnapshotConfig liveStreamSnapshotConfig = new DescribeLiveSnapshotConfigResponse.LiveStreamSnapshotConfig();
                liveStreamSnapshotConfig.DomainName = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].DomainName");
                liveStreamSnapshotConfig.AppName = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].AppName");
                liveStreamSnapshotConfig.TimeInterval = context.IntegerValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].TimeInterval");
                liveStreamSnapshotConfig.OssEndpoint = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].OssEndpoint");
                liveStreamSnapshotConfig.OssBucket = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].OssBucket");
                liveStreamSnapshotConfig.OverwriteOssObject = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].OverwriteOssObject");
                liveStreamSnapshotConfig.SequenceOssObject = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].SequenceOssObject");
                liveStreamSnapshotConfig.CreateTime = context.StringValue("DescribeLiveSnapshotConfig.LiveStreamSnapshotConfigList["+ i +"].CreateTime");

                liveStreamSnapshotConfigList.Add(liveStreamSnapshotConfig);
            }
            describeLiveSnapshotConfigResponse.LiveStreamSnapshotConfigList = liveStreamSnapshotConfigList;

            return describeLiveSnapshotConfigResponse;
        }
DescribeLiveSnapshotConfigResponseUnmarshaller