public class MastodonAccount extends BaseMicroblogAccountImpl implements MicroblogAccount
Constructor and Description |
---|
MastodonAccount(MastodonAccountConfiguration configuration)
Creates a new Mastodon account instance using instance and OAuth
credentials as specified in the configuration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFriendlyName() |
void |
updateStatus(java.lang.String text,
java.awt.image.RenderedImage image)
Updates the status for the microblogging account.
|
getStatusTypes, updateStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatusTypes, updateStatus
public MastodonAccount(MastodonAccountConfiguration configuration)
configuration
- The configuration specific to the Mastodon account.public void updateStatus(java.lang.String text, java.awt.image.RenderedImage image) throws MicroblogUpdateFailedException
MicroblogAccount
updateStatus
in interface MicroblogAccount
updateStatus
in class BaseMicroblogAccountImpl
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.public java.lang.String getFriendlyName()
getFriendlyName
in interface MicroblogAccount