Skip to content

Commit

Permalink
Merge pull request #865 from xPaw/full-update
Browse files Browse the repository at this point in the history
Add full update fields to PICS changes callback
  • Loading branch information
yaakov-h authored Jun 21, 2020
2 parents f610646 + 79b98c7 commit f626a64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
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

0 comments on commit f626a64

Please sign in to comment.