Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtm.MetadataItem Class Reference

## Public Member Functions
| MetadataItem ()
| MetadataItem (String key, String value)
| MetadataItem (String key, String value, long revision)
| MetadataItem (String key, String value, String authorUserId, long revision, long updateTs)
void | setKey (String key)
void | setValue (String value)
void | setRevision (long revision)
String | getKey ()
String | getValue ()
String | getAuthorUserId ()
long | getRevision ()
long | getUpdateTs ()
String | toString ()

## Constructor & Destructor Documentation

## ◆ MetadataItem() [1/3]

io.agora.rtm.MetadataItem.MetadataItem | ( |  | ) |

Creates a new instance of

MetadataItem

with default parameters.

## ◆ MetadataItem() [2/3]

io.agora.rtm.MetadataItem.MetadataItem | ( | String | key,
|  | String | value
| ) |  |

Creates a new instance of

MetadataItem

with key and value.

Parameters

  key | The key of the metadata item
  value | The value of the metadata item

## ◆ MetadataItem() [3/3]

io.agora.rtm.MetadataItem.MetadataItem | ( | String | key,
|  | String | value,
|  | long | revision
| ) |  |

Creates a new instance of

MetadataItem

with 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 item
  value | The value of the metadata item
  revision | The revision of the metadata item

io.agora.rtm.MetadataItem.MetadataItem
MetadataItem()
Definition: MetadataItem.java:34