private SteamService(SteamHttpClient client) { Client = client ?? new SteamHttpClient(); AccountRecovery = new SteamAccountRecoveryServiceEndpoint(this); Apps = new SteamAppsEndpoint(this); Directory = new SteamDirectoryEndpoint(this); Envoy = new SteamEnvoyEndpoint(this); GameNotification = new SteamGameNotificationServiceEndpoint(this); GCVersion205790 = new SteamGCVersion205790Endpoint(this); GCVersion440 = new SteamGCVersion440Endpoint(this); GCVersion570 = new SteamGCVersion570Endpoint(this); GCVersion730 = new SteamGCVersion730Endpoint(this); News = new SteamNewsEndpoint(this); Player = new SteamPlayerServiceEndpoint(this); Portal2Leaderboards620 = new SteamPortal2Leaderboards620Endpoint(this); Portal2Leaderboards841 = new SteamPortal2Leaderboards841Endpoint(this); RemoteStorage = new SteamRemoteStorageEndpoint(this); TF440 = new SteamTFSystem440Endpoint(this); UserAuth = new SteamUserAuthEndpoint(this); User = new SteamUserEndpoint(this); UserOAuth = new SteamUserOAuthEndpoint(this); UserStats = new SteamUserStatsEndpoint(this); WebAPIUtil = new SteamWebAPIUtilEndpoint(this); WebUserPresenceOAuth = new SteamWebUserPresenceOAuthEndpoint(this); }
/// <summary> /// Initialize a new service from the specified<paramref name="client"/>. /// </summary> /// <param name="client">The OAuth client.</param> /// <returns>The created instance of <see cref="SteamService"/>.</returns> public static SteamService CreateFromOAuthClient(SteamHttpClient client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } return(new SteamService(client)); }