This commit is contained in:
JustArchi 2019-01-11 01:08:01 +01:00
parent b8d000bf13
commit 188fc761bb
2 changed files with 4 additions and 4 deletions

View file

@ -2383,7 +2383,7 @@ namespace ArchiSteamFarm {
return false; return false;
} }
ulong contextID = item["contextid"].AsUnsignedLong(); uint contextID = item["contextid"].AsUnsignedInteger();
if (contextID == 0) { if (contextID == 0) {
ASF.ArchiLogger.LogNullError(nameof(contextID)); ASF.ArchiLogger.LogNullError(nameof(contextID));

View file

@ -52,7 +52,7 @@ namespace ArchiSteamFarm.Json {
public ulong ClassID { get; private set; } public ulong ClassID { get; private set; }
[PublicAPI] [PublicAPI]
public ulong ContextID { get; private set; } public uint ContextID { get; private set; }
[PublicAPI] [PublicAPI]
public uint RealAppID { get; internal set; } public uint RealAppID { get; internal set; }
@ -139,7 +139,7 @@ namespace ArchiSteamFarm.Json {
return; return;
} }
if (!ulong.TryParse(value, out ulong contextID) || (contextID == 0)) { if (!uint.TryParse(value, out uint contextID) || (contextID == 0)) {
ASF.ArchiLogger.LogNullError(nameof(contextID)); ASF.ArchiLogger.LogNullError(nameof(contextID));
return; return;
@ -157,7 +157,7 @@ namespace ArchiSteamFarm.Json {
} }
// Constructed from trades being received or plugins // Constructed from trades being received or plugins
public Asset(uint appID, ulong contextID, ulong classID, uint amount, uint realAppID = 0, EType type = EType.Unknown) { public Asset(uint appID, uint contextID, ulong classID, uint amount, uint realAppID = 0, EType type = EType.Unknown) {
if ((appID == 0) || (contextID == 0) || (classID == 0) || (amount == 0)) { if ((appID == 0) || (contextID == 0) || (classID == 0) || (amount == 0)) {
throw new ArgumentNullException(nameof(appID) + " || " + nameof(contextID) + " || " + nameof(classID) + " || " + nameof(amount)); throw new ArgumentNullException(nameof(appID) + " || " + nameof(contextID) + " || " + nameof(classID) + " || " + nameof(amount));
} }