29 lines
452 B
Java
29 lines
452 B
Java
package rmi_chat;
|
|
|
|
import rmi_hello_world_factory.ServerFactory;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Created by Giovanni on 10/12/2014.
|
|
*/
|
|
public class Message implements Serializable{
|
|
|
|
public Message (String ifrom, String im){
|
|
from = ifrom;
|
|
m = im;
|
|
}
|
|
|
|
public String getFrom() {
|
|
return from;
|
|
}
|
|
|
|
public String getM() {
|
|
return m;
|
|
}
|
|
|
|
private final String from;
|
|
private final String m;
|
|
|
|
}
|