-
Notifications
You must be signed in to change notification settings - Fork 3
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
5 changed files
with
105 additions
and
25 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
34 changes: 34 additions & 0 deletions
34
src/main/java/rip/bolt/ingame/api/definitions/BoltRank.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,34 @@ | ||
package rip.bolt.ingame.api.definitions; | ||
|
||
import java.util.Locale; | ||
|
||
public enum BoltRank { | ||
S("S"), | ||
A_PLUS("A+"), | ||
A("A"), | ||
B_PLUS("B"), | ||
B("B"), | ||
C_PLUS("C+"), | ||
C("C"), | ||
D_PLUS("D+"), | ||
D("D"), | ||
UNRANKED("Unranked"); | ||
|
||
private final String displayName; | ||
|
||
BoltRank(String name) { | ||
this.displayName = name; | ||
} | ||
|
||
public String getDisplayName() { | ||
return this.displayName; | ||
} | ||
|
||
public String getId() { | ||
return this.name().toLowerCase(Locale.ROOT); | ||
} | ||
|
||
public String toString() { | ||
return this.name(); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
src/main/java/rip/bolt/ingame/api/definitions/Ranking.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,45 @@ | ||
package rip.bolt.ingame.api.definitions; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Ranking { | ||
|
||
private Integer rating; | ||
private Double score; | ||
private Double sigma; | ||
|
||
private BoltRank rank; | ||
|
||
public Integer getRating() { | ||
return rating; | ||
} | ||
|
||
public void setRating(Integer rating) { | ||
this.rating = rating; | ||
} | ||
|
||
public Double getScore() { | ||
return score; | ||
} | ||
|
||
public void setScore(Double score) { | ||
this.score = score; | ||
} | ||
|
||
public Double getSigma() { | ||
return sigma; | ||
} | ||
|
||
public void setSigma(Double sigma) { | ||
this.sigma = sigma; | ||
} | ||
|
||
public BoltRank getRank() { | ||
return rank; | ||
} | ||
|
||
public void setRank(BoltRank rank) { | ||
this.rank = rank; | ||
} | ||
} |
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