- Article_demo.zip
- Article_src.zip
- Data.xml
- History.xml
- jMessenger
- build.xml
- build
- built-jar.properties
- classes
- com
- socket
- Download.class
- History.class
- Message.class
- SocketClient.class
- Upload.class
- ui
- ChatFrame$1.class
- ChatFrame$10.class
- ChatFrame$2.class
- ChatFrame$3.class
- ChatFrame$4.class
- ChatFrame$5.class
- ChatFrame$6.class
- ChatFrame$7.class
- ChatFrame$8.class
- ChatFrame$9.class
- ChatFrame.class
- HistoryFrame$1.class
- HistoryFrame$2.class
- HistoryFrame.class
- dist
- README.TXT
- manifest.mf
- nbproject
- src
- jServer
- build.xml
- build
- built-jar.properties
- classes
- com
- socket
- Database.class
- Message.class
- ServerFrame$1.class
- ServerFrame$2.class
- ServerFrame$3.class
- ServerFrame.class
- ServerThread.class
- SocketServer.class
- dist
- README.TXT
- manifest.mf
- nbproject
- src
- com
- socket
|
package com.socket;
import java.io.Serializable;
public class Message implements Serializable{
private static final long serialVersionUID = 1L;
public String type, sender, content, recipient;
public Message(String type, String sender, String content, String recipient){
this.type = type; this.sender = sender; this.content = content; this.recipient = recipient;
}
@Override
public String toString(){
return "{type='"+type+"', sender='"+sender+"', content='"+content+"', recipient='"+recipient+"'}";
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.