Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/com/pokegoapi/api/pokemon/Pokemon.java
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,16 @@ public String getEggIncubatorId() {
public long getCreationTimeMs() {
return proto.getCreationTimeMs();
}

/**
* Checks whether the Pok�mon is set as favorite.
* @return true if the Pok�mon is set as favorite
*/
public boolean isFavorite(){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a space between ){

return proto.getFavorite() > 0;
}

@Deprecated
public boolean getFavorite() {
return proto.getFavorite() > 0;
}
Expand Down