-
Notifications
You must be signed in to change notification settings - Fork 0
/
IMinecraftDownload.cs
45 lines (38 loc) · 1.41 KB
/
IMinecraftDownload.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
namespace MinecraftJars.Core.Downloads;
public interface IMinecraftDownload
{
/// <summary>
/// Filename of the download e.g. server-version.jar. Name could be used for the downloaded file
/// </summary>
string FileName { get; }
/// <summary>
/// Size of the download in bytes
/// Note: May be 0 e.g. if option to query size online is turned off
/// </summary>
long Size { get; }
/// <summary>
/// Internal build ID of the version, if provided project does not have a build ID
/// it will be filled with the Version
/// </summary>
string BuildId { get; }
/// <summary>
/// Download URL of the file
/// Note: In case of a built JAR file this is a local URL (RequiresLocalBuild = true on IVersion interface)
/// If local URL the user must make sure that the temp folder is removed from the file system
/// </summary>
string Url { get; }
/// <summary>
/// HashType of the provided Hash e.g. None, MD5, etc.
/// </summary>
HashType HashType { get; }
/// <summary>
/// Hash of the file.
/// Note: If HashType is None no Hash has been provided by the provider
/// </summary>
string? Hash { get; }
/// <summary>
/// Release time of the built
/// Note: Might not been provided by the provider
/// </summary>
DateTime? ReleaseTime { get; }
}