|
| 1 | +# The RippleAPI for Java |
| 2 | +To use it download the Release. |
| 3 | + |
| 4 | +## Introduce Users |
| 5 | +You must create a User First You have 2 diffrent Types for that: |
| 6 | +```java |
| 7 | +UserType.ID |
| 8 | +UserType.NAME |
| 9 | +``` |
| 10 | + |
| 11 | +```java |
| 12 | +User u = new User(UserType.NAME, "MarcPlaying"); |
| 13 | +``` |
| 14 | +You can get Diffrent Things from a User |
| 15 | +```java |
| 16 | +u.getCurrentAPICode() - Long |
| 17 | +u.getCountry() - String |
| 18 | +u.getID() - Long |
| 19 | +u.getLatest_Activity() - String |
| 20 | +u.getPrivileges() - Long |
| 21 | +u.getRegistered_On() - String |
| 22 | +u.getUserName() - String |
| 23 | +u.getUserName_aka() - String |
| 24 | +u.getRawJSON() - String |
| 25 | +u.getBestScore() - Score |
| 26 | +u.getLastScore() - Score |
| 27 | +``` |
| 28 | + |
| 29 | +## isOnline and getUserpage |
| 30 | +For get the Userpage you must have a Player |
| 31 | +```java |
| 32 | +Userpage.getUserpage(u) |
| 33 | +``` |
| 34 | +and for check if the Player is Online you can make |
| 35 | +```java |
| 36 | +isOnline.check(u) |
| 37 | +``` |
| 38 | +## Introduce Cats |
| 39 | +Ripple implemented a Little function that randomly generate Cats for use that in Java i implemented that function |
| 40 | +```java |
| 41 | +Cat c = new Cat() |
| 42 | +``` |
| 43 | +```java |
| 44 | +getCode() - Long |
| 45 | +getCat() - String |
| 46 | +getRawJSON() - String |
| 47 | +Refresh() - Refresh |
| 48 | +``` |
| 49 | +The getCat() is important for that! Refresh() generates a new Cat |
| 50 | + |
| 51 | +## Introduce onlineUserChecker |
| 52 | +If you want to check how many Users are Online |
| 53 | +```java |
| 54 | +Cat c = new Cat() |
| 55 | +``` |
| 56 | +```java |
| 57 | +getResult() - Long |
| 58 | +getAPIStatus() - Long |
| 59 | +getAPIMessage() - String |
| 60 | +Refresh() - void |
| 61 | +``` |
| 62 | +The getResult() are the Online Players! Refresh() refresh the Counter |
| 63 | + |
| 64 | +## Introduce Scores |
| 65 | +In the [User](https://gist.github.com/MarcPlaying/f9d5962ba28da78d56a3c5eee4da79bd#introduce-users) Method i introduced 2 Method that are |
| 66 | +```java |
| 67 | +u.getBestScore() - Score |
| 68 | +u.getLastScore() - Score |
| 69 | +``` |
| 70 | +for get a Score from that u need to make it to an Score |
| 71 | +```java |
| 72 | +Score s = u.getBestScore() |
| 73 | +``` |
| 74 | +There are many Things that you can make with that Method |
| 75 | +```java |
| 76 | +s.getID() |
| 77 | +s.getBeatmap_md5() |
| 78 | +s.getScore() |
| 79 | +s.getMax_Combo() |
| 80 | +s.getFull_Combo() |
| 81 | +s.getMods() |
| 82 | +s.getCount_300() |
| 83 | +s.getCount_100() |
| 84 | +s.getCount_50() |
| 85 | +s.getCount_Geki() |
| 86 | +s.getCount_Katu() |
| 87 | +s.getCount_Miss() |
| 88 | +s.getTime() |
| 89 | +s.getPlay_Mode() |
| 90 | +s.getaccuracy() |
| 91 | +s.getPP() |
| 92 | +s.getRank() |
| 93 | +s.getcompleted() |
| 94 | +s.getbeatmap_id() |
| 95 | +s.getbeatmapset_id() |
| 96 | +s.getsong_name() |
| 97 | +s.getAR() |
| 98 | +s.getOD() |
| 99 | +s.getdifficulty() |
| 100 | +s.getmap_max_combo() |
| 101 | +s.gethit_length() |
| 102 | +s.getranked() |
| 103 | +s.getranked_status_frozen() |
| 104 | +s.getlatest_update() |
| 105 | +``` |
| 106 | +## Get Server Informations or Change it |
| 107 | +```java |
| 108 | +RippleAPI.setServer(default: "ripple.moe") - Without protocol - void |
| 109 | +RippleAPI.isReachable() - Boolean |
| 110 | +RippleAPI.getServer() - String |
| 111 | +``` |
0 commit comments