using TINK.Model.Connector;
namespace TINK.Repository.Request
{
public static class RequestBuilderHelper
{
///
/// Gets the REST language parameter.
///
/// Two letter ISO language name.
///
public static string GetLanguageParameter(string uiIsoLangugageName)
=> !string.IsNullOrEmpty(uiIsoLangugageName)
? $"&lang={uiIsoLangugageName}"
: string.Empty;
public static lock_state? GetLockState(this LockingAction? action)
{
switch (action)
{
case LockingAction.Open:
return lock_state.unlocking;
case LockingAction.Close:
return lock_state.locking;
default:
return null;
}
}
}
}