chore(deps): update asf-ui digest to fe1f167
[ArchiSteamFarm.git] / ArchiSteamFarm.OfficialPlugins.SteamTokenDumper / SteamTokenDumperConfig.cs
blob4edfaf6495aedb175955d5588e720fbb310af6c8
1 // ----------------------------------------------------------------------------------------------
2 // _ _ _ ____ _ _____
3 // / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
4 // / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
5 // / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
6 // /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
7 // ----------------------------------------------------------------------------------------------
8 // |
9 // Copyright 2015-2024 Ɓukasz "JustArchi" Domeradzki
10 // Contact: JustArchi@JustArchi.net
11 // |
12 // Licensed under the Apache License, Version 2.0 (the "License");
13 // you may not use this file except in compliance with the License.
14 // You may obtain a copy of the License at
15 // |
16 // http://www.apache.org/licenses/LICENSE-2.0
17 // |
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the License is distributed on an "AS IS" BASIS,
20 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 // See the License for the specific language governing permissions and
22 // limitations under the License.
24 using System.Collections.Immutable;
25 using System.Text.Json.Serialization;
26 using ArchiSteamFarm.Helpers.Json;
27 using ArchiSteamFarm.IPC.Integration;
29 namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper;
31 public sealed class SteamTokenDumperConfig {
32 [JsonInclude]
33 public bool Enabled { get; internal set; }
35 [JsonDisallowNull]
36 [JsonInclude]
37 [SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
38 public ImmutableHashSet<uint> SecretAppIDs { get; private init; } = [];
40 [JsonDisallowNull]
41 [JsonInclude]
42 [SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
43 public ImmutableHashSet<uint> SecretDepotIDs { get; private init; } = [];
45 [JsonDisallowNull]
46 [JsonInclude]
47 [SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
48 public ImmutableHashSet<uint> SecretPackageIDs { get; private init; } = [];
50 [JsonInclude]
51 public bool SkipAutoGrantPackages { get; private init; } = true;
53 [JsonConstructor]
54 internal SteamTokenDumperConfig() { }