public static BatchCheckDeviceNamesResponse Unmarshall(UnmarshallerContext _ctx) { BatchCheckDeviceNamesResponse batchCheckDeviceNamesResponse = new BatchCheckDeviceNamesResponse(); batchCheckDeviceNamesResponse.HttpResponse = _ctx.HttpResponse; batchCheckDeviceNamesResponse.RequestId = _ctx.StringValue("BatchCheckDeviceNames.RequestId"); batchCheckDeviceNamesResponse.Success = _ctx.BooleanValue("BatchCheckDeviceNames.Success"); batchCheckDeviceNamesResponse.Code = _ctx.StringValue("BatchCheckDeviceNames.Code"); batchCheckDeviceNamesResponse.ErrorMessage = _ctx.StringValue("BatchCheckDeviceNames.ErrorMessage"); BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data data = new BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data(); data.ApplyId = _ctx.LongValue("BatchCheckDeviceNames.Data.ApplyId"); List <string> data_invalidDeviceNameList = new List <string>(); for (int i = 0; i < _ctx.Length("BatchCheckDeviceNames.Data.InvalidDeviceNameList.Length"); i++) { data_invalidDeviceNameList.Add(_ctx.StringValue("BatchCheckDeviceNames.Data.InvalidDeviceNameList[" + i + "]")); } data.InvalidDeviceNameList = data_invalidDeviceNameList; List <string> data_invalidDeviceNicknameList = new List <string>(); for (int i = 0; i < _ctx.Length("BatchCheckDeviceNames.Data.InvalidDeviceNicknameList.Length"); i++) { data_invalidDeviceNicknameList.Add(_ctx.StringValue("BatchCheckDeviceNames.Data.InvalidDeviceNicknameList[" + i + "]")); } data.InvalidDeviceNicknameList = data_invalidDeviceNicknameList; batchCheckDeviceNamesResponse.Data = data; return(batchCheckDeviceNamesResponse); }
public static BatchCheckDeviceNamesResponse Unmarshall(UnmarshallerContext context) { BatchCheckDeviceNamesResponse batchCheckDeviceNamesResponse = new BatchCheckDeviceNamesResponse(); batchCheckDeviceNamesResponse.HttpResponse = context.HttpResponse; batchCheckDeviceNamesResponse.RequestId = context.StringValue("BatchCheckDeviceNames.RequestId"); batchCheckDeviceNamesResponse.Success = context.BooleanValue("BatchCheckDeviceNames.Success"); batchCheckDeviceNamesResponse.ErrorMessage = context.StringValue("BatchCheckDeviceNames.ErrorMessage"); BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data data = new BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data(); data.ApplyId = context.LongValue("BatchCheckDeviceNames.Data.ApplyId"); batchCheckDeviceNamesResponse.Data = data; return(batchCheckDeviceNamesResponse); }
public static BatchCheckDeviceNamesResponse Unmarshall(UnmarshallerContext context) { BatchCheckDeviceNamesResponse batchCheckDeviceNamesResponse = new BatchCheckDeviceNamesResponse(); batchCheckDeviceNamesResponse.HttpResponse = context.HttpResponse; batchCheckDeviceNamesResponse.RequestId = context.StringValue("BatchCheckDeviceNames.RequestId"); batchCheckDeviceNamesResponse.Success = context.BooleanValue("BatchCheckDeviceNames.Success"); batchCheckDeviceNamesResponse.Code = context.StringValue("BatchCheckDeviceNames.Code"); batchCheckDeviceNamesResponse.ErrorMessage = context.StringValue("BatchCheckDeviceNames.ErrorMessage"); BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data data = new BatchCheckDeviceNamesResponse.BatchCheckDeviceNames_Data(); data.ApplyId = context.LongValue("BatchCheckDeviceNames.Data.ApplyId"); List <Dictionary <string, string> > data_invalidDeviceNameList = new List <Dictionary <string, string> >(); for (int i = 0; i < context.Length("BatchCheckDeviceNames.Data.InvalidDeviceNameList.Length"); i++) { Dictionary <string, string> tmp = new Dictionary <string, string>() { }; foreach (var _item in context.ResponseDictionary) { string prefix = "BatchCheckDeviceNames.Data.InvalidDeviceNameList[" + i + "]."; if (_item.Key.IndexOf(prefix) == 0) { tmp.Add(_item.Key.Substring(prefix.Length), _item.Value); } } if (tmp.Count > 0) { data_invalidDeviceNameList.Add(tmp); } } data.InvalidDeviceNameList = data_invalidDeviceNameList; batchCheckDeviceNamesResponse.Data = data; return(batchCheckDeviceNamesResponse); }