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.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); }