Пример #1
0
 public PatreonConfig GetConfig()
 {
     if (lastConfig != null)
     {
         return(lastConfig);
     }
     return(Database.Load <PatreonConfig>(PatreonConfig.DocumentName()) ?? new PatreonConfig());
 }
Пример #2
0
 public void SaveConfig(PatreonConfig config)
 {
     lastConfig = config;
     Database.Store(config, PatreonConfig.DocumentName());
 }