mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -482,6 +482,15 @@ namespace ArchiSteamFarm {
|
||||
};
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public string GetFilePath(EFileType fileType) {
|
||||
if (!Enum.IsDefined(typeof(EFileType), fileType)) {
|
||||
throw new InvalidEnumArgumentException(nameof(fileType), (int) fileType, typeof(EFileType));
|
||||
}
|
||||
|
||||
return GetFilePath(BotName, fileType);
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public async Task<byte?> GetTradeHoldDuration(ulong steamID, ulong tradeID) {
|
||||
if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount) {
|
||||
@@ -1678,14 +1687,6 @@ namespace ArchiSteamFarm {
|
||||
return message.Replace("\\", "\\\\").Replace("[", "\\[");
|
||||
}
|
||||
|
||||
private string GetFilePath(EFileType fileType) {
|
||||
if (!Enum.IsDefined(typeof(EFileType), fileType)) {
|
||||
throw new ArgumentNullException(nameof(fileType));
|
||||
}
|
||||
|
||||
return GetFilePath(BotName, fileType);
|
||||
}
|
||||
|
||||
private async Task<Dictionary<string, string>?> GetKeysFromFile(string filePath) {
|
||||
if (string.IsNullOrEmpty(filePath)) {
|
||||
throw new ArgumentNullException(nameof(filePath));
|
||||
|
||||
Reference in New Issue
Block a user