|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fedorchuck.developers_notification.antispam.FrequencyOfSending
public class FrequencyOfSending
This class regulate frequency of sending messages to messengers
Author: Volodymyr Fedorchuk
| Constructor Summary | |
|---|---|
FrequencyOfSending()
|
|
| Method Summary | |
|---|---|
static boolean |
canSendMessage(MessageTypes type)
Checking, is able to sending message with it type. |
static boolean |
canSendMessage(SentMessage sentMessage)
Checking, is able to sending this message. |
static boolean |
messageSent(MessageTypes type)
Change status for message to avoid spam. |
static boolean |
messageSent(SentMessage sentMessage)
Change status for message to avoid spam. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrequencyOfSending()
| Method Detail |
|---|
public static boolean canSendMessage(MessageTypes type)
type - of message for sending
true if this action available;
false otherwise.
java.lang.IllegalArgumentException - if method called for MessageTypes.USERS_MESSAGEpublic static boolean canSendMessage(SentMessage sentMessage)
sentMessage - for sending
true if this action available;
false otherwise.
java.lang.IllegalArgumentException - if method called for MessageTypes.USERS_MESSAGEpublic static boolean messageSent(MessageTypes type)
type - of message for sending
true if this action completed successfully;
false otherwise.
java.lang.IllegalArgumentException - if method called for MessageTypes.USERS_MESSAGEpublic static boolean messageSent(SentMessage sentMessage)
sentMessage - for sending
true if this action completed successfully;
false otherwise.
java.lang.IllegalArgumentException - if method called for MessageTypes.USERS_MESSAGE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||