Beispiel #1
0
 public void AddPokemonTimestamp(Int64 ts)
 {
     if (!pokemonTimestampCollection.Exists(s => s.Timestamp == ts))
     {
         var stat = new PokemonTimestamp {
             Timestamp = ts
         };
         pokemonTimestampCollection.Insert(stat);
     }
 }
Beispiel #2
0
 public void AddPokemonTimestamp(Int64 ts)
 {
     using (var db = new LiteDatabase(GetDBPath(GetUsername())))
     {
         if (!db.GetCollection <PokemonTimestamp>(POKEMON_STATS_COLLECTION).Exists(s => s.Timestamp == ts))
         {
             var stat = new PokemonTimestamp {
                 Timestamp = ts
             };
             db.GetCollection <PokemonTimestamp>(POKEMON_STATS_COLLECTION).Insert(stat);
         }
     }
 }