-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
484 additions
and
70 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
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
18 changes: 18 additions & 0 deletions
18
diablo-client-spring/src/test/java/me/hao0/diablo/client/listener/ActivityNoListener.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,18 @@ | ||
package me.hao0.diablo.client.listener; | ||
|
||
/** | ||
* Author: haolin | ||
* Email: [email protected] | ||
*/ | ||
public class ActivityNoListener implements ConfigListener<String> { | ||
|
||
@Override | ||
public String name() { | ||
return "activityNo"; | ||
} | ||
|
||
@Override | ||
public void onUpdate(String newActivityNo) { | ||
System.out.println("activityNo has updated to: " + newActivityNo); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
diablo-client-spring/src/test/java/me/hao0/diablo/client/listener/TimeInfoListener.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,20 @@ | ||
package me.hao0.diablo.client.listener; | ||
|
||
import me.hao0.diablo.client.config.TimeInfo; | ||
|
||
/** | ||
* Author: haolin | ||
* Email: [email protected] | ||
*/ | ||
public class TimeInfoListener implements ConfigListener<TimeInfo> { | ||
|
||
@Override | ||
public String name() { | ||
return "timeInfo"; | ||
} | ||
|
||
@Override | ||
public void onUpdate(TimeInfo newTimeInfo) { | ||
System.out.println("timeInfo has updated to: " + newTimeInfo); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
diablo-client-spring/src/test/java/me/hao0/diablo/client/listener/TimeInfoMapListener.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,21 @@ | ||
package me.hao0.diablo.client.listener; | ||
|
||
import me.hao0.diablo.client.config.TimeInfo; | ||
import java.util.Map; | ||
|
||
/** | ||
* Author: haolin | ||
* Email: [email protected] | ||
*/ | ||
public class TimeInfoMapListener implements ConfigListener<Map<String, TimeInfo>> { | ||
|
||
@Override | ||
public String name() { | ||
return "timeInfoMap"; | ||
} | ||
|
||
@Override | ||
public void onUpdate(Map<String, TimeInfo> newTimeInfoMap) { | ||
System.out.println("timeInfoMap has updated to: " + newTimeInfoMap); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
diablo-client-spring/src/test/java/me/hao0/diablo/client/listener/TimeInfosListener.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,22 @@ | ||
package me.hao0.diablo.client.listener; | ||
|
||
import me.hao0.diablo.client.config.TimeInfo; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Author: haolin | ||
* Email: [email protected] | ||
*/ | ||
public class TimeInfosListener implements ConfigListener<List<TimeInfo>> { | ||
|
||
@Override | ||
public String name() { | ||
return "timeInfos"; | ||
} | ||
|
||
@Override | ||
public void onUpdate(List<TimeInfo> newTimeInfos) { | ||
System.out.println("timeInfos has updated to: " + newTimeInfos); | ||
} | ||
} |
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
Oops, something went wrong.