diff --git a/app/src/main/java/com/example/sprout/refactor/model/ModelLocator.java b/app/src/main/java/com/example/sprout/refactor/model/ModelLocator.java index 2fefd34..0dbbd25 100644 --- a/app/src/main/java/com/example/sprout/refactor/model/ModelLocator.java +++ b/app/src/main/java/com/example/sprout/refactor/model/ModelLocator.java @@ -23,6 +23,8 @@ // Modelを管理するクラス群 private RegistrationModel registrationModel = new RegistrationModel(this.registrationRepository); + private RoomsModel roomsModel = new RoomsModel(this.roomRepository); + private RoomResponseModel roomResponseModel = new RoomResponseModel(this.roomRepository); private ModelLocator() { } @@ -61,4 +63,12 @@ public RegistrationModel getRegistrationModel() { return registrationModel; } + + public RoomsModel getRoomsModel() { + return roomsModel; + } + + public RoomResponseModel getRoomResponseModel() { + return roomResponseModel; + } }