diff --git a/SteamKit2/Tests/Files/apisurface.txt b/SteamKit2/Tests/Files/apisurface.txt index 628eb0d80..0d13eec74 100644 --- a/SteamKit2/Tests/Files/apisurface.txt +++ b/SteamKit2/Tests/Files/apisurface.txt @@ -80,12 +80,15 @@ public sealed class SteamKit2.CallbackManager public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); - public void RunCallbacks(); + public bool RunCallbacks(); public void RunWaitAllCallbacks(TimeSpan timeout); + public System.Threading.Tasks.Task RunWaitCallbackAsync(System.Threading.CancellationToken cancellationToken); public void RunWaitCallbacks(); - public void RunWaitCallbacks(TimeSpan timeout); + public bool RunWaitCallbacks(TimeSpan timeout); public IDisposable Subscribe(Action`1[[SteamKit2.TCallback]] callbackFunc); public IDisposable Subscribe(SteamKit2.JobID jobID, Action`1[[SteamKit2.TCallback]] callbackFunc); + public IDisposable SubscribeServiceNotification(Action`1[[SteamKit2.ServiceMethodNotification`1[[SteamKit2.TNotification]]]] callbackFunc); + public IDisposable SubscribeServiceResponse(Action`1[[SteamKit2.ServiceMethodResponse`1[[SteamKit2.TResponse]]]] callbackFunc); public string ToString(); } @@ -319,34 +322,22 @@ public sealed class SteamKit2.ContentServerDirectoryService public int GetHashCode(); public Type GetType(); public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration); - public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration, int cellId, int maxNumServers, System.Threading.CancellationToken cancellationToken); - public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration, int cellId, System.Threading.CancellationToken cancellationToken); public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration, System.Threading.CancellationToken cancellationToken); + public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration, uint cellId, System.Threading.CancellationToken cancellationToken); + public static System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] LoadAsync(SteamKit2.SteamConfiguration configuration, uint cellId, uint maxNumServers, System.Threading.CancellationToken cancellationToken); protected object MemberwiseClone(); public string ToString(); } public sealed class SteamKit2.CryptoHelper { - public static byte[] AdlerHash(byte[] input); - public static byte[] AESDecrypt(byte[] input, byte[] key, byte[] iv); - public static byte[] AESEncrypt(byte[] input, byte[] key, byte[] iv); - public static byte[] CRCHash(byte[] input); public bool Equals(object obj); protected void Finalize(); - public static byte[] GenerateRandomBlock(int size); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); - public static byte[] SHAHash(byte[] input); - public static byte[] SymmetricDecrypt(byte[] input, byte[] key); - public static byte[] SymmetricDecryptECB(byte[] input, byte[] key); - public static byte[] SymmetricDecryptHMACIV(byte[] input, byte[] key, byte[] hmacSecret); - public static byte[] SymmetricEncrypt(byte[] input, byte[] key); - public static byte[] SymmetricEncryptWithHMACIV(byte[] input, byte[] key, byte[] hmacSecret); - public static byte[] SymmetricEncryptWithIV(byte[] input, byte[] key, byte[] iv); + public static byte[] SymmetricDecrypt(ReadOnlySpan`1[[byte]] input, byte[] key); public string ToString(); - public static byte[] VerifyAndDecryptPassword(byte[] input, string password); } public sealed class SteamKit2.DateUtils @@ -382,8 +373,10 @@ public sealed class SteamKit2.DebugLog public sealed class SteamKit2.DepotManifest { + public .ctor(); public bool DecryptFilenames(byte[] encryptionKey); public static SteamKit2.DepotManifest Deserialize(byte[] data); + public static SteamKit2.DepotManifest Deserialize(System.IO.Stream stream); public bool Equals(object obj); protected void Finalize(); public DateTime get_CreationTime(); @@ -398,7 +391,16 @@ public sealed class SteamKit2.DepotManifest public Type GetType(); public static SteamKit2.DepotManifest LoadFromFile(string filename); protected object MemberwiseClone(); - public bool SaveToFile(string filename); + public void SaveToFile(string filename); + public void Serialize(System.IO.Stream output); + public void set_CreationTime(DateTime value); + public void set_DepotID(uint value); + public void set_EncryptedCRC(uint value); + public void set_FilenamesEncrypted(bool value); + public void set_Files(System.Collections.Generic.List`1[[SteamKit2.FileData]] value); + public void set_ManifestGID(ulong value); + public void set_TotalCompressedSize(ulong value); + public void set_TotalUncompressedSize(ulong value); public string ToString(); } @@ -486,12 +488,6 @@ public sealed class SteamKit2.HttpClientFactory public string ToString(); } -public interface SteamKit2.ICallbackMsg -{ - public SteamKit2.JobID get_JobID(); - public void set_JobID(SteamKit2.JobID value); -} - public interface SteamKit2.IClientMsg { public bool get_IsProto(); @@ -916,19 +912,6 @@ public sealed class SteamKit2.PublishedFileID public string ToString(); } -public class SteamKit2.RSACrypto -{ - public .ctor(byte[] key); - public void Dispose(); - public byte[] Encrypt(byte[] input); - public bool Equals(object obj); - protected void Finalize(); - public int GetHashCode(); - public Type GetType(); - protected object MemberwiseClone(); - public string ToString(); -} - public sealed class SteamKit2.SimpleConsoleDebugListener { public .ctor(); @@ -943,13 +926,13 @@ public sealed class SteamKit2.SimpleConsoleDebugListener public sealed class SteamKit2.SteamApps { + public .ctor(); public SteamKit2.AsyncJob`1[[SteamKit2.CheckAppBetaPasswordCallback]] CheckAppBetaPassword(uint app, string password); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); protected bool get_ExpectDisconnection(); public SteamKit2.AsyncJob`1[[SteamKit2.AppOwnershipTicketCallback]] GetAppOwnershipTicket(uint appid); - public SteamKit2.AsyncJob`1[[SteamKit2.CDNAuthTokenCallback]] GetCDNAuthToken(uint app, uint depot, string host_name); public SteamKit2.AsyncJob`1[[SteamKit2.DepotKeyCallback]] GetDepotDecryptionKey(uint depotid, uint appid); public int GetHashCode(); public SteamKit2.AsyncJob`1[[SteamKit2.LegacyGameKeyCallback]] GetLegacyGameKey(uint appid); @@ -967,6 +950,22 @@ public sealed class SteamKit2.SteamApps public string ToString(); } +public sealed class SteamKit2.SteamAuthTicket +{ + public .ctor(); + public bool Equals(object obj); + protected void Finalize(); + protected SteamKit2.SteamClient get_Client(); + protected bool get_ExpectDisconnection(); + public System.Threading.Tasks.Task`1[[SteamKit2.TicketInfo]] GetAuthSessionTicket(uint appid); + public int GetHashCode(); + public Type GetType(); + public void HandleMsg(SteamKit2.IPacketMsg packetMsg); + protected object MemberwiseClone(); + protected void set_ExpectDisconnection(bool value); + public string ToString(); +} + public sealed class SteamKit2.SteamClient { public .ctor(); @@ -978,7 +977,6 @@ public sealed class SteamKit2.SteamClient public void Disconnect(); public bool Equals(object obj); protected void Finalize(); - public void FreeLastCallback(); public SteamKit2.Authentication.SteamAuthentication get_Authentication(); public Nullable`1[[uint]] get_CellID(); public SteamKit2.SteamConfiguration get_Configuration(); @@ -995,9 +993,7 @@ public sealed class SteamKit2.SteamClient public ulong get_SessionToken(); public SteamKit2.SteamID get_SteamID(); public SteamKit2.EUniverse get_Universe(); - public System.Collections.Generic.IEnumerable`1[[SteamKit2.ICallbackMsg]] GetAllCallbacks(bool freeLast, TimeSpan timeout); - public SteamKit2.ICallbackMsg GetCallback(); - public SteamKit2.ICallbackMsg GetCallback(bool freeLast); + public SteamKit2.CallbackMsg GetCallback(); public SteamKit2.T GetHandler(); public int GetHashCode(); public SteamKit2.JobID GetNextJobID(); @@ -1013,14 +1009,14 @@ public sealed class SteamKit2.SteamClient public void Send(SteamKit2.IClientMsg msg); public void set_DebugNetworkListener(SteamKit2.IDebugNetworkListener value); public string ToString(); - public SteamKit2.ICallbackMsg WaitForCallback(); - public SteamKit2.ICallbackMsg WaitForCallback(bool freeLast); - public SteamKit2.ICallbackMsg WaitForCallback(bool freeLast, TimeSpan timeout); - public SteamKit2.ICallbackMsg WaitForCallback(TimeSpan timeout); + public SteamKit2.CallbackMsg WaitForCallback(); + public SteamKit2.CallbackMsg WaitForCallback(TimeSpan timeout); + public System.Threading.Tasks.Task`1[[SteamKit2.CallbackMsg]] WaitForCallbackAsync(System.Threading.CancellationToken cancellationToken); } public sealed class SteamKit2.SteamCloud { + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1078,6 +1074,7 @@ public sealed class SteamKit2.SteamContent protected void Finalize(); protected SteamKit2.SteamClient get_Client(); protected bool get_ExpectDisconnection(); + public System.Threading.Tasks.Task`1[[SteamKit2.CDNAuthToken]] GetCDNAuthToken(uint app, uint depot, string host_name); public int GetHashCode(); public System.Threading.Tasks.Task`1[[ulong]] GetManifestRequestCode(uint depotId, uint appId, ulong manifestId, string branch, string branchPasswordHash); public System.Threading.Tasks.Task`1[[System.Collections.Generic.IReadOnlyCollection`1[[SteamKit2.CDN.Server]]]] GetServersForSteamPipe(Nullable`1[[uint]] cellId, Nullable`1[[uint]] maxNumServers); @@ -1151,6 +1148,7 @@ public sealed class SteamKit2.SteamFriends public sealed class SteamKit2.SteamGameCoordinator { + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1166,6 +1164,7 @@ public sealed class SteamKit2.SteamGameCoordinator public sealed class SteamKit2.SteamGameServer { + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1236,6 +1235,9 @@ public class SteamKit2.SteamID public class SteamKit2.SteamKitWebRequestException { + public .ctor(); + public .ctor(string message); + public .ctor(string message, Exception innerException); public .ctor(string message, System.Net.Http.HttpResponseMessage response); protected void add_SerializeObjectState(EventHandler`1[[System.Runtime.Serialization.SafeSerializationEventArgs]] value); public bool Equals(object obj); @@ -1267,6 +1269,7 @@ public class SteamKit2.SteamKitWebRequestException public sealed class SteamKit2.SteamMasterServer { + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1282,6 +1285,7 @@ public sealed class SteamKit2.SteamMasterServer public class SteamKit2.SteamMatchmaking { + public .ctor(); public SteamKit2.AsyncJob`1[[SteamKit2.CreateLobbyCallback]] CreateLobby(uint appId, SteamKit2.ELobbyType lobbyType, int maxMembers, int lobbyFlags, System.Collections.Generic.IReadOnlyDictionary`2[[string, string]] metadata); public bool Equals(object obj); protected void Finalize(); @@ -1307,6 +1311,7 @@ public class SteamKit2.SteamMatchmaking public sealed class SteamKit2.SteamNetworking { + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1322,6 +1327,7 @@ public sealed class SteamKit2.SteamNetworking public sealed class SteamKit2.SteamScreenshots { + public .ctor(); public SteamKit2.AsyncJob`1[[SteamKit2.ScreenshotAddedCallback]] AddScreenshot(SteamKit2.ScreenshotDetails details); public bool Equals(object obj); protected void Finalize(); @@ -1335,26 +1341,10 @@ public sealed class SteamKit2.SteamScreenshots public string ToString(); } -public sealed class SteamKit2.SteamTrading -{ - public void CancelTrade(SteamKit2.SteamID user); - public bool Equals(object obj); - protected void Finalize(); - protected SteamKit2.SteamClient get_Client(); - protected bool get_ExpectDisconnection(); - public int GetHashCode(); - public Type GetType(); - public void HandleMsg(SteamKit2.IPacketMsg packetMsg); - protected object MemberwiseClone(); - public void RespondToTrade(uint tradeId, bool acceptTrade); - protected void set_ExpectDisconnection(bool value); - public string ToString(); - public void Trade(SteamKit2.SteamID user); -} - public class SteamKit2.SteamUnifiedMessages { - public SteamKit2.UnifiedService`1[[SteamKit2.TService]] CreateService(); + public .ctor(); + public SteamKit2.TService CreateService(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1363,8 +1353,8 @@ public class SteamKit2.SteamUnifiedMessages public Type GetType(); public void HandleMsg(SteamKit2.IPacketMsg packetMsg); protected object MemberwiseClone(); - public SteamKit2.AsyncJob`1[[SteamKit2.ServiceMethodResponse]] SendMessage(string name, SteamKit2.TRequest message); - public SteamKit2.AsyncJob`1[[SteamKit2.ServiceMethodResponse]] SendMessage(string name, SteamKit2.TRequest message, bool isNotification); + public void RemoveService(); + public SteamKit2.AsyncJob`1[[SteamKit2.ServiceMethodResponse`1[[SteamKit2.TResult]]]] SendMessage(string name, SteamKit2.TRequest message); public void SendNotification(string name, SteamKit2.TRequest message); protected void set_ExpectDisconnection(bool value); public string ToString(); @@ -1372,7 +1362,7 @@ public class SteamKit2.SteamUnifiedMessages public sealed class SteamKit2.SteamUser { - public void AcceptNewLoginKey(SteamKit2.LoginKeyCallback callback); + public .ctor(); public bool Equals(object obj); protected void Finalize(); protected SteamKit2.SteamClient get_Client(); @@ -1386,14 +1376,13 @@ public sealed class SteamKit2.SteamUser public void LogOnAnonymous(); public void LogOnAnonymous(SteamKit2.AnonymousLogOnDetails details); protected object MemberwiseClone(); - public SteamKit2.AsyncJob`1[[SteamKit2.WebAPIUserNonceCallback]] RequestWebAPIUserNonce(); - public void SendMachineAuthResponse(SteamKit2.MachineAuthDetails details); protected void set_ExpectDisconnection(bool value); public string ToString(); } public sealed class SteamKit2.SteamUserStats { + public .ctor(); public SteamKit2.AsyncJob`1[[SteamKit2.FindOrCreateLeaderboardCallback]] CreateLeaderboard(uint appId, string name, SteamKit2.ELeaderboardSortMethod sortMethod, SteamKit2.ELeaderboardDisplayType displayType); public bool Equals(object obj); protected void Finalize(); @@ -1412,6 +1401,7 @@ public sealed class SteamKit2.SteamUserStats public sealed class SteamKit2.SteamWorkshop { + public .ctor(); public SteamKit2.AsyncJob`1[[SteamKit2.UserActionPublishedFilesCallback]] EnumeratePublishedFilesByUserAction(SteamKit2.EnumerationUserDetails details); public bool Equals(object obj); protected void Finalize(); @@ -1483,6 +1473,9 @@ public sealed class SteamKit2.WebAPI public sealed class SteamKit2.WebAPIRequestException { + public .ctor(); + public .ctor(string message); + public .ctor(string message, Exception innerException); public .ctor(string message, System.Net.Http.HttpResponseMessage response); protected void add_SerializeObjectState(EventHandler`1[[System.Runtime.Serialization.SafeSerializationEventArgs]] value); public bool Equals(object obj); @@ -1527,6 +1520,8 @@ public sealed class SteamKit2.Authentication.AccessTokenGenerateResult public sealed class SteamKit2.Authentication.AuthenticationException { public .ctor(); + public .ctor(string message); + public .ctor(string message, Exception innerException); public .ctor(string message, SteamKit2.EResult result); protected void add_SerializeObjectState(EventHandler`1[[System.Runtime.Serialization.SafeSerializationEventArgs]] value); public bool Equals(object obj); @@ -1690,8 +1685,8 @@ public sealed class SteamKit2.CDN.Client { public .ctor(SteamKit2.SteamClient steamClient); public void Dispose(); - public System.Threading.Tasks.Task`1[[SteamKit2.CDN.DepotChunk]] DownloadDepotChunkAsync(uint depotId, SteamKit2.ChunkData chunk, SteamKit2.CDN.Server server, byte[] depotKey, SteamKit2.CDN.Server proxyServer); - public System.Threading.Tasks.Task`1[[SteamKit2.DepotManifest]] DownloadManifestAsync(uint depotId, ulong manifestId, ulong manifestRequestCode, SteamKit2.CDN.Server server, byte[] depotKey, SteamKit2.CDN.Server proxyServer); + public System.Threading.Tasks.Task`1[[int]] DownloadDepotChunkAsync(uint depotId, SteamKit2.ChunkData chunk, SteamKit2.CDN.Server server, byte[] destination, byte[] depotKey, SteamKit2.CDN.Server proxyServer, string cdnAuthToken); + public System.Threading.Tasks.Task`1[[SteamKit2.DepotManifest]] DownloadManifestAsync(uint depotId, ulong manifestId, ulong manifestRequestCode, SteamKit2.CDN.Server server, byte[] depotKey, SteamKit2.CDN.Server proxyServer, string cdnAuthToken); public bool Equals(object obj); protected void Finalize(); public static TimeSpan get_RequestTimeout(); @@ -1706,16 +1701,12 @@ public sealed class SteamKit2.CDN.Client public sealed class SteamKit2.CDN.DepotChunk { - public .ctor(SteamKit2.ChunkData info, byte[] data); public bool Equals(object obj); protected void Finalize(); - public SteamKit2.ChunkData get_ChunkInfo(); - public byte[] get_Data(); - public bool get_IsProcessed(); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); - public void Process(byte[] depotKey); + public static int Process(SteamKit2.ChunkData info, ReadOnlySpan`1[[byte]] data, byte[] destination, byte[] depotKey); public string ToString(); } @@ -1730,7 +1721,6 @@ public sealed class SteamKit2.CDN.Server public int get_Load(); public int get_NumEntries(); public int get_Port(); - public bool get_PreferredServer(); public SteamKit2.CDN.ConnectionProtocol get_Protocol(); public string get_ProxyRequestPathTemplate(); public int get_SourceID(); @@ -1753,6 +1743,7 @@ public class SteamKit2.Discovery.FileStorageServerListProvider public bool Equals(object obj); public System.Threading.Tasks.Task`1[[System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]]]] FetchServerListAsync(); protected void Finalize(); + public DateTime get_LastServerListRefresh(); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); @@ -1763,6 +1754,7 @@ public class SteamKit2.Discovery.FileStorageServerListProvider public interface SteamKit2.Discovery.IServerListProvider { public System.Threading.Tasks.Task`1[[System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]]]] FetchServerListAsync(); + public DateTime get_LastServerListRefresh(); public System.Threading.Tasks.Task UpdateServerListAsync(System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]] endpoints); } @@ -1772,6 +1764,7 @@ public class SteamKit2.Discovery.IsolatedStorageServerListProvider public bool Equals(object obj); public System.Threading.Tasks.Task`1[[System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]]]] FetchServerListAsync(); protected void Finalize(); + public DateTime get_LastServerListRefresh(); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); @@ -1785,6 +1778,7 @@ public class SteamKit2.Discovery.MemoryServerListProvider public bool Equals(object obj); public System.Threading.Tasks.Task`1[[System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]]]] FetchServerListAsync(); protected void Finalize(); + public DateTime get_LastServerListRefresh(); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); @@ -1798,6 +1792,7 @@ public class SteamKit2.Discovery.NullServerListProvider public bool Equals(object obj); public System.Threading.Tasks.Task`1[[System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]]]] FetchServerListAsync(); protected void Finalize(); + public DateTime get_LastServerListRefresh(); public int GetHashCode(); public Type GetType(); protected object MemberwiseClone(); @@ -1807,6 +1802,7 @@ public class SteamKit2.Discovery.NullServerListProvider public class SteamKit2.Discovery.ServerRecord { + public static SteamKit2.Discovery.ServerRecord CreateDnsSocketServer(string address); public static SteamKit2.Discovery.ServerRecord CreateServer(string host, int port, SteamKit2.ProtocolTypes protocolTypes); public static SteamKit2.Discovery.ServerRecord CreateSocketServer(System.Net.IPEndPoint endPoint); public static SteamKit2.Discovery.ServerRecord CreateWebSocketServer(string address); @@ -1830,17 +1826,24 @@ public class SteamKit2.Discovery.SmartCMServerList public .ctor(SteamKit2.SteamConfiguration configuration); public bool Equals(object obj); protected void Finalize(); + public System.Threading.Tasks.Task ForceRefreshServerList(); public TimeSpan get_BadConnectionMemoryTimeSpan(); + public static string get_DefaultServerNetfilter(); + public static string get_DefaultServerWebsocket(); + public TimeSpan get_ServerListBeforeRefreshTimeSpan(); public SteamKit2.Discovery.ServerRecord[] GetAllEndPoints(); public int GetHashCode(); public SteamKit2.Discovery.ServerRecord GetNextServerCandidate(SteamKit2.ProtocolTypes supportedProtocolTypes); public System.Threading.Tasks.Task`1[[SteamKit2.Discovery.ServerRecord]] GetNextServerCandidateAsync(SteamKit2.ProtocolTypes supportedProtocolTypes); public Type GetType(); protected object MemberwiseClone(); - public void ReplaceList(System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]] endpointList); + public void ReplaceList(System.Collections.Generic.IEnumerable`1[[SteamKit2.Discovery.ServerRecord]] endpointList, bool writeProvider, Nullable`1[[DateTime]] serversTime); public void ResetBadServers(); public void ResetOldScores(); public void set_BadConnectionMemoryTimeSpan(TimeSpan value); + public static void set_DefaultServerNetfilter(string value); + public static void set_DefaultServerWebsocket(string value); + public void set_ServerListBeforeRefreshTimeSpan(TimeSpan value); public string ToString(); }