using System;
using System.Collections.Generic;
using System.Globalization;
using Jellyfin.Plugin.JRay.Configuration;
using Jellyfin.Plugin.JRay.Models;
namespace Jellyfin.Plugin.JRay.Services;
/// Per-server reachability, for the configuration page.
public class ServerStatus
{
/// Gets or sets the server's base URL.
public string Url { get; set; } = string.Empty;
/// Gets or sets the display name.
public string Name { get; set; } = string.Empty;
/// Gets or sets a value indicating whether the server is enabled.
public bool Enabled { get; set; }
/// Gets or sets a value indicating whether the last attempt succeeded.
public bool Reachable { get; set; }
/// Gets or sets the last error seen, if any.
public string? LastError { get; set; }
/// Gets or sets when this server will next be tried.
public DateTimeOffset? SkippedUntil { get; set; }
}