Skip to content

Commit

Permalink
Merge pull request #28 from CSC207-2023Y-UofT/16-database-2-user-gateway
Browse files Browse the repository at this point in the history
User gateway partially finished for use case development
  • Loading branch information
YifanLiu2 authored Jul 18, 2023
2 parents d641d1c + da60d35 commit a5302e9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/usergateway/AttorneyRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package usergateway;

public class AttorneyRepository{
}
7 changes: 7 additions & 0 deletions src/main/java/usergateway/ClientRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package usergateway;

import java.util.HashMap;
import java.util.Map;

public class ClientRepository{
}
11 changes: 11 additions & 0 deletions src/main/java/usergateway/UserGateway.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package usergateway;

import userentities.User;
import questionentities.Question;

public interface UserGateway {
boolean existsById(int userId);
boolean isClient(int userId);
User getUser(int userId);
void updateQuestionList(Question question);
}

0 comments on commit a5302e9

Please sign in to comment.