Skip to content

Commit 5dea631

Browse files
committed
Deleted UserChatGateway and made changes to the flow of opening a screen
1 parent b71bebc commit 5dea631

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/main/java/appscreen/AppScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class AppScreen implements AppScreenPresenter, AppScreenController, ChatN
1717

1818

1919
/**
20-
Create an AppScreen object
20+
Create an appscreen.AppScreen object
2121
@param chats This is a list of chats given by the user (the list will always come as sorted with the
2222
most recent chats at the end of the list)
2323
*/
@@ -88,7 +88,7 @@ public void displayAppScreen(){
8888
public void actionPerformed(ActionEvent e) {
8989

9090
/* TODO: call chatView to open the display the window (?) for chat
91-
- not sure if AppScreen and ChatView would be combined into one window, or
91+
- not sure if appscreen.AppScreen and ChatView would be combined into one window, or
9292
two separate windows
9393
*/
9494
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package appscreen;
2+
23
public interface AppScreenPresenter {
34
void displayAppScreen();
45
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
package appscreen;
2+
3+
import testerEntities.*;
4+
import java.util.ArrayList;
5+
26
public interface LoginSuccess {
37
void openScreen();
48
}
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package appscreen;
2+
3+
import testerEntities.*;
4+
25
public interface Refresh {
3-
boolean hasUpdate(String chatID);
4-
void updateScreen(String chatID);
6+
boolean hasUpdate(Chat chat);
7+
8+
void updateScreen(Chat chat);
59
}

0 commit comments

Comments
 (0)