|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.cam.acr31.android.geomessaging.servertools.Message
public class Message
A geotagged message returned from the server. This class wraps the two aspects of a message: the message text itself and the URL from which to request the associated image.
| Field Summary | |
|---|---|
private java.lang.String |
message
The message text itself |
private java.lang.String |
pictureUri
The URL of the image for this message |
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Two messages are equal if their picture URL and message text are equal |
java.lang.String |
getMessage()
Return the message text |
java.lang.String |
getPictureUri()
Returns the absolute URL for the image associated with this message |
int |
hashCode()
Two messages have the same hashcode if their picture URL and message text are the same |
void |
setMessage(java.lang.String message)
Store the text of this message |
void |
setPictureUri(java.lang.String pictureUri)
Store the absolute image URL for this message |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String pictureUri
private java.lang.String message
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public java.lang.String getPictureUri()
public void setPictureUri(java.lang.String pictureUri)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||