|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.game.JudgeEmailMessage
public class JudgeEmailMessage
An e-mail message from a judge.
| Field Summary | |
|---|---|
static int |
TYPE_GAME
A game message |
static int |
TYPE_OTHER
An other message |
static int |
TYPE_PRESS
A press message |
static int |
TYPE_RESULT
A result message |
| Constructor Summary | |
|---|---|
JudgeEmailMessage(javax.mail.Message msg,
java.util.Collection judges)
Constructor for EmailInfo. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBody()
Returns the body of the message |
java.lang.String |
getDate()
Returns the date of the message |
java.lang.String |
getError()
Returns the error message or null |
java.lang.String |
getGame()
Returns the game (null if Type if TYPE_OTHER) |
Judge |
getJudge()
Returns the judge (can be null if there is an error) |
java.lang.String |
getSender()
Returns the sender of the message |
java.lang.String |
getSubject()
Returns the subject of the message |
int |
getType()
Returns the type of the message (TYPE_...) |
java.lang.String |
toString()
Returns a text that can be parsed by the JudgeParser class and contains all the information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_RESULT
public static final int TYPE_PRESS
public static final int TYPE_GAME
public static final int TYPE_OTHER
| Constructor Detail |
|---|
public JudgeEmailMessage(javax.mail.Message msg,
java.util.Collection judges)
| Method Detail |
|---|
public int getType()
public java.lang.String getError()
public java.lang.String getSender()
public java.lang.String getSubject()
public java.lang.String getDate()
public java.lang.String getBody()
public Judge getJudge()
public java.lang.String getGame()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||