You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

GatewaySocket.cs 977 B

12345678910111213141516171819202122232425262728
  1. using Discord.Net.Rest;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Threading;
  5. using System.Threading.Tasks;
  6. namespace Discord.Net.WebSockets
  7. {
  8. public class GatewaySocket
  9. {
  10. public string SessionId { get; }
  11. public event EventHandler<WebSocketEventEventArgs> ReceivedDispatch = delegate { };
  12. public Task Connect(IRestClient rest, CancellationToken parentCancelToken) => null;
  13. public Task Disconnect() => null;
  14. public void SendIdentify(string token) { }
  15. public void SendResume() { }
  16. public void SendHeartbeat() { }
  17. public void SendUpdateStatus(long? idleSince, string gameName) { }
  18. public void SendUpdateVoice(ulong? serverId, ulong? channelId, bool isSelfMuted, bool isSelfDeafened) { }
  19. public void SendRequestMembers(IEnumerable<ulong> serverId, string query, int limit) { }
  20. public void WaitForConnection(CancellationToken cancelToken) { }
  21. }
  22. }