using System.ComponentModel.DataAnnotations;

namespace Umbraco.Cms.Api.Management.ViewModels.Installer;

public class UpgradeSettingsResponseModel
{
    [Required]
    public string CurrentState { get; set; } = string.Empty;

    [Required]
    public string NewState { get; set; } = string.Empty;

    [Required]
    public string NewVersion { get; set; } = string.Empty;

    [Required]
    public string OldVersion { get; set; } = string.Empty;

    public string ReportUrl =>
        $"https://releases.umbraco.com/compare?from={OldVersion}&to={NewVersion}&notes=1";
}
