murakumo_UUIDを何とかするの会_roomに追加し隊 #22

Merged
murakumo merged 3 commits from murakumo_UUIDを何とかするの会_roomに追加し隊 into master 2024-06-28 02:15:45 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 28afc982a7 - Show all commits

View File

@ -175,7 +175,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
CountDownLatch latch = new CountDownLatch(2); CountDownLatch latch = new CountDownLatch(2);
// タスク1: ローカルDBから生徒数を取得 // タスク1: ローカルDBから生徒数を取得してtotalStudentと比較
executor.execute(() -> { executor.execute(() -> {
AppDatabase db = Room.databaseBuilder(getApplicationContext(), AppDatabase.class, "SetUpTable").build(); AppDatabase db = Room.databaseBuilder(getApplicationContext(), AppDatabase.class, "SetUpTable").build();
SetUpTableDao setUpTableDao = db.setUpTableDao(); SetUpTableDao setUpTableDao = db.setUpTableDao();
@ -194,7 +194,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
}); });
}); });
// タスク2: Firestoreからデータを取得 // タスク2: ルート作成を行う
executor.execute(() -> { executor.execute(() -> {
List<MyDataClass> myDataList = firestoreReception.getMyDataList(); List<MyDataClass> myDataList = firestoreReception.getMyDataList();
CreateRoot createRoot = new CreateRoot(MainActivity.this); CreateRoot createRoot = new CreateRoot(MainActivity.this);

View File

@ -16,7 +16,6 @@ public class SetUpTable {
public String endBreakTime; public String endBreakTime;
public int totalStudent; public int totalStudent;
//TODO: ここのコードをあとで実装するroomにint classIdの作成
int classId; int classId;