using System;
|
using Foundation;
|
using System.Resources;
|
namespace Other.Siri
|
{
|
public static class NSUserDefaultsHelper
|
{
|
private const string AppGroup = "group.com.hdl.onpro";
|
|
|
|
public static class StorageKeys
|
{
|
public const string SoupMenu = "soupMenu";
|
public const string OrderHistory = "orderHistory";
|
public const string VoiceShortcutHistory = "voiceShortcutHistory";
|
|
public const string APP_KEY = "HDL-HOME-APP-TEST";
|
public const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss";
|
|
|
public const string GLOBAL_GIsLogin = "IsLogin";
|
|
public const string GLOBAL_GAccessToken = "AccessToken";
|
|
public const string GLOBAL_GRefreshToken = "RefreshToken";
|
|
public const string GLOBAL_GRegionUrl = "RegionUrl";
|
}
|
|
public static NSUserDefaults DataSuite {
|
get {
|
var dataSuite = new NSUserDefaults(AppGroup, NSUserDefaultsType.SuiteName);
|
if( dataSuite is null )
|
{
|
throw new Exception($"Could not load UserDefaults for app group {AppGroup}");
|
}
|
return dataSuite;
|
}
|
}
|
}
|
}
|