|
// 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.Collections.Generic;
using System.Text.Json.Serialization;
using Newtonsoft.Json;
namespace NuGet.Protocol
{
public class PackageDeprecationMetadata
{
[JsonProperty(PropertyName = JsonProperties.DeprecationMessage)]
[JsonPropertyName(JsonProperties.DeprecationMessage)]
[JsonInclude]
public string? Message { get; internal set; }
[JsonProperty(PropertyName = JsonProperties.DeprecationReasons)]
[JsonPropertyName(JsonProperties.DeprecationReasons)]
[JsonInclude]
public IEnumerable<string> Reasons { get; internal set; } = Array.Empty<string>();
[JsonProperty(PropertyName = JsonProperties.AlternatePackage)]
[JsonPropertyName(JsonProperties.AlternatePackage)]
[JsonInclude]
public AlternatePackageMetadata? AlternatePackage { get; internal set; }
}
}
|