mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-09-20 14:32:05 +00:00
Misc
This commit is contained in:
parent
b8d000bf13
commit
188fc761bb
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue