public static ListTagPhotosResponse Unmarshall(UnmarshallerContext context) { ListTagPhotosResponse listTagPhotosResponse = new ListTagPhotosResponse(); listTagPhotosResponse.HttpResponse = context.HttpResponse; listTagPhotosResponse.Code = context.StringValue("ListTagPhotos.Code"); listTagPhotosResponse.Message = context.StringValue("ListTagPhotos.Message"); listTagPhotosResponse.NextCursor = context.StringValue("ListTagPhotos.NextCursor"); listTagPhotosResponse.TotalCount = context.IntegerValue("ListTagPhotos.TotalCount"); listTagPhotosResponse.RequestId = context.StringValue("ListTagPhotos.RequestId"); listTagPhotosResponse.Action = context.StringValue("ListTagPhotos.Action"); List <ListTagPhotosResponse.ListTagPhotos_Result> listTagPhotosResponse_results = new List <ListTagPhotosResponse.ListTagPhotos_Result>(); for (int i = 0; i < context.Length("ListTagPhotos.Results.Length"); i++) { ListTagPhotosResponse.ListTagPhotos_Result result = new ListTagPhotosResponse.ListTagPhotos_Result(); result.PhotoId = context.LongValue("ListTagPhotos.Results[" + i + "].PhotoId"); result.PhotoIdStr = context.StringValue("ListTagPhotos.Results[" + i + "].PhotoIdStr"); result.State = context.StringValue("ListTagPhotos.Results[" + i + "].State"); listTagPhotosResponse_results.Add(result); } listTagPhotosResponse.Results = listTagPhotosResponse_results; return(listTagPhotosResponse); }
public static ListTagPhotosResponse Unmarshall(UnmarshallerContext context) { ListTagPhotosResponse listTagPhotosResponse = new ListTagPhotosResponse(); listTagPhotosResponse.HttpResponse = context.HttpResponse; listTagPhotosResponse.RequestId = context.StringValue("ListTagPhotos.RequestId"); listTagPhotosResponse.NextMarker = context.StringValue("ListTagPhotos.NextMarker"); List <ListTagPhotosResponse.ListTagPhotos_PhotosItem> listTagPhotosResponse_photos = new List <ListTagPhotosResponse.ListTagPhotos_PhotosItem>(); for (int i = 0; i < context.Length("ListTagPhotos.Photos.Length"); i++) { ListTagPhotosResponse.ListTagPhotos_PhotosItem photosItem = new ListTagPhotosResponse.ListTagPhotos_PhotosItem(); photosItem.SrcUri = context.StringValue("ListTagPhotos.Photos[" + i + "].SrcUri"); photosItem.TagScore = context.FloatValue("ListTagPhotos.Photos[" + i + "].TagScore"); listTagPhotosResponse_photos.Add(photosItem); } listTagPhotosResponse.Photos = listTagPhotosResponse_photos; return(listTagPhotosResponse); }