public async Task <bool> AddLog(AppLog appLog) { try { var store = new FirebaseDataStore <AppLog>(BaseUrl, GetTableName(appLog.GetType())); await store.AddItemAsync(appLog); return(true); } catch (Exception ex) { return(false); } }
public async Task <bool> AddTaskStatisticsAsync(TaskStatistic taskStatistic) { try { var store = new FirebaseDataStore <TaskStatistic>(BaseUrl, GetTableName(taskStatistic.GetType())); await store.AddItemAsync(taskStatistic); return(true); } catch (Exception ex) { return(false); } }