[Serializable]
public abstract class CSMessage : MessageBase {
private string userName;
protected CSMessage(string anUserName) {
userName = anUserName;
}
public string UserName {
get { return userName; }
}
}
[Serializable]
public class LoginMessage : CSMessage {
private string password;
public LoginMessage(string userName, string password) : base(userName) {
this.password = password;
}
public string Password {
get { return password; }
}
}
public abstract class CSMessage : MessageBase {
private string userName;
protected CSMessage(string anUserName) {
userName = anUserName;
}
public string UserName {
get { return userName; }
}
}
[Serializable]
public class LoginMessage : CSMessage {
private string password;
public LoginMessage(string userName, string password) : base(userName) {
this.password = password;
}
public string Password {
get { return password; }
}
}