-
Notifications
You must be signed in to change notification settings - Fork 7
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 #19 from tvd12/master
release version 1.0.7
- Loading branch information
Showing
7 changed files
with
120 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/tvd12/ezyfox/core/command/GetCurrentFolder.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,16 @@ | ||
/** | ||
* | ||
*/ | ||
package com.tvd12.ezyfox.core.command; | ||
|
||
/** | ||
* Return the relative path to the current extension folder | ||
* Typically this will return: extensions/{name-of-extension}/ | ||
* The path is relative to the Server root folder and it can be used to load external data files that are stored together with the extension jar file(s) | ||
* | ||
* @author tavandung12 | ||
* | ||
*/ | ||
public interface GetCurrentFolder extends BaseCommand { | ||
|
||
} |
76 changes: 76 additions & 0 deletions
76
src/main/java/com/tvd12/ezyfox/core/command/PingClient.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,76 @@ | ||
package com.tvd12.ezyfox.core.command; | ||
|
||
import com.tvd12.ezyfox.core.entities.ApiBaseUser; | ||
|
||
/** | ||
* Run this command to ping client | ||
* | ||
* @author tavandung12 | ||
* | ||
*/ | ||
|
||
public interface PingClient { | ||
|
||
/** | ||
* set delay time | ||
* | ||
* @param time delay time | ||
* @return this pointer | ||
*/ | ||
PingClient delay(long time); | ||
|
||
/** | ||
* set schedule on time or not | ||
* | ||
* @param value true or false | ||
* @return this pointer | ||
*/ | ||
PingClient oneTime(boolean value); | ||
|
||
/** | ||
* set period | ||
* | ||
* @param value period | ||
* @return this pointer | ||
*/ | ||
PingClient period(long value); | ||
|
||
/** | ||
* set task | ||
* | ||
* @param value a task | ||
* @return this pointer | ||
*/ | ||
PingClient callback(Runnable value); | ||
|
||
/** | ||
* User (client) to ping | ||
* | ||
* @param user the user | ||
* @return this pointer | ||
*/ | ||
PingClient user(ApiBaseUser user); | ||
|
||
/** | ||
* start schedule | ||
*/ | ||
void ping(); | ||
|
||
/** | ||
* stop schedule after done | ||
*/ | ||
void stop(); | ||
|
||
/** | ||
* stop schedule without waiting for task's done | ||
*/ | ||
void stopNow(); | ||
|
||
/** | ||
* Indicate that the schedule is stopped or not | ||
* | ||
* @return true or false | ||
*/ | ||
boolean stopped(); | ||
|
||
} |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/com/tvd12/ezyfox/core/constants/ApiRequest.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,14 @@ | ||
/** | ||
* | ||
*/ | ||
package com.tvd12.ezyfox.core.constants; | ||
|
||
/** | ||
* @author tavandung12 | ||
* | ||
*/ | ||
public interface ApiRequest { | ||
|
||
static final String PING = "ping"; | ||
|
||
} |