mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -2383,7 +2383,7 @@ namespace ArchiSteamFarm {
|
||||
return false;
|
||||
}
|
||||
|
||||
ulong contextID = item["contextid"].AsUnsignedLong();
|
||||
uint contextID = item["contextid"].AsUnsignedInteger();
|
||||
|
||||
if (contextID == 0) {
|
||||
ASF.ArchiLogger.LogNullError(nameof(contextID));
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace ArchiSteamFarm.Json {
|
||||
public ulong ClassID { get; private set; }
|
||||
|
||||
[PublicAPI]
|
||||
public ulong ContextID { get; private set; }
|
||||
public uint ContextID { get; private set; }
|
||||
|
||||
[PublicAPI]
|
||||
public uint RealAppID { get; internal set; }
|
||||
@@ -139,7 +139,7 @@ namespace ArchiSteamFarm.Json {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ulong.TryParse(value, out ulong contextID) || (contextID == 0)) {
|
||||
if (!uint.TryParse(value, out uint contextID) || (contextID == 0)) {
|
||||
ASF.ArchiLogger.LogNullError(nameof(contextID));
|
||||
|
||||
return;
|
||||
@@ -157,7 +157,7 @@ namespace ArchiSteamFarm.Json {
|
||||
}
|
||||
|
||||
// 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)) {
|
||||
throw new ArgumentNullException(nameof(appID) + " || " + nameof(contextID) + " || " + nameof(classID) + " || " + nameof(amount));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user