Ref project update

This commit is contained in:
RogueException
2016-03-12 20:20:30 -04:00
parent 5a38129c18
commit 30ac95280e
31 changed files with 389 additions and 286 deletions

View File

@@ -11,9 +11,15 @@ namespace Discord
/// <summary> Provides a connection to the DiscordApp service. </summary>
public class DiscordClient : IDisposable
{
public event EventHandler<LogMessageEventArgs> Log = delegate { };
public event EventHandler LoggedIn = delegate { };
public event EventHandler LoggedOut = delegate { };
public event EventHandler<LogMessageEventArgs> Log = delegate { };
public event EventHandler Connected = delegate { };
public event EventHandler Disconnected = delegate { };
public event EventHandler<ServerEventArgs> VoiceConnected = delegate { };
public event EventHandler<ServerEventArgs> VoiceDisconnected = delegate { };
public event EventHandler<ChannelEventArgs> ChannelCreated = delegate { };
public event EventHandler<ChannelUpdatedEventArgs> ChannelUpdated = delegate { };
public event EventHandler<ChannelEventArgs> ChannelDestroyed = delegate { };
@@ -38,47 +44,30 @@ namespace Discord
public event EventHandler<UserUpdatedEventArgs> UserUpdated = delegate { };
public event EventHandler<UserEventArgs> UserUnbanned = delegate { };
public DiscordConfig Config { get; }
public IRestClient ClientAPI { get; }
public IRestClient StatusAPI { get; }
public GatewaySocket GatewaySocket { get; }
public MessageQueue MessageQueue { get; }
public ConnectionState State { get; }
public CancellationToken CancelToken { get; }
public Profile CurrentUser { get; }
public string SessionId { get; }
public UserStatus Status { get; }
public string CurrentGame { get; }
public IEnumerable<Server> Servers { get; }
public IEnumerable<PrivateChannel> PrivateChannels { get; }
public IEnumerable<Region> Regions { get; }
public IRestClient RestClient { get; }
public GatewaySocket GatewaySocket { get; }
public Profile CurrentUser { get; }
public DiscordClient() { }
public DiscordClient(DiscordConfig config) { }
public DiscordClient(Action<DiscordConfig> configFunc) { }
public Task<string> Login(string email, string password, string token = null) => null;
public Task Login(string token, bool validate = true) => null;
public Task Login(string token) => null;
public Task Logout() => null;
/*public Task<string> Connect(string email, string password, string token = null) => null;
public Task Connect(string token) => null;
public Task Disconnect() => null;*/
public void SetStatus(UserStatus status) { }
public void SetGame(string game) { }
public PrivateChannel GetPrivateChannel(ulong id) => null;
public Task<PrivateChannel> CreatePrivateChannel(ulong userId) => null;
public Task Connect() => null;
public Task Connect(int connectionId, int totalConnections) => null;
public Task Disconnect() => null;
public Task<IEnumerable<PrivateChannel>> GetPrivateChannels() => null;
public Task<PrivateChannel> GetPrivateChannel(ulong userId) => null;
public Task<Invite> GetInvite(string inviteIdOrXkcd) => null;
public Task<IReadOnlyList<Region>> GetRegions() => null;
public Task<Region> GetRegion(string id) => null;
public Task<IEnumerable<Server>> GetServers() => null;
public Task<Server> GetServer(ulong id) => null;
public Region GetRegion(string id) => null;
public Server GetServer(ulong id) => null;
public IEnumerable<Server> FindServers(string name) => null;
public Task<PrivateChannel> CreatePrivateChannel(ulong userId) => null;
public Task<Server> CreateServer(string name, Region region, ImageType iconType = ImageType.None, Stream icon = null) => null;
public void Dispose() { }