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 emptyList
ofSizedImages
.String
getCreatedAt()
Gets the date the photo was created.Algorithm.Hash
getDHash()
String
getFbId()
Algorithm.Hash
getPHash()
int
getRank()
float
getScore()
String
getUpdatedAt()
Gets the date the photo was updated.int
getWebpQf()
int
getWinCount()
boolean
hasAssets()
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
- theDataObject
to construct the ProfilePhoto fromclient
- the correspondingTinderClient
instance
-
-
Method Detail
-
hasAssets
public boolean hasAssets()
Whether this MatchPhoto has assets.- Returns:
true
if this MatchPhoto has assets- See Also:
MatchPhoto.getAssets()
-
getAssets
public List<SizedImage> getAssets()
Gets a possibly emptyList
ofSizedImages
. EachSizedImage
has the same resolution, but a different zoom level on the phase.- Returns:
- a possibly empty
List
ofSizedImages
-
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()
-
-