io.agora.rtm.Metadata Maven / Gradle / Ivy
package io.agora.rtm;
import io.agora.rtm.MetadataItem;
public abstract class Metadata {
/**
* Set the major revision of metadata.
*
* @param revision The major revision of the metadata.
*/
public abstract void setMajorRevision(long revision);
/**
* Get the major revision of metadata.
*
* @return the major revision of metadata.
*/
public abstract long getMajorRevision();
/**
* Add or revise a metadataItem to current metadata.
*
* @param item The metadataItem.
*/
public abstract void setMetadataItem(MetadataItem item);
/**
* Get the metadataItem array of current metadata.
*
* @return The metadataItem array.
*/
public abstract MetadataItem[] getMetadataItems();
/**
* Clear the metadataItem array & reset major revision
*/
public abstract void clearMetadata();
}