-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PICSGetProductInfo overloads that takes uint #1009
Conversation
I suppose you intended to ping @JustArchi? ;-) |
What @archi said 😁 |
@@ -185,6 +185,7 @@ public AsyncJob<PICSChangesCallback> PICSGetChangesSince( uint lastChangeNumber | |||
/// <param name="package">Package id requested.</param> | |||
/// <param name="metaDataOnly">Whether to send only meta data.</param> | |||
/// <returns>The Job ID of the request. This can be used to find the appropriate <see cref="PICSProductInfoCallback"/>.</returns> | |||
[Obsolete( "Use an overload that takes PICSRequest instead of uint. In SteamKit 2.3, this overload had four parameters, but onlyPublic was removed. Audit your code." )] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still believe we should just remove this overload entirely right away, so nobody disregards the warning and ends up with broken functionality, but if we really intend to support it then obsoletion mark is still far better than silent breaking change.
Sample 9 needs to be updated so that it doesn't use deprecated APIs. There are a few different ways to do this:
|
@JustArchi had a good suggestion to deprecate these overloads, as you really should be requesting app info while providing a token.
I also added an overload that takes one PICSRequest to make migrating easier.