2024-03-16 23:06:13 +00:00
|
|
|
// ----------------------------------------------------------------------------------------------
|
2021-05-22 17:45:27 +00:00
|
|
|
// _ _ _ ____ _ _____
|
2021-05-02 23:08:12 +00:00
|
|
|
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
|
|
|
|
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
|
|
|
|
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
|
|
|
|
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
|
2024-03-16 23:06:13 +00:00
|
|
|
// ----------------------------------------------------------------------------------------------
|
2024-03-17 01:35:40 +00:00
|
|
|
// |
|
2024-01-08 10:33:28 +00:00
|
|
|
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
|
2021-05-02 23:08:12 +00:00
|
|
|
// Contact: JustArchi@JustArchi.net
|
2024-03-17 01:35:40 +00:00
|
|
|
// |
|
2021-05-02 23:08:12 +00:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
2024-03-17 01:35:40 +00:00
|
|
|
// |
|
2021-05-02 23:08:12 +00:00
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
2024-03-17 01:35:40 +00:00
|
|
|
// |
|
2021-05-02 23:08:12 +00:00
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
using System.Collections.Immutable;
|
2024-02-21 02:09:36 +00:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
using ArchiSteamFarm.Helpers.Json;
|
2021-06-30 21:12:15 +00:00
|
|
|
using ArchiSteamFarm.IPC.Integration;
|
2021-05-02 23:08:12 +00:00
|
|
|
|
2021-11-10 20:23:24 +00:00
|
|
|
namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper;
|
|
|
|
|
|
|
|
public sealed class SteamTokenDumperConfig {
|
2024-02-21 02:09:36 +00:00
|
|
|
[JsonInclude]
|
2021-11-10 20:23:24 +00:00
|
|
|
public bool Enabled { get; internal set; }
|
|
|
|
|
2024-02-21 02:09:36 +00:00
|
|
|
[JsonDisallowNull]
|
|
|
|
[JsonInclude]
|
2021-11-10 20:23:24 +00:00
|
|
|
[SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
|
2024-03-17 01:54:28 +00:00
|
|
|
public ImmutableHashSet<uint> SecretAppIDs { get; private init; } = [];
|
2021-11-10 20:23:24 +00:00
|
|
|
|
2024-02-21 02:09:36 +00:00
|
|
|
[JsonDisallowNull]
|
|
|
|
[JsonInclude]
|
2021-11-10 20:23:24 +00:00
|
|
|
[SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
|
2024-03-17 01:54:28 +00:00
|
|
|
public ImmutableHashSet<uint> SecretDepotIDs { get; private init; } = [];
|
2021-11-10 20:23:24 +00:00
|
|
|
|
2024-02-21 02:09:36 +00:00
|
|
|
[JsonDisallowNull]
|
|
|
|
[JsonInclude]
|
2021-11-10 20:23:24 +00:00
|
|
|
[SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
|
2024-03-17 01:54:28 +00:00
|
|
|
public ImmutableHashSet<uint> SecretPackageIDs { get; private init; } = [];
|
2021-11-10 20:23:24 +00:00
|
|
|
|
2024-02-21 02:09:36 +00:00
|
|
|
[JsonInclude]
|
|
|
|
public bool SkipAutoGrantPackages { get; private init; } = true;
|
2021-11-10 20:23:24 +00:00
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
internal SteamTokenDumperConfig() { }
|
2021-05-02 23:08:12 +00:00
|
|
|
}
|