Skip to content

Instantly share code, notes, and snippets.

@marcandreher
Last active June 30, 2018 10:41
Show Gist options
  • Save marcandreher/f9d5962ba28da78d56a3c5eee4da79bd to your computer and use it in GitHub Desktop.
Save marcandreher/f9d5962ba28da78d56a3c5eee4da79bd to your computer and use it in GitHub Desktop.
soos

The RippleAPI for Java

To use it download the Release.

Introduce Users

You must create a User First You have 2 diffrent Types for that:

UserType.ID
UserType.NAME
User u = new User(UserType.NAME, "MarcPlaying");

You can get Diffrent Things from a User

u.getCurrentAPICode() - Long
u.getCountry() - String
u.getID() - Long
u.getLatest_Activity() - String
u.getPrivileges() - Long
u.getRegistered_On() - String
u.getUserName() - String
u.getUserName_aka() - String
u.getRawJSON() - String
u.getBestScore() - Score
u.getLastScore() - Score

isOnline and getUserpage

For get the Userpage you must have a Player

Userpage.getUserpage(u)

and for check if the Player is Online you can make

isOnline.check(u)

Introduce Cats

Ripple implemented a Little function that randomly generate Cats for use that in Java i implemented that function

Cat c = new Cat()
getCode() - Long
getCat() - String
getRawJSON() - String
Refresh() - Refresh

The getCat() is important for that! Refresh() generates a new Cat

Introduce onlineUserChecker

If you want to check how many Users are Online

Cat c = new Cat()
getResult() - Long
getAPIStatus() - Long
getAPIMessage() - String
Refresh() - void

The getResult() are the Online Players! Refresh() refresh the Counter

Introduce Scores

In the User Method i introduced 2 Method that are

u.getBestScore() - Score
u.getLastScore() - Score

for get a Score from that u need to make it to an Score

Score s = u.getBestScore()

There are many Things that you can make with that Method

s.getID()
s.getBeatmap_md5()
s.getScore()
s.getMax_Combo()
s.getFull_Combo()
s.getMods()
s.getCount_300()
s.getCount_100()
s.getCount_50()
s.getCount_Geki()
s.getCount_Katu()
s.getCount_Miss()
s.getTime()
s.getPlay_Mode()
s.getaccuracy()
s.getPP()
s.getRank()
s.getcompleted()
s.getbeatmap_id()
s.getbeatmapset_id()
s.getsong_name()
s.getAR()
s.getOD()
s.getdifficulty()
s.getmap_max_combo()
s.gethit_length()
s.getranked()
s.getranked_status_frozen()
s.getlatest_update()

Get Server Informations or Change it

RippleAPI.setServer(default: "ripple.moe") - Without protocol - void
RippleAPI.isReachable() - Boolean
RippleAPI.getServer() - String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment