Class ProfilePhoto
- java.lang.Object
-
- com.rednit.tinder4j.api.entities.Entity
-
- com.rednit.tinder4j.api.entities.photo.GenericPhoto
-
- com.rednit.tinder4j.api.entities.photo.ProfilePhoto
-
public class ProfilePhoto extends GenericPhoto
Subtype ofGenericPhoto. This type of photo can be only present inside theSelfUser- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Kaktushose
- See Also:
GenericPhoto
-
-
Constructor Summary
Constructors Constructor Description ProfilePhoto(DataObject photo, TinderClient client)Constructs a new ProfilePhoto.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SizedImage>getAssets()Gets a possibly emptyListofSizedImages.StringgetCreatedAt()Gets the date the photo was created.Algorithm.HashgetDHash()StringgetFbId()Algorithm.HashgetPHash()intgetRank()floatgetScore()StringgetUpdatedAt()Gets the date the photo was updated.intgetWebpQf()intgetWinCount()booleanhasAssets()Whether this MatchPhoto has assets.-
Methods inherited from class com.rednit.tinder4j.api.entities.photo.GenericPhoto
getCropInfo, getExtension, getFileName, getProcessedFiles, getType, getUrl, toString
-
-
-
-
Constructor Detail
-
ProfilePhoto
public ProfilePhoto(DataObject photo, TinderClient client)
Constructs a new ProfilePhoto.- Parameters:
photo- theDataObjectto construct the ProfilePhoto fromclient- the correspondingTinderClientinstance
-
-
Method Detail
-
hasAssets
public boolean hasAssets()
Whether this MatchPhoto has assets.- Returns:
trueif this MatchPhoto has assets- See Also:
MatchPhoto.getAssets()
-
getAssets
public List<SizedImage> getAssets()
Gets a possibly emptyListofSizedImages. EachSizedImagehas the same resolution, but a different zoom level on the phase.- Returns:
- a possibly empty
ListofSizedImages
-
getCreatedAt
public String getCreatedAt()
Gets the date the photo was created.- Returns:
- the date the photo was created
-
getUpdatedAt
public String getUpdatedAt()
Gets the date the photo was updated.- Returns:
- the date the photo was updated
-
getFbId
public String getFbId()
-
getWebpQf
public int getWebpQf()
-
getRank
public int getRank()
-
getScore
public float getScore()
-
getWinCount
public int getWinCount()
-
getPHash
public Algorithm.Hash getPHash()
-
getDHash
public Algorithm.Hash getDHash()
-
-