This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I swear today i will finish this shiz
- Loading branch information
doomsdayrs
committed
May 25, 2019
1 parent
86cc8bb
commit 1613977
Showing
4 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...va/com/github/Doomsdayrs/Jikan4java/enums/user/userListings/orderBy/AnimeListOrderBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.github.Doomsdayrs.Jikan4java.enums.user.userListings.orderBy; | ||
|
||
/** | ||
* This file is part of Jikan4java. | ||
* Jikan4java is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* Foobar is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Jikan4java. If not, see https://www.gnu.org/licenses/. | ||
* ==================================================================== | ||
* Jikan4java | ||
* 25 / 05 / 2019 | ||
* | ||
* @author github.com/doomsdayrs | ||
*/ | ||
public enum AnimeListOrderBy implements ListOrderBy { | ||
TITLE("title"), | ||
START_DATE("start_date"), | ||
END_DATE("end_date"), | ||
SCORE("score"), | ||
TYPE("type"), | ||
MEMBERS("members"), | ||
ID("id"), | ||
EPISODES("episodes"), | ||
RATING("rating"); | ||
|
||
private final String type; | ||
|
||
AnimeListOrderBy(String type) { | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return type; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...in/java/com/github/Doomsdayrs/Jikan4java/enums/user/userListings/orderBy/ListOrderBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.Doomsdayrs.Jikan4java.enums.user.userListings.orderBy; | ||
|
||
/** | ||
* This file is part of Jikan4java. | ||
* Jikan4java is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* Foobar is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Jikan4java. If not, see https://www.gnu.org/licenses/. | ||
* ==================================================================== | ||
* Jikan4java | ||
* 25 / 05 / 2019 | ||
* | ||
* @author github.com/doomsdayrs | ||
*/ | ||
public interface ListOrderBy { | ||
} |
42 changes: 42 additions & 0 deletions
42
...va/com/github/Doomsdayrs/Jikan4java/enums/user/userListings/orderBy/MangaListOrderBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.github.Doomsdayrs.Jikan4java.enums.user.userListings.orderBy; | ||
|
||
/** | ||
* This file is part of Jikan4java. | ||
* Jikan4java is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* Foobar is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Jikan4java. If not, see https://www.gnu.org/licenses/. | ||
* ==================================================================== | ||
* Jikan4java | ||
* 25 / 05 / 2019 | ||
* | ||
* @author github.com/doomsdayrs | ||
*/ | ||
public enum MangaListOrderBy { | ||
TITLE("title"), | ||
START_DATE("start_date"), | ||
END_DATE("end_date"), | ||
SCORE("score"), | ||
TYPE("type"), | ||
MEMBERS("members"), | ||
ID("id"), | ||
CHAPTERS("chapters"), | ||
VOLUMES("volumes"); | ||
|
||
private final String type; | ||
|
||
MangaListOrderBy(String type) { | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return type; | ||
} | ||
} |