Skip to content

marcandreher/RippleAPI-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The RippleAPI for Java Build Status Issues CodeFactor

To use it download the Release or use Maven

Maven

Add the JitPack Rep and the RippleAPI-Java dependency

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>
	<dependency>
	    <groupId>com.github.MarcPlaying</groupId>
	    <artifactId>RippleAPI-Java</artifactId>
	    <version>master-SNAPSHOT</version>
	</dependency>

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

onlineUserChecker hecker = new onlineUserChecker()
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