mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-10 20:39:27 +02:00
Initial release
This commit is contained in:
48
Entities/DiscordConnection.cs
Normal file
48
Entities/DiscordConnection.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace x3rt.DiscordOAuth2.Entities;
|
||||
|
||||
public class DiscordConnection
|
||||
{
|
||||
[JsonProperty("id")] public string Id { get; set; }
|
||||
[JsonProperty("name")] public string Name { get; set; }
|
||||
[JsonProperty("type")] public ConnectionType Type { get; set; }
|
||||
[JsonProperty("revoked")] public bool? Revoked { get; set; }
|
||||
[JsonProperty("integrations")] public object[] Integrations { get; set; }
|
||||
[JsonProperty("verified")] public bool? Verified { get; set; }
|
||||
[JsonProperty("friend_sync")] public bool? FriendSync { get; set; }
|
||||
[JsonProperty("show_activity")] public bool? ShowActivity { get; set; }
|
||||
[JsonProperty("two_way_link")] public bool? TwoWayLink { get; set; }
|
||||
[JsonProperty("visibility")] public ConnectionVisibility? Visibility { get; set; }
|
||||
|
||||
|
||||
public enum ConnectionVisibility
|
||||
{
|
||||
None,
|
||||
Everyone
|
||||
}
|
||||
|
||||
|
||||
public enum ConnectionType
|
||||
{
|
||||
BattleNet,
|
||||
Ebay,
|
||||
EpicGames,
|
||||
Facebook,
|
||||
GitHub,
|
||||
Instagram,
|
||||
LeagueOfLegends,
|
||||
PayPal,
|
||||
PlayStation,
|
||||
Reddit,
|
||||
RiotGames,
|
||||
Spotify,
|
||||
Skype,
|
||||
Steam,
|
||||
TikTok,
|
||||
Twitch,
|
||||
Twitter,
|
||||
Xbox,
|
||||
YouTube
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user