Skip to content

Commit 329c667

Browse files
committed
Rename UcpToptenEntity -> UcpToptenEntry
1 parent d3496de commit 329c667

4 files changed

Lines changed: 21 additions & 20 deletions

File tree

library/src/main/java/com/proxerme/library/connection/ucp/entitiy/UcpToptenEntity.java renamed to library/src/main/java/com/proxerme/library/connection/ucp/entitiy/UcpToptenEntry.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
*
1414
* @author Ruben Gees
1515
*/
16-
public class UcpToptenEntity implements Parcelable {
16+
public class UcpToptenEntry implements Parcelable {
1717

18-
public static final Parcelable.Creator<UcpToptenEntity> CREATOR = new Parcelable.Creator<UcpToptenEntity>() {
18+
public static final Parcelable.Creator<UcpToptenEntry> CREATOR = new Parcelable.Creator<UcpToptenEntry>() {
1919
@Override
20-
public UcpToptenEntity createFromParcel(Parcel source) {
21-
return new UcpToptenEntity(source);
20+
public UcpToptenEntry createFromParcel(Parcel source) {
21+
return new UcpToptenEntry(source);
2222
}
2323

2424
@Override
25-
public UcpToptenEntity[] newArray(int size) {
26-
return new UcpToptenEntity[size];
25+
public UcpToptenEntry[] newArray(int size) {
26+
return new UcpToptenEntry[size];
2727
}
2828
};
2929

@@ -47,17 +47,17 @@ public UcpToptenEntity[] newArray(int size) {
4747
* @param medium The medium (Animeseries, ...)
4848
* @param category The category.
4949
*/
50-
public UcpToptenEntity(@NonNull String id, @NonNull String entryId, @NonNull String name,
51-
@MediumParameter.Medium @NonNull String medium,
52-
@CategoryParameter.Category @NonNull String category) {
50+
public UcpToptenEntry(@NonNull String id, @NonNull String entryId, @NonNull String name,
51+
@MediumParameter.Medium @NonNull String medium,
52+
@CategoryParameter.Category @NonNull String category) {
5353
this.id = id;
5454
this.entryId = entryId;
5555
this.name = name;
5656
this.medium = medium;
5757
this.category = category;
5858
}
5959

60-
protected UcpToptenEntity(Parcel in) {
60+
protected UcpToptenEntry(Parcel in) {
6161
this.id = in.readString();
6262
this.entryId = in.readString();
6363
this.name = in.readString();
@@ -123,7 +123,7 @@ public boolean equals(Object o) {
123123
if (this == o) return true;
124124
if (o == null || getClass() != o.getClass()) return false;
125125

126-
UcpToptenEntity that = (UcpToptenEntity) o;
126+
UcpToptenEntry that = (UcpToptenEntry) o;
127127

128128
if (!id.equals(that.id)) return false;
129129
if (!entryId.equals(that.entryId)) return false;

library/src/main/java/com/proxerme/library/connection/ucp/request/DeleteFavoriteRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.proxerme.library.connection.EmptyResult;
77
import com.proxerme.library.connection.ProxerResult;
88
import com.proxerme.library.connection.ucp.UcpRequest;
9+
import com.proxerme.library.connection.ucp.entitiy.UcpToptenEntry;
910
import com.squareup.moshi.Moshi;
1011

1112
import java.io.IOException;
@@ -15,7 +16,7 @@
1516
import okhttp3.ResponseBody;
1617

1718
/**
18-
* Deletes the {@link com.proxerme.library.connection.ucp.entitiy.UcpToptenEntity} (specified
19+
* Deletes the {@link UcpToptenEntry} (specified
1920
* through the id in the constructor) from the list of the user. The user needs to be logged in for
2021
* this API.
2122
*

library/src/main/java/com/proxerme/library/connection/ucp/request/UcpToptenRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import com.proxerme.library.connection.ProxerResult;
66
import com.proxerme.library.connection.ucp.UcpRequest;
7-
import com.proxerme.library.connection.ucp.entitiy.UcpToptenEntity;
7+
import com.proxerme.library.connection.ucp.entitiy.UcpToptenEntry;
88
import com.proxerme.library.connection.ucp.result.UcpToptenResult;
99
import com.squareup.moshi.Moshi;
1010

@@ -18,13 +18,13 @@
1818
*
1919
* @author Ruben Gees
2020
*/
21-
public class UcpToptenRequest extends UcpRequest<UcpToptenEntity[]> {
21+
public class UcpToptenRequest extends UcpRequest<UcpToptenEntry[]> {
2222

2323
private static final String ENDPOINT = "topten";
2424

2525
@Override
26-
protected ProxerResult<UcpToptenEntity[]> parse(@NonNull Moshi moshi,
27-
@NonNull ResponseBody body) throws IOException {
26+
protected ProxerResult<UcpToptenEntry[]> parse(@NonNull Moshi moshi,
27+
@NonNull ResponseBody body) throws IOException {
2828
return moshi.adapter(UcpToptenResult.class).fromJson(body.source());
2929
}
3030

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package com.proxerme.library.connection.ucp.result;
22

33
import com.proxerme.library.connection.ProxerResult;
4-
import com.proxerme.library.connection.ucp.entitiy.UcpToptenEntity;
4+
import com.proxerme.library.connection.ucp.entitiy.UcpToptenEntry;
55
import com.squareup.moshi.Json;
66

77
/**
88
* {@inheritDoc}
99
*/
10-
public class UcpToptenResult extends ProxerResult<UcpToptenEntity[]> {
10+
public class UcpToptenResult extends ProxerResult<UcpToptenEntry[]> {
1111

1212
@Json(name = "data")
13-
private UcpToptenEntity[] data;
13+
private UcpToptenEntry[] data;
1414

1515
protected UcpToptenResult() {
1616

1717
}
1818

1919
@Override
20-
public UcpToptenEntity[] getData() {
20+
public UcpToptenEntry[] getData() {
2121
return data;
2222
}
2323
}

0 commit comments

Comments
 (0)