io.agora.rtm.StateItem Maven / Gradle / Ivy
package io.agora.rtm;
import io.agora.common.internal.CalledByNative;
/**
* User state property.
*/
public class StateItem {
/**
* The key of the state item.
*/
private String key = "";
/**
* The value of the state item.
*/
private String value = "";
/**
* Creates a new instance of {@code StateItem} with default parameters.
*/
public StateItem() {}
public void setKey(String key) {
this.key = key;
}
public void setValue(String value) {
this.value = value;
}
@CalledByNative
public String getKey() {
return this.key;
}
@CalledByNative
public String getValue() {
return this.value;
}
@CalledByNative
public StateItem(String key, String value) {
this.key = key;
this.value = value;
}
@Override
public String toString() {
return "StateItem {key: " + key + ", value: " + value + "}";
}
}