Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 030f4db

Browse files
author
doomsdayrs
committed
Removed obsolete jars
1 parent 6abf385 commit 030f4db

File tree

8 files changed

+68
-40
lines changed

8 files changed

+68
-40
lines changed

JARs/Jikan4java-0.9.A.jar

-158 KB
Binary file not shown.

JARs/Jikan4java-0.9.B.jar

-170 KB
Binary file not shown.

JARs/Jikan4java-0.9.C.jar

-172 KB
Binary file not shown.

JARs/Jikan4java-0.9.D.jar

-177 KB
Binary file not shown.

JARs/Jikan4java-0.9.E.jar

-183 KB
Binary file not shown.

JARs/Jikan4java-0.9.F.jar

-183 KB
Binary file not shown.

JARs/Jikan4java-0.9.G.jar

-183 KB
Binary file not shown.

README.md

Lines changed: 68 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
Java api wrapper for Jikan api
33
Website for Jikan: https://jikan.moe/
44

5-
0.9.E is the most updated version. With most functionality. 1.0 Complete documentation, and excessive comments.
6-
Completed v3.2 update
7-
8-
To use, just download the latest jar from the Jar folder and add it to your project. I ain't got the time or inteligence to figure out how to make a repo
9-
5+
To add to your project, head over to https://jitpack.io/#Doomsdayrs/Jikan4java and select the method you need to use!
106
## Capabilities
117
- Basic
128
- [X] Search and return Anime
@@ -36,41 +32,73 @@ import org.json.simple.parser.ParseException;
3632
import java.io.IOException;
3733

3834
public class ExampleClass {
39-
public static void main(String[] args) throws IOException, ParseException {
40-
// Gets first search result
41-
System.out.println(new MangaConnection().search("Attack on titan").toString());
42-
System.out.println(new AnimeConnection().searchSimple("Attack on titan").getRelated().get(0).get(Relates.SIDE_STORIES));
43-
44-
System.out.println(new AnimeConnection().searchSimple("Attack on titan").toString());
45-
System.out.println(new CharacterConnection().search("Caster").toString());
46-
System.out.println(new PersonConnection().search("Hajime Isayama").toString());
47-
48-
// Returns search results
49-
System.out.println(new AnimeConnection().searchPage("Attack on titan",1).toString());
50-
System.out.println(new MangaConnection().searchPage("Tensei",1));
51-
System.out.println(new CharacterConnection().searchPage("caster",1));
52-
System.out.println(new PersonConnection().searchPage("Hajime Isayama", 1));
53-
54-
55-
System.out.println(new GenreConnection().searchAnimeGenre(1,0).toString());
56-
System.out.println(new GenreConnection().searchMangaGenre(1,0).toString());
57-
58-
System.out.println(new SeasonConnection().seasonSearch(2016,"winter").toString());
59-
System.out.println(new SeasonConnection().seasonArchiveSearch().toString());
60-
61-
System.out.println(new ScheduleConnection().scheduleSearch().toString());
62-
System.out.println(new ScheduleConnection().scheduleSearch("monday").toString()); //`monday` can be replaced with any other day or unknown / other
63-
64-
System.out.println(new TopConnection().topSearch("anime",0,"").toString());
65-
System.out.println(new TopConnection().topSearch("manga",0,"").toString());
66-
System.out.println(new TopConnection().topSearch("people",0,"").toString());
67-
System.out.println(new TopConnection().topSearch("characters",0,"").toString());
68-
System.out.println(new UserConnection().searchUser("Aerchan").toString());
69-
70-
71-
System.out.println(new MagazineConnection().search(11,1));
72-
System.out.println(new ProducerConnection().search(135,1));
73-
System.out.println(new MetaConnection().getStatus().toString());
35+
public static void main(String[] args) {
36+
AnimeConnection animeConnection = new AnimeConnection();
37+
CharacterConnection characterConnection = new CharacterConnection();
38+
ClubConnection clubConnection = new ClubConnection();
39+
GenreConnection genreConnection = new GenreConnection();
40+
MagazineConnection magazineConnection = new MagazineConnection();
41+
MangaConnection mangaConnection = new MangaConnection();
42+
MetaConnection metaConnection = new MetaConnection();
43+
PersonConnection personConnection = new PersonConnection();
44+
ProducerConnection producerConnection = new ProducerConnection();
45+
ScheduleConnection scheduleConnection = new ScheduleConnection();
46+
SeasonConnection seasonConnection = new SeasonConnection();
47+
TopConnection topConnection = new TopConnection();
48+
UserConnection userConnection = new UserConnection();
49+
50+
int a = 0;
51+
52+
CompletableFuture<Anime> animeCompletableFuture = animeConnection.searchAnimeById(1);
53+
if (animeCompletableFuture != null) {
54+
while (!animeCompletableFuture.isDone()) a++;
55+
System.out.println(animeCompletableFuture.get());
56+
}
57+
58+
TimeUnit.SECONDS.sleep(1);
59+
CompletableFuture<CharacterPage> characterCompletableFuture = characterConnection.searchPage("re", 1);
60+
if (characterCompletableFuture != null) {
61+
while (!characterCompletableFuture.isDone()) a++;
62+
System.out.println(characterCompletableFuture.get());
63+
}
64+
TimeUnit.SECONDS.sleep(1);
65+
CompletableFuture<Club> clubCompletableFuture = clubConnection.search(12);
66+
if (clubCompletableFuture != null) {
67+
while (!clubCompletableFuture.isDone()) a++;
68+
System.out.println(clubCompletableFuture.get());
69+
}
70+
TimeUnit.SECONDS.sleep(1);
71+
CompletableFuture<GenreSearchAnimePage> searchAnimeGenre = genreConnection.searchAnimeGenre(AnimeGenres.ACTION);
72+
if (searchAnimeGenre != null) {
73+
while (!searchAnimeGenre.isDone()) a++;
74+
System.out.println(searchAnimeGenre.get());
75+
}
76+
TimeUnit.SECONDS.sleep(1);
77+
CompletableFuture<GenreSearchMangaPage> searchMangaGenre = genreConnection.searchMangaGenre(MangaGenres.ACTION);
78+
if (searchMangaGenre != null) {
79+
while (!searchMangaGenre.isDone()) a++;
80+
System.out.println(searchMangaGenre.get());
81+
}
82+
TimeUnit.SECONDS.sleep(1);
83+
CompletableFuture<MagazinePage> magazinePageCompletableFuture = magazineConnection.searchPage(1, 1);
84+
if (magazinePageCompletableFuture != null) {
85+
while (!magazinePageCompletableFuture.isDone()) a++;
86+
System.out.println(magazinePageCompletableFuture.get());
87+
}
88+
TimeUnit.SECONDS.sleep(1);
89+
CompletableFuture<Manga> mangaCompletableFuture = mangaConnection.search("Ajin");
90+
if (mangaCompletableFuture != null) {
91+
while (!mangaCompletableFuture.isDone()) a++;
92+
System.out.println(mangaCompletableFuture.get());
93+
}
94+
TimeUnit.SECONDS.sleep(1);
95+
CompletableFuture<Status> statusCompletableFuture = metaConnection.getStatus();
96+
if (statusCompletableFuture != null) {
97+
while (!statusCompletableFuture.isDone()) a++;
98+
System.out.println(statusCompletableFuture.get());
99+
}
100+
101+
// Well, after this point you should get an idea, use code completion or decompile the classes to see what are methods available;
74102

75103
}
76104
}

0 commit comments

Comments
 (0)