Skip to content

Commit 354e904

Browse files
author
Alvin Reyes
committed
Change annotation attribute names to comply with Java standard CamelCase convention
1 parent 58fdaf4 commit 354e904

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/co/aurasphere/botmill/kik/incoming/event/annotation/BotMillController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
*
4747
* @return the event type
4848
*/
49-
EventType event() default EventType.TEXT_MESSAGE;
49+
EventType eventType() default EventType.TEXT_MESSAGE;
5050

5151
/**
5252
* Text.

src/main/java/co/aurasphere/botmill/kik/model/AbstractAnnotatedDomain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void buildAnnotatedDomain() throws KikBotMillException {
100100
textOrPattern = botMillController.pattern();
101101
}
102102
// set the event.
103-
actionFrame.setEvent(toEvent(botMillController.event(),textOrPattern));
103+
actionFrame.setEvent(toEvent(botMillController.eventType(),textOrPattern));
104104
method.invoke(this); // invoke the method.
105105

106106
// add the action frame to the context.

src/main/java/co/aurasphere/botmill/kik/model/AbstractKikBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected void buildAnnotatedDomain() throws KikBotMillException {
101101
textOrPattern = botMillController.pattern();
102102
}
103103
// set the event.
104-
actionFrame.setEvent(toEvent(botMillController.event(),textOrPattern));
104+
actionFrame.setEvent(toEvent(botMillController.eventType(),textOrPattern));
105105
method.invoke(this); // invoke the method.
106106

107107
// add the action frame to the context.

src/test/java/co/aurasphere/botmill/kik/annotation/AnnotatedDomain.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class AnnotatedDomain extends AbstractKikBot {
5454
/**
5555
* Reply text.
5656
*/
57-
@BotMillController(event = EventType.TEXT_MESSAGE, text = "v")
57+
@BotMillController(eventType = EventType.TEXT_MESSAGE, text = "v")
5858
public void replyText() {
5959
reply(new LinkMessageReply() {
6060
@Override
@@ -68,7 +68,7 @@ public LinkMessage processReply(Message message) {
6868
/**
6969
* Reply text 1.
7070
*/
71-
@BotMillController(event = EventType.TEXT_PATTERN, pattern = "(?i:hi11)")
71+
@BotMillController(eventType = EventType.TEXT_PATTERN, pattern = "(?i:hi11)")
7272
public void replyText1() {
7373
reply(new LinkMessageReply() {
7474
@Override
@@ -82,7 +82,7 @@ public LinkMessage processReply(Message message) {
8282
/**
8383
* Reply text 2.
8484
*/
85-
@BotMillController(event = EventType.ANY)
85+
@BotMillController(eventType = EventType.ANY)
8686
public void replyText2() {
8787
reply(ReplyFactory.buildTextMessageReply("yeaaasss"));
8888
}

0 commit comments

Comments
 (0)