19 lines
889 B
C#
19 lines
889 B
C#
namespace CursorLang.Core.Models;
|
|
|
|
/// <summary>
|
|
/// A file attached to a release.
|
|
/// </summary>
|
|
/// <param name="FileName">The name the file is saved to disk under.</param>
|
|
/// <param name="Url">A direct link to the content.</param>
|
|
/// <param name="Size">The size in bytes; zero when the hosting did not report it.</param>
|
|
public sealed record ReleaseAsset(string FileName, Uri Url, long Size);
|
|
|
|
/// <summary>
|
|
/// A release found in the repository.
|
|
/// </summary>
|
|
/// <param name="Version">The version parsed from the tag.</param>
|
|
/// <param name="Tag">The tag as is — that is what the interface shows.</param>
|
|
/// <param name="PageUrl">The release page: the release notes live there too.</param>
|
|
/// <param name="Package">The MSIX package the application updates itself with.</param>
|
|
public sealed record ReleaseInfo(Version Version, string Tag, Uri? PageUrl, ReleaseAsset Package);
|