using Newtonsoft.Json;
namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist
{
///
/// A class representing TubeArchivist API ping response data.
///
public class PingResponse
{
///
/// Initializes a new instance of the class.
///
/// Response from the API ("pong").
/// TubeArchivist user id.
/// TubeArchivist version.
public PingResponse(
string response,
int user,
string version)
{
this.Response = response;
this.User = user;
this.Version = version;
}
///
/// Gets response to the ping ("pong").
///
[JsonProperty(PropertyName = "response")]
public string Response { get; }
///
/// Gets user id.
///
[JsonProperty(PropertyName = "user")]
public int User { get; }
///
/// Gets TubeArchivist version.
///
[JsonProperty(PropertyName = "version")]
public string Version { get; }
}
}