Giter VIP home page Giter VIP logo

rippleapi-java's Introduction

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

rippleapi-java's People

Contributors

marcandreher avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rippleapi-java's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.