-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from alvin-reyes/master
Added features for Events, Thread Handling and Security
- Loading branch information
Showing
9 changed files
with
218 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/co/aurasphere/botmill/fb/event/account/AccountLinkingEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package co.aurasphere.botmill.fb.event.account; | ||
|
||
import co.aurasphere.botmill.fb.bean.FbBotMillBean; | ||
import co.aurasphere.botmill.fb.event.FbBotMillEvent; | ||
import co.aurasphere.botmill.fb.event.FbBotMillEventType; | ||
import co.aurasphere.botmill.fb.model.incoming.MessageEnvelope; | ||
|
||
public class AccountLinkingEvent extends FbBotMillBean implements FbBotMillEvent { | ||
|
||
/** | ||
* Instantiates a new LocationEvent. | ||
*/ | ||
public AccountLinkingEvent() { | ||
} | ||
|
||
public final boolean verifyEventCondition(MessageEnvelope envelope) { | ||
return eventKind(envelope) == FbBotMillEventType.ACCOUNT_LINKING; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see co.aurasphere.botmill.fb.bean.FbBotMillBean#toString() | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "AccountLinking []"; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/co/aurasphere/botmill/fb/event/account/ReferralEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package co.aurasphere.botmill.fb.event.account; | ||
|
||
import co.aurasphere.botmill.fb.bean.FbBotMillBean; | ||
import co.aurasphere.botmill.fb.event.FbBotMillEvent; | ||
import co.aurasphere.botmill.fb.event.FbBotMillEventType; | ||
import co.aurasphere.botmill.fb.model.incoming.MessageEnvelope; | ||
|
||
public class ReferralEvent extends FbBotMillBean implements FbBotMillEvent { | ||
|
||
/** | ||
* Instantiates a new LocationEvent. | ||
*/ | ||
public ReferralEvent() { | ||
} | ||
|
||
public final boolean verifyEventCondition(MessageEnvelope envelope) { | ||
return eventKind(envelope) == FbBotMillEventType.REFERRAL; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see co.aurasphere.botmill.fb.bean.FbBotMillBean#toString() | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "ReferralEvent []"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.