forked from mogade/mogade-java
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added getConfigVersion() API and tests
- Loading branch information
Brian Nesbitt
committed
Nov 5, 2010
1 parent
2c2d304
commit 3fe156a
Showing
6 changed files
with
81 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.mogade.java.protocol; | ||
|
||
public class GetConfigVersionRequest extends BaseRequestImpl | ||
{ | ||
public GetConfigVersionRequest(String key, int v) | ||
{ | ||
super(key, v); | ||
} | ||
public String getUrl() | ||
{ | ||
return "api/conf/version"; | ||
} | ||
public RequestMethod getRequestMethod() | ||
{ | ||
return RequestMethod.GET; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/com/mogade/java/protocol/GetConfigVersionResponse.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 com.mogade.java.protocol; | ||
|
||
public class GetConfigVersionResponse extends BaseResponseImpl | ||
{ | ||
private int version; | ||
private GetConfigVersionResponse() | ||
{ | ||
} | ||
public GetConfigVersionResponse(String info, String maintenance, String error) | ||
{ | ||
super(info, maintenance, error); | ||
} | ||
|
||
public int getVersion() | ||
{ | ||
return version; | ||
} | ||
} |
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