mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc code syntax
This commit is contained in:
@@ -30,6 +30,6 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper;
|
||||
public sealed class SteamTokenDumperController : ArchiController {
|
||||
[HttpGet(nameof(GlobalConfigExtension))]
|
||||
[ProducesResponseType<GlobalConfigExtension>((int) HttpStatusCode.OK)]
|
||||
[SwaggerOperation(Tags = new[] { nameof(GlobalConfigExtension) })]
|
||||
[SwaggerOperation(Tags = [nameof(GlobalConfigExtension)])]
|
||||
public ActionResult<GlobalConfigExtension> Get() => Ok(new GlobalConfigExtension());
|
||||
}
|
||||
|
||||
@@ -69,13 +69,13 @@ public static class SharedInfo {
|
||||
internal const string WebsiteDirectory = "www";
|
||||
|
||||
[PublicAPI]
|
||||
public static readonly char[] ListElementSeparators = { ',' };
|
||||
public static readonly char[] ListElementSeparators = [','];
|
||||
|
||||
[PublicAPI]
|
||||
public static readonly string[] NewLineIndicators = { "\r\n", "\r", "\n" };
|
||||
public static readonly string[] NewLineIndicators = ["\r\n", "\r", "\n"];
|
||||
|
||||
[PublicAPI]
|
||||
public static readonly string[] RangeIndicators = { ".." };
|
||||
public static readonly string[] RangeIndicators = [".."];
|
||||
|
||||
internal static string HomeDirectory {
|
||||
get {
|
||||
|
||||
@@ -162,7 +162,7 @@ public sealed class BotConfig {
|
||||
public EBotBehaviour BotBehaviour { get; private set; } = DefaultBotBehaviour;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[SwaggerValidValues(ValidIntValues = new[] { (int) Asset.EType.FoilTradingCard, (int) Asset.EType.TradingCard })]
|
||||
[SwaggerValidValues(ValidIntValues = [(int) Asset.EType.FoilTradingCard, (int) Asset.EType.TradingCard])]
|
||||
public ImmutableHashSet<Asset.EType> CompleteTypesToSend { get; private set; } = DefaultCompleteTypesToSend;
|
||||
|
||||
[JsonProperty]
|
||||
@@ -242,13 +242,13 @@ public sealed class BotConfig {
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[SwaggerSteamIdentifier(AccountType = EAccountType.Clan)]
|
||||
[SwaggerValidValues(ValidIntValues = new[] { 0 })]
|
||||
[SwaggerValidValues(ValidIntValues = [0])]
|
||||
public ulong SteamMasterClanID { get; private set; } = DefaultSteamMasterClanID;
|
||||
|
||||
[JsonProperty]
|
||||
[MaxLength(SteamParentalCodeLength)]
|
||||
[MinLength(SteamParentalCodeLength)]
|
||||
[SwaggerValidValues(ValidStringValues = new[] { "0" })]
|
||||
[SwaggerValidValues(ValidStringValues = ["0"])]
|
||||
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "This is optional, supportive attribute, we don't care if it gets trimmed or not")]
|
||||
public string? SteamParentalCode {
|
||||
get => BackingSteamParentalCode;
|
||||
|
||||
@@ -282,7 +282,7 @@ public sealed class GlobalConfig {
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[SwaggerSteamIdentifier]
|
||||
[SwaggerValidValues(ValidIntValues = new[] { 0 })]
|
||||
[SwaggerValidValues(ValidIntValues = [0])]
|
||||
public ulong SteamOwnerID { get; private set; } = DefaultSteamOwnerID;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
|
||||
Reference in New Issue
Block a user