Class Attachment.ContactCardAttachment
- java.lang.Object
-
- com.rednit.tinder4j.api.entities.message.Attachment
-
- com.rednit.tinder4j.api.entities.message.Attachment.ContactCardAttachment
-
- Enclosing class:
- Attachment
public static class Attachment.ContactCardAttachment extends Attachment
A contact card attachment.- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Kaktushose
- See Also:
Attachment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.rednit.tinder4j.api.entities.message.Attachment
Attachment.AttachmentType, Attachment.ContactCardAttachment, Attachment.GIFAttachment, Attachment.SongAttachment
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContactCardAttachment(DataObject attachment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContactId()
Gets the contact id, e.g.String
getContactType()
Gets the type of contact card, e.g.String
getUrl()
If present, gets the url to the social media profile.-
Methods inherited from class com.rednit.tinder4j.api.entities.message.Attachment
getType
-
-
-
-
Constructor Detail
-
ContactCardAttachment
protected ContactCardAttachment(DataObject attachment)
-
-
Method Detail
-
getContactId
public String getContactId()
Gets the contact id, e.g. the phone number, Instagram name, etc.- Returns:
- the contact id
-
getContactType
public String getContactType()
Gets the type of contact card, e.g. phone, Instagram, Facebook, etc.- Returns:
- the type of contact card
-
getUrl
public String getUrl()
If present, gets the url to the social media profile.- Returns:
- the url to the social media profile
-
-