diff --git a/Runtime/Code/SDK/GuruSDK.Remote.cs b/Runtime/Code/SDK/GuruSDK.Remote.cs index c3c6351..87bfdf2 100644 --- a/Runtime/Code/SDK/GuruSDK.Remote.cs +++ b/Runtime/Code/SDK/GuruSDK.Remote.cs @@ -30,12 +30,12 @@ namespace Guru { return RemoteConfigManager.GetConfig(key); } - public static string GetRemoteString(string key) => RemoteConfigManager.GetString(key); - public static int GetRemoteInt(string key) => RemoteConfigManager.GetInt(key); - public static long GetRemoteLong(string key) => RemoteConfigManager.GetLong(key); - public static double GetRemoteDouble(string key) => RemoteConfigManager.GetDouble(key); - public static float GetRemoteFloat(string key) => RemoteConfigManager.GetFloat(key); - public static bool GetRemoteBool(string key) => RemoteConfigManager.GetBool(key); + public static string GetRemoteString(string key, string defaultValue = "") => RemoteConfigManager.GetString(key, defaultValue); + public static int GetRemoteInt(string key, int defaultValue = 0) => RemoteConfigManager.GetInt(key, defaultValue); + public static long GetRemoteLong(string key, long defaultValue = 0 ) => RemoteConfigManager.GetLong(key, defaultValue); + public static double GetRemoteDouble(string key, double defaultValue = 0) => RemoteConfigManager.GetDouble(key, defaultValue); + public static float GetRemoteFloat(string key, float defaultValue = 0) => RemoteConfigManager.GetFloat(key, defaultValue); + public static bool GetRemoteBool(string key, bool defaultValue = false) => RemoteConfigManager.GetBool(key, defaultValue); public static void RegisterOnValueChanged(string key, Action onValueChanged)