public static StopMixStreamsServiceResponse Unmarshall(UnmarshallerContext context) { StopMixStreamsServiceResponse stopMixStreamsServiceResponse = new StopMixStreamsServiceResponse(); stopMixStreamsServiceResponse.HttpResponse = context.HttpResponse; stopMixStreamsServiceResponse.RequestId = context.StringValue("StopMixStreamsService.RequestId"); List<StopMixStreamsServiceResponse.MixStreamsInfo> mixStreamsInfoList = new List<StopMixStreamsServiceResponse.MixStreamsInfo>(); for (int i = 0; i < context.Length("StopMixStreamsService.MixStreamsInfoList.Length"); i++) { StopMixStreamsServiceResponse.MixStreamsInfo mixStreamsInfo = new StopMixStreamsServiceResponse.MixStreamsInfo(); mixStreamsInfo.DomainName = context.StringValue("StopMixStreamsService.MixStreamsInfoList["+ i +"].DomainName"); mixStreamsInfo.AppName = context.StringValue("StopMixStreamsService.MixStreamsInfoList["+ i +"].AppName"); mixStreamsInfo.StreamName = context.StringValue("StopMixStreamsService.MixStreamsInfoList["+ i +"].StreamName"); mixStreamsInfoList.Add(mixStreamsInfo); } stopMixStreamsServiceResponse.MixStreamsInfoList = mixStreamsInfoList; return stopMixStreamsServiceResponse; }
public static StopMixStreamsServiceResponse Unmarshall(UnmarshallerContext context) { StopMixStreamsServiceResponse stopMixStreamsServiceResponse = new StopMixStreamsServiceResponse(); stopMixStreamsServiceResponse.HttpResponse = context.HttpResponse; stopMixStreamsServiceResponse.RequestId = context.StringValue("StopMixStreamsService.RequestId"); List <StopMixStreamsServiceResponse.StopMixStreamsService_MixStreamsInfo> stopMixStreamsServiceResponse_mixStreamsInfoList = new List <StopMixStreamsServiceResponse.StopMixStreamsService_MixStreamsInfo>(); for (int i = 0; i < context.Length("StopMixStreamsService.MixStreamsInfoList.Length"); i++) { StopMixStreamsServiceResponse.StopMixStreamsService_MixStreamsInfo mixStreamsInfo = new StopMixStreamsServiceResponse.StopMixStreamsService_MixStreamsInfo(); mixStreamsInfo.DomainName = context.StringValue("StopMixStreamsService.MixStreamsInfoList[" + i + "].DomainName"); mixStreamsInfo.AppName = context.StringValue("StopMixStreamsService.MixStreamsInfoList[" + i + "].AppName"); mixStreamsInfo.StreamName = context.StringValue("StopMixStreamsService.MixStreamsInfoList[" + i + "].StreamName"); stopMixStreamsServiceResponse_mixStreamsInfoList.Add(mixStreamsInfo); } stopMixStreamsServiceResponse.MixStreamsInfoList = stopMixStreamsServiceResponse_mixStreamsInfoList; return(stopMixStreamsServiceResponse); }
public static StopMixStreamsServiceResponse Unmarshall(UnmarshallerContext context) { StopMixStreamsServiceResponse stopMixStreamsServiceResponse = new StopMixStreamsServiceResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("StopMixStreamsService.RequestId") }; List <StopMixStreamsServiceResponse.MixStreamsInfo> mixStreamsInfoList = new List <StopMixStreamsServiceResponse.MixStreamsInfo>(); for (int i = 0; i < context.Length("StopMixStreamsService.MixStreamsInfoList.Length"); i++) { StopMixStreamsServiceResponse.MixStreamsInfo mixStreamsInfo = new StopMixStreamsServiceResponse.MixStreamsInfo() { DomainName = context.StringValue($"StopMixStreamsService.MixStreamsInfoList[{i}].DomainName"), AppName = context.StringValue($"StopMixStreamsService.MixStreamsInfoList[{i}].AppName"), StreamName = context.StringValue($"StopMixStreamsService.MixStreamsInfoList[{i}].StreamName") }; mixStreamsInfoList.Add(mixStreamsInfo); } stopMixStreamsServiceResponse.MixStreamsInfoList = mixStreamsInfoList; return(stopMixStreamsServiceResponse); }