예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }