public static DescribeLiveStreamsOnlineListResponse Unmarshall(UnmarshallerContext context) { DescribeLiveStreamsOnlineListResponse describeLiveStreamsOnlineListResponse = new DescribeLiveStreamsOnlineListResponse(); describeLiveStreamsOnlineListResponse.HttpResponse = context.HttpResponse; describeLiveStreamsOnlineListResponse.RequestId = context.StringValue("DescribeLiveStreamsOnlineList.RequestId"); List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo> describeLiveStreamsOnlineListResponse_onlineInfo = new List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo>(); for (int i = 0; i < context.Length("DescribeLiveStreamsOnlineList.OnlineInfo.Length"); i++) { DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo liveStreamOnlineInfo = new DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo(); liveStreamOnlineInfo.DomainName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].DomainName"); liveStreamOnlineInfo.AppName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].AppName"); liveStreamOnlineInfo.StreamName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].StreamName"); liveStreamOnlineInfo.PublishTime = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishTime"); liveStreamOnlineInfo.PublishUrl = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishUrl"); liveStreamOnlineInfo.PublishDomain = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishDomain"); describeLiveStreamsOnlineListResponse_onlineInfo.Add(liveStreamOnlineInfo); } describeLiveStreamsOnlineListResponse.OnlineInfo = describeLiveStreamsOnlineListResponse_onlineInfo; return(describeLiveStreamsOnlineListResponse); }
public static DescribeLiveStreamsOnlineListResponse Unmarshall(UnmarshallerContext _ctx) { DescribeLiveStreamsOnlineListResponse describeLiveStreamsOnlineListResponse = new DescribeLiveStreamsOnlineListResponse(); describeLiveStreamsOnlineListResponse.HttpResponse = _ctx.HttpResponse; describeLiveStreamsOnlineListResponse.RequestId = _ctx.StringValue("DescribeLiveStreamsOnlineList.RequestId"); describeLiveStreamsOnlineListResponse.PageNum = _ctx.IntegerValue("DescribeLiveStreamsOnlineList.PageNum"); describeLiveStreamsOnlineListResponse.PageSize = _ctx.IntegerValue("DescribeLiveStreamsOnlineList.PageSize"); describeLiveStreamsOnlineListResponse.TotalNum = _ctx.IntegerValue("DescribeLiveStreamsOnlineList.TotalNum"); describeLiveStreamsOnlineListResponse.TotalPage = _ctx.IntegerValue("DescribeLiveStreamsOnlineList.TotalPage"); List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo> describeLiveStreamsOnlineListResponse_onlineInfo = new List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo>(); for (int i = 0; i < _ctx.Length("DescribeLiveStreamsOnlineList.OnlineInfo.Length"); i++) { DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo liveStreamOnlineInfo = new DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo(); liveStreamOnlineInfo.DomainName = _ctx.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].DomainName"); liveStreamOnlineInfo.AppName = _ctx.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].AppName"); liveStreamOnlineInfo.StreamName = _ctx.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].StreamName"); liveStreamOnlineInfo.PublishTime = _ctx.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishTime"); liveStreamOnlineInfo.PublishUrl = _ctx.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishUrl"); describeLiveStreamsOnlineListResponse_onlineInfo.Add(liveStreamOnlineInfo); } describeLiveStreamsOnlineListResponse.OnlineInfo = describeLiveStreamsOnlineListResponse_onlineInfo; return(describeLiveStreamsOnlineListResponse); }
public static DescribeLiveStreamsOnlineListResponse Unmarshall(UnmarshallerContext context) { DescribeLiveStreamsOnlineListResponse describeLiveStreamsOnlineListResponse = new DescribeLiveStreamsOnlineListResponse(); describeLiveStreamsOnlineListResponse.HttpResponse = context.HttpResponse; describeLiveStreamsOnlineListResponse.RequestId = context.StringValue("DescribeLiveStreamsOnlineList.RequestId"); describeLiveStreamsOnlineListResponse.PageNum = context.IntegerValue("DescribeLiveStreamsOnlineList.PageNum"); describeLiveStreamsOnlineListResponse.PageSize = context.IntegerValue("DescribeLiveStreamsOnlineList.PageSize"); describeLiveStreamsOnlineListResponse.TotalNum = context.IntegerValue("DescribeLiveStreamsOnlineList.TotalNum"); describeLiveStreamsOnlineListResponse.TotalPage = context.IntegerValue("DescribeLiveStreamsOnlineList.TotalPage"); List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo> describeLiveStreamsOnlineListResponse_onlineInfo = new List <DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo>(); for (int i = 0; i < context.Length("DescribeLiveStreamsOnlineList.OnlineInfo.Length"); i++) { DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo liveStreamOnlineInfo = new DescribeLiveStreamsOnlineListResponse.DescribeLiveStreamsOnlineList_LiveStreamOnlineInfo(); liveStreamOnlineInfo.DomainName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].DomainName"); liveStreamOnlineInfo.AppName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].AppName"); liveStreamOnlineInfo.StreamName = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].StreamName"); liveStreamOnlineInfo.PublishTime = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishTime"); liveStreamOnlineInfo.PublishUrl = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishUrl"); liveStreamOnlineInfo.PublishDomain = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishDomain"); liveStreamOnlineInfo.PublishType = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].PublishType"); liveStreamOnlineInfo.Transcoded = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].Transcoded"); liveStreamOnlineInfo.TranscodeId = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].TranscodeId"); liveStreamOnlineInfo.ServerIp = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].ServerIp"); liveStreamOnlineInfo.ClientIp = context.StringValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].ClientIp"); liveStreamOnlineInfo.VideoCodecId = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].VideoCodecId"); liveStreamOnlineInfo.VideoDataRate = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].VideoDataRate"); liveStreamOnlineInfo.FrameRate = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].FrameRate"); liveStreamOnlineInfo.Width = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].Width"); liveStreamOnlineInfo.Height = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].Height"); liveStreamOnlineInfo.AudioCodecId = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].AudioCodecId"); liveStreamOnlineInfo.AudioDataRate = context.IntegerValue("DescribeLiveStreamsOnlineList.OnlineInfo[" + i + "].AudioDataRate"); describeLiveStreamsOnlineListResponse_onlineInfo.Add(liveStreamOnlineInfo); } describeLiveStreamsOnlineListResponse.OnlineInfo = describeLiveStreamsOnlineListResponse_onlineInfo; return(describeLiveStreamsOnlineListResponse); }