Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create messagelogs.java #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions messagelogs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
public class Log {
private Message m;
/** this is to call from message /
*
* @return
*/



private String[] GetConversationData() {
m.getData();
return null;
/**
* get the user conversation from the server/
*/
}



private String[] GetUserData() {
m.getData();
return null;
/**get the data for the conversation
*
*/

}

public Log(Message m) {
this.m = m;
}




/**this is to log message

*/
public void LogMessage() {
if(m.getDate().isEmpty()) {
while(m.getDate().contains(null)) {
System.out.println(m.getToServer());

}


}
/**
* null is a place holder for message array
* message will be organized by date of publish
* and if if message date list is empty then the array do nothing
* then if message date is full then
* it go in a tranversal loop to reveal all the message said in that date
*
*/

}






public void sendLogs() {
/**
* this is to send message logs to the server
*/
}





}