public static CreateKeywordResponse Unmarshall(UnmarshallerContext context) { CreateKeywordResponse createKeywordResponse = new CreateKeywordResponse(); createKeywordResponse.HttpResponse = context.HttpResponse; createKeywordResponse.RequestId = context.StringValue("CreateKeyword.RequestId"); createKeywordResponse.SuccessCount = context.IntegerValue("CreateKeyword.SuccessCount"); List <string> createKeywordResponse_invalidKeywordList = new List <string>(); for (int i = 0; i < context.Length("CreateKeyword.InvalidKeywordList.Length"); i++) { createKeywordResponse_invalidKeywordList.Add(context.StringValue("CreateKeyword.InvalidKeywordList[" + i + "]")); } createKeywordResponse.InvalidKeywordList = createKeywordResponse_invalidKeywordList; List <string> createKeywordResponse_validKeywordList = new List <string>(); for (int i = 0; i < context.Length("CreateKeyword.ValidKeywordList.Length"); i++) { createKeywordResponse_validKeywordList.Add(context.StringValue("CreateKeyword.ValidKeywordList[" + i + "]")); } createKeywordResponse.ValidKeywordList = createKeywordResponse_validKeywordList; return(createKeywordResponse); }
public static CreateKeywordResponse Unmarshall(UnmarshallerContext _ctx) { CreateKeywordResponse createKeywordResponse = new CreateKeywordResponse(); createKeywordResponse.HttpResponse = _ctx.HttpResponse; createKeywordResponse.RequestId = _ctx.StringValue("CreateKeyword.RequestId"); createKeywordResponse.SuccessCount = _ctx.IntegerValue("CreateKeyword.SuccessCount"); List <string> createKeywordResponse_invalidKeywordList = new List <string>(); for (int i = 0; i < _ctx.Length("CreateKeyword.InvalidKeywordList.Length"); i++) { createKeywordResponse_invalidKeywordList.Add(_ctx.StringValue("CreateKeyword.InvalidKeywordList[" + i + "]")); } createKeywordResponse.InvalidKeywordList = createKeywordResponse_invalidKeywordList; List <CreateKeywordResponse.CreateKeyword_ValidKeyword> createKeywordResponse_validKeywordList = new List <CreateKeywordResponse.CreateKeyword_ValidKeyword>(); for (int i = 0; i < _ctx.Length("CreateKeyword.ValidKeywordList.Length"); i++) { CreateKeywordResponse.CreateKeyword_ValidKeyword validKeyword = new CreateKeywordResponse.CreateKeyword_ValidKeyword(); validKeyword.Id = _ctx.IntegerValue("CreateKeyword.ValidKeywordList[" + i + "].id"); validKeyword.Keyword = _ctx.StringValue("CreateKeyword.ValidKeywordList[" + i + "].keyword"); createKeywordResponse_validKeywordList.Add(validKeyword); } createKeywordResponse.ValidKeywordList = createKeywordResponse_validKeywordList; return(createKeywordResponse); }