Libation 4.0 prep: incrementally incorporate jsonpath (1) all AccountsSettings.json access must use centralized jsonpath. For now == null
This commit is contained in:
parent
efa5cefa23
commit
f50dab94a4
3 changed files with 20 additions and 8 deletions
|
|
@ -1,10 +1,26 @@
|
|||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using System.IO;
|
||||
|
||||
namespace FileManager
|
||||
{
|
||||
public static class AudibleApiStorage
|
||||
{
|
||||
// not customizable. don't move to config
|
||||
public static string AccountsSettingsFile => Path.Combine(Configuration.Instance.LibationFiles, "AccountsSettings.json");
|
||||
|
||||
public static string GetJsonPath(
|
||||
//string username
|
||||
////, string locale
|
||||
)
|
||||
{
|
||||
return null;
|
||||
|
||||
|
||||
//var usernameSanitized = JsonConvert.ToString(username);
|
||||
|
||||
////var localeSanitized = JsonConvert.ToString(locale);
|
||||
////return $"$.ApiConnectionSettings[?(@.Username == '{usernameSanitized}' && @.IdentityTokens.Locale == '{localeSanitized}')].IdentityTokens";
|
||||
|
||||
//return $"$.ApiConnectionSettings[?(@.Username == '{usernameSanitized}')].IdentityTokens";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue