using Newtonsoft.Json;
namespace StardewModdingAPI.Web.Framework.Clients.GitHub
{
/// A GitHub download attached to a release.
internal class GitAsset
{
/*********
** Accessors
*********/
/// The file name.
[JsonProperty("name")]
public string FileName { get; }
/// The file content type.
[JsonProperty("content_type")]
public string ContentType { get; }
/// The download URL.
[JsonProperty("browser_download_url")]
public string DownloadUrl { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The file name.
/// The file content type.
/// The download URL.
public GitAsset(string fileName, string contentType, string downloadUrl)
{
this.FileName = fileName;
this.ContentType = contentType;
this.DownloadUrl = downloadUrl;
}
}
}