Skip to content
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

Add full update fields to PICS changes callback #865

Merged
merged 2 commits into from
Jun 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,14 @@ internal PICSChangeData( CMsgClientPICSChangesSinceResponse.PackageChange change
/// </summary>
public bool RequiresFullUpdate { get; private set; }
/// <summary>
/// If this update requires a full update of the app information
/// </summary>
public bool RequiresFullAppUpdate { get; private set; }
/// <summary>
/// If this update requires a full update of the package information
/// </summary>
public bool RequiresFullPackageUpdate { get; private set; }
/// <summary>
/// Dictionary containing requested package tokens
/// </summary>
public Dictionary<uint, PICSChangeData> PackageChanges { get; private set; }
Expand All @@ -413,6 +421,8 @@ internal PICSChangesCallback( JobID jobID, CMsgClientPICSChangesSinceResponse ms
LastChangeNumber = msg.since_change_number;
CurrentChangeNumber = msg.current_change_number;
RequiresFullUpdate = msg.force_full_update;
RequiresFullAppUpdate = msg.force_full_app_update;
RequiresFullPackageUpdate = msg.force_full_package_update;
PackageChanges = new Dictionary<uint, PICSChangeData>();
AppChanges = new Dictionary<uint, PICSChangeData>();

Expand Down
7 changes: 0 additions & 7 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ public sealed class LoggedOnCallback : CallbackMsg
/// </summary>
public byte[]? Steam2Ticket { get; private set; }

/// <summary>
/// Gets a value indicating whether the client should use PICS.
/// </summary>
public bool UsePICS { get; private set; }

/// <summary>
/// Gets the WebAPI authentication user nonce.
/// </summary>
Expand Down Expand Up @@ -146,8 +141,6 @@ internal LoggedOnCallback( CMsgClientLogonResponse resp )

this.WebAPIUserNonce = resp.webapi_authenticate_user_nonce;

this.UsePICS = resp.use_pics;

this.VanityURL = resp.vanity_url;

this.NumLoginFailuresToMigrate = resp.count_loginfailures_to_migrate;
Expand Down