Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions Rocket.AutoInstaller/Installation/GitHubAsset.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
using Newtonsoft.Json;

namespace Rocket.AutoInstaller.Installation;

public class GitHubAsset
namespace Rocket.AutoInstaller.Installation
{
[JsonProperty("url")]
public string Url { get; set; }
public class GitHubAsset
{
[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("name")]
public string Name { get; set; }

[JsonProperty("content_type")]
public string ContentType { get; set; }
[JsonProperty("content_type")]
public string ContentType { get; set; }

[JsonProperty("size")]
public int Size { get; set; }
[JsonProperty("size")]
public int Size { get; set; }

[JsonProperty("browser_download_url")]
public string BrowserDownloadUrl { get; set; }
[JsonProperty("browser_download_url")]
public string BrowserDownloadUrl { get; set; }
}
}
39 changes: 20 additions & 19 deletions Rocket.AutoInstaller/Installation/GitHubRelease.cs
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
using System;
using Newtonsoft.Json;

namespace Rocket.AutoInstaller.Installation;

public class GitHubRelease
namespace Rocket.AutoInstaller.Installation
{
[JsonProperty("url")]
public string Url { get; set; }
public class GitHubRelease
{
[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("tag_name")]
public string TagName { get; set; }
[JsonProperty("tag_name")]
public string TagName { get; set; }

[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("name")]
public string Name { get; set; }

[JsonProperty("body")]
public string Body { get; set; }
[JsonProperty("body")]
public string Body { get; set; }

[JsonProperty("draft")]
public bool Draft { get; set; }
[JsonProperty("draft")]
public bool Draft { get; set; }

[JsonProperty("prerelease")]
public bool Prerelease { get; set; }
[JsonProperty("prerelease")]
public bool Prerelease { get; set; }

[JsonProperty("published_at")]
public DateTime PublishedAt { get; set; }
[JsonProperty("published_at")]
public DateTime PublishedAt { get; set; }

[JsonProperty("assets")]
public GitHubAsset[] Assets { get; set; }
[JsonProperty("assets")]
public GitHubAsset[] Assets { get; set; }
}
}
Loading