-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor fixes and changes to the leaderboard
- Loading branch information
Showing
4 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
client/src/main/java/groupxii/client/connector/UserConnector.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,17 @@ | ||
package groupxii.client.connector; | ||
|
||
import static groupxii.client.connector.Connector.postRequest; | ||
|
||
public class UserConnector { | ||
|
||
/** | ||
* communicates with the target server, and updates the | ||
* total co2 reduction of the user in the database. | ||
* @param amount of CO2 the user has reduced | ||
* @return JSON String | ||
*/ | ||
public static String updateReducedCo2(int amount) { | ||
return postRequest("/increaseReducedCo2OfUser?amount=" | ||
+ amount); | ||
} | ||
} |
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