From d0e4054fa5228cb43333094c316f85e0bc0f9199 Mon Sep 17 00:00:00 2001 From: KaxiYuan8288 Date: Wed, 19 Jul 2023 12:52:35 -0400 Subject: [PATCH] Added methods for UserGateway --- src/main/java/usergateway/AttorneyRepository.java | 4 ++++ src/main/java/usergateway/ClientRepository.java | 5 +++++ src/main/java/usergateway/UserGateway.java | 1 + 3 files changed, 10 insertions(+) diff --git a/src/main/java/usergateway/AttorneyRepository.java b/src/main/java/usergateway/AttorneyRepository.java index 527bf1c7..5c8b03f4 100644 --- a/src/main/java/usergateway/AttorneyRepository.java +++ b/src/main/java/usergateway/AttorneyRepository.java @@ -20,6 +20,10 @@ public User getUser(int userId) { return null; } + @Override + public String getPassword(int userId) { + return null; + } @Override public void updateQuestionList(Question question) { diff --git a/src/main/java/usergateway/ClientRepository.java b/src/main/java/usergateway/ClientRepository.java index c13d32d4..77ab7595 100644 --- a/src/main/java/usergateway/ClientRepository.java +++ b/src/main/java/usergateway/ClientRepository.java @@ -23,6 +23,11 @@ public User getUser(int userId) { return null; } + @Override + public String getPassword(int userId) { + return null; + } + @Override public void updateQuestionList(Question question) { diff --git a/src/main/java/usergateway/UserGateway.java b/src/main/java/usergateway/UserGateway.java index c1c703db..adb10736 100644 --- a/src/main/java/usergateway/UserGateway.java +++ b/src/main/java/usergateway/UserGateway.java @@ -7,5 +7,6 @@ public interface UserGateway { boolean existsById(int userId); boolean isClient(int userId); User getUser(int userId); + String getPassword(int userId); void updateQuestionList(Question question); }