Example #1
0
            public static T CreateDefault <T>() where T : TraderSettingsBase, new()
            {
                if (typeof(T) == typeof(IsOffchainUserSettings))
                {
                    return(IsOffchainUserSettings.CreateDefault() as T);
                }

                if (typeof(T) == typeof(PushNotificationsSettings))
                {
                    return(PushNotificationsSettings.CreateDefault() as T);
                }

                return(new T());
            }