public interface MicroblogAccount
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFriendlyName() |
java.util.List<StatusType> |
getStatusTypes()
Gets the list of desirable status update types for this account.
|
void |
updateStatus(MicroblogStatus status)
Conditionally updates the status for the microblogging account.
|
void |
updateStatus(java.lang.String text,
java.awt.image.RenderedImage image)
Updates the status for the microblogging account.
|
void updateStatus(java.lang.String text, java.awt.image.RenderedImage image) throws MicroblogUpdateFailedException
text
- The text of a status updateimage
- An image to be included in the status update, or null if no image
is includedMicroblogUpdateFailedException
- Thrown if a status update fails for a microblog.void updateStatus(MicroblogStatus status) throws MicroblogUpdateFailedException
BaseMicroblogAccountImpl
so classes extending
that class would only need to implement
updateStatus(String, RenderedImage)
. This method should check to
see that the status update has a type that is desired by the particular
microblogging account before updating the status.status
- The generated status updateMicroblogUpdateFailedException
- Thrown if a status update fails for a microblog.java.util.List<StatusType> getStatusTypes()
StatusType
java.lang.String getFriendlyName()