Make properties of Confirmation class public

This commit is contained in:
JustArchi
2021-04-21 22:49:25 +02:00
parent cd261ff626
commit 377c12e71b

View File

@@ -440,10 +440,17 @@ namespace ArchiSteamFarm {
}
public sealed class Confirmation {
internal readonly ulong Creator;
internal readonly ulong ID;
internal readonly ulong Key;
internal readonly EType Type;
[JsonProperty(Required = Required.Always)]
public ulong Creator { get; }
[JsonProperty(Required = Required.Always)]
public ulong ID { get; }
[JsonProperty(Required = Required.Always)]
public ulong Key { get; }
[JsonProperty(Required = Required.Always)]
public EType Type { get; }
internal Confirmation(ulong id, ulong key, ulong creator, EType type) {
ID = id > 0 ? id : throw new ArgumentOutOfRangeException(nameof(id));