#nullable disable
namespace StardewModdingAPI.Web.Framework.Storage
{
/// The result of an attempt to upload a file.
internal class UploadResult
{
/*********
** Accessors
*********/
/// Whether the file upload succeeded.
public bool Succeeded { get; }
/// The file ID, if applicable.
public string ID { get; }
/// The upload error, if any.
public string UploadError { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// Whether the file upload succeeded.
/// The file ID, if applicable.
/// The upload error, if any.
public UploadResult(bool succeeded, string id, string uploadError)
{
this.Succeeded = succeeded;
this.ID = id;
this.UploadError = uploadError;
}
}
}