Package io.agora.rtm
Class MetadataItem
java.lang.Object
io.agora.rtm.MetadataItem
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofMetadataItemwith default parameters.MetadataItem(String key, String value) Creates a new instance ofMetadataItemwith key and value.MetadataItem(String key, String value, long revision) Creates a new instance ofMetadataItemwith key, value and revision.MetadataItem(String key, String value, String authorUserId, long revision, long updateTs) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()longlonggetValue()voidvoidsetRevision(long revision) voidtoString()
-
Constructor Details
-
MetadataItem
public MetadataItem()Creates a new instance ofMetadataItemwith default parameters. -
MetadataItem
Creates a new instance ofMetadataItemwith key and value.- Parameters:
key- The key of the metadata itemvalue- The value of the metadata item
-
MetadataItem
Creates a new instance ofMetadataItemwith key, value and revision.Note: If set revision not equals -1, rtm server will check the revision when modify MetadataItem.
- Parameters:
key- The key of the metadata itemvalue- The value of the metadata itemrevision- The revision of the metadata item
-
MetadataItem
-
-
Method Details