-
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.
added getCurrentUser method refactored unit tests
- Loading branch information
Showing
5 changed files
with
177 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package io.subutai.client.api; | ||
|
||
|
||
import com.google.gson.GsonBuilder; | ||
|
||
|
||
/** | ||
* Represents user quota on Kurjun<br/> <b>left</b> - number of bytes unused<br/> <b>used</b> - number of bytes | ||
* used<br/> <b>quota</b> - total number of bytes in quota | ||
*/ | ||
public class KurjunQuota | ||
{ | ||
private Long left; | ||
private Long quota; | ||
private Long used; | ||
|
||
|
||
public Long getLeft() | ||
{ | ||
return left; | ||
} | ||
|
||
|
||
public Long getQuota() | ||
{ | ||
return quota; | ||
} | ||
|
||
|
||
public Long getUsed() | ||
{ | ||
return used; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() | ||
{ | ||
return new GsonBuilder().setPrettyPrinting().create().toJson( this ); | ||
} | ||
} |
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.