public class AlertWebhookMessage extends WebhookMessage
WebhookMessage.WebhookMessageType
concerned, date, messageType, placeholders, sender
Constructor and Description |
---|
AlertWebhookMessage(WebhookMessage.WebhookMessageType messageType,
Player concerned,
String sender,
long date,
long amount,
int reliability,
Cheat cheat) |
Modifier and Type | Method and Description |
---|---|
String |
applyPlaceHolders(String message)
Apply all placeholders available for this message
|
boolean |
canCombine()
Know if this type of webhook message can be combined.
|
AlertWebhookMessage |
combine(WebhookMessage msg)
Combine actual message instance with given one
|
int |
compareTo(WebhookMessage o) |
long |
getAmount() |
Cheat |
getCheat() |
int |
getReliability() |
getConcerned, getDate, getMessageType, getPlaceholders, getSender
public AlertWebhookMessage(WebhookMessage.WebhookMessageType messageType, Player concerned, String sender, long date, long amount, int reliability, Cheat cheat)
public long getAmount()
public Cheat getCheat()
public int getReliability()
public AlertWebhookMessage combine(WebhookMessage msg)
WebhookMessage
combine
in class WebhookMessage
msg
- the message to addpublic boolean canCombine()
WebhookMessage
canCombine
in class WebhookMessage
public int compareTo(WebhookMessage o)
compareTo
in interface Comparable<WebhookMessage>
compareTo
in class WebhookMessage
public String applyPlaceHolders(String message)
WebhookMessage
applyPlaceHolders
in class WebhookMessage
message
- the raw message