diff --git a/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/SteamApps.cs b/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/SteamApps.cs
index 6f65f59c4..98ffd3c93 100644
--- a/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/SteamApps.cs
+++ b/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/SteamApps.cs
@@ -24,7 +24,7 @@ public sealed partial class SteamApps : ClientMsgHandler
///
/// Represents a PICS request used for
///
- public sealed class PICSRequest
+ public struct PICSRequest
#pragma warning restore 0419
{
///
@@ -37,38 +37,16 @@ public sealed class PICSRequest
///
/// The access token
public ulong AccessToken { get; set; }
- ///
- /// Requests only public app info
- ///
- /// The flag specifying if only public data is requested
- public bool Public { get; set; }
-
- ///
- /// Instantiate an empty PICS product info request
- ///
- public PICSRequest() : this( 0, 0, true )
- {
- }
-
- ///
- /// Instantiate a PICS product info request for a given app or package id
- ///
- /// App or package ID
- public PICSRequest( uint id ) : this( id, 0, true )
- {
- }
///
/// Instantiate a PICS product info request for a given app or package id and an access token
///
/// App or package ID
/// PICS access token
- /// Get only public info
- public PICSRequest( uint id, ulong access_token, bool only_public )
+ public PICSRequest( uint id = 0, ulong access_token = 0 )
{
ID = id;
AccessToken = access_token;
- Public = only_public;
}
}
@@ -205,10 +183,9 @@ public AsyncJob PICSGetChangesSince( uint lastChangeNumber
///
/// App id requested.
/// Package id requested.
- /// Whether to send only public information.
/// Whether to send only meta data.
/// The Job ID of the request. This can be used to find the appropriate .
- public AsyncJobMultiple PICSGetProductInfo(uint? app, uint? package, bool onlyPublic = true, bool metaDataOnly = false)
+ public AsyncJobMultiple PICSGetProductInfo(uint? app, uint? package, bool metaDataOnly = false)
{
List apps = new List();
List packages = new List();
@@ -216,7 +193,7 @@ public AsyncJobMultiple PICSGetProductInfo(uint? app, u
if ( app.HasValue ) apps.Add( app.Value );
if ( package.HasValue ) packages.Add( package.Value );
- return PICSGetProductInfo( apps, packages, onlyPublic, metaDataOnly );
+ return PICSGetProductInfo( apps, packages, metaDataOnly );
}
///
@@ -226,12 +203,11 @@ public AsyncJobMultiple PICSGetProductInfo(uint? app, u
///
/// List of app ids requested.
/// List of package ids requested.
- /// Whether to send only public information.
/// Whether to send only meta data.
/// The Job ID of the request. This can be used to find the appropriate .
- public AsyncJobMultiple PICSGetProductInfo( IEnumerable apps, IEnumerable packages, bool onlyPublic = true, bool metaDataOnly = false )
+ public AsyncJobMultiple PICSGetProductInfo( IEnumerable apps, IEnumerable packages, bool metaDataOnly = false )
{
- return PICSGetProductInfo( apps.Select( app => new PICSRequest( app, 0, onlyPublic ) ), packages.Select( package => new PICSRequest( package ) ), metaDataOnly );
+ return PICSGetProductInfo( apps.Select( app => new PICSRequest( app ) ), packages.Select( package => new PICSRequest( package ) ), metaDataOnly );
}
///
@@ -263,7 +239,7 @@ public AsyncJobMultiple PICSGetProductInfo( IEnumerable
var appinfo = new CMsgClientPICSProductInfoRequest.AppInfo();
appinfo.access_token = app_request.AccessToken;
appinfo.appid = app_request.ID;
- appinfo.only_public_obsolete = app_request.Public;
+ appinfo.only_public_obsolete = false;
request.Body.apps.Add( appinfo );
}