-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Off by default Checks in fork of https://github.com/Lachee/discord-rpc-csharp, needed as the project used Newtonsoft.Json which isn't NativeAOT compatible. Some optimizations have also been put in place to take advantage of newer .NET
- Loading branch information
1 parent
6047280
commit 5e04dcd
Showing
62 changed files
with
5,703 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DiscordRPC; | ||
|
||
/// <summary> | ||
/// Configuration of the current RPC connection | ||
/// </summary> | ||
public sealed class Configuration | ||
{ | ||
/// <summary> | ||
/// The Discord API endpoint that should be used. | ||
/// </summary> | ||
[JsonPropertyName("api_endpoint")] | ||
public string ApiEndpoint { get; set; } | ||
|
||
/// <summary> | ||
/// The CDN endpoint | ||
/// </summary> | ||
[JsonPropertyName("cdn_host")] | ||
public string CdnHost { get; set; } | ||
|
||
/// <summary> | ||
/// The type of environment the connection on. Usually Production. | ||
/// </summary> | ||
[JsonPropertyName("environment")] | ||
public string Environment { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="../../GSECommon.props" /> | ||
</Project> |
Oops, something went wrong.