This commit is contained in:
JustArchi
2020-12-19 00:14:45 +01:00
parent 34c5f5cf8b
commit 4ebed5a046

View File

@@ -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));