| File: Model\RegistrationLeafItem.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol) |
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Text.Json.Serialization; using Newtonsoft.Json; namespace NuGet.Protocol.Model { /// <summary> /// Source: https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf-object-in-a-page /// </summary> internal class RegistrationLeafItem { [JsonProperty("catalogEntry")] [JsonPropertyName("catalogEntry")] public PackageSearchMetadataRegistration? CatalogEntry { get; set; } [JsonProperty(PropertyName = JsonProperties.PackageContent)] [JsonPropertyName(JsonProperties.PackageContent)] public Uri? PackageContent { get; set; } } }