public class OGMetaData
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static OGMetaData |
buildFromSerializedData(byte[] data)
Builds
OGMetaData instance from serialized data generated by serialize(). |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A one to two sentence description of the object.
|
OGImage |
getOGImage()
An
OGImage object that contains information about the image that this Open Graph
points to. |
java.lang.String |
getTitle()
The title of the object as it should appear within the graph.
|
java.lang.String |
getUrl()
The canonical URL of the object that can be used as its permanent ID in the graph.
|
int |
hashCode() |
byte[] |
serialize()
Serializes the
OGMetaData instance. |
java.lang.String |
toString() |
public java.lang.String getTitle()
public java.lang.String getUrl()
public java.lang.String getDescription()
public OGImage getOGImage()
OGImage object that contains information about the image that this Open Graph
points to.OGImage instance, might be null.OGImagepublic static OGMetaData buildFromSerializedData(byte[] data)
OGMetaData instance from serialized data generated by serialize().data - Serialized OGMetaData data.OGMetaData instance.public byte[] serialize()
OGMetaData instance.
This byte array can be stored in the database in your application.
The instance can be restored by buildFromSerializedData(byte[]).OGMetaData data.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.