io.agora.rtm.PublisherInfo Maven / Gradle / Ivy
package io.agora.rtm;
import io.agora.common.internal.CalledByNative;
/**
* Topic publisher information
*/
public class PublisherInfo {
/**
* The publisher user ID
*/
private String publisherUserId = "";
/**
* The metadata of the publisher
*/
private String publisherMeta = "";
/**
* Creates a new instance of {@code PublisherInfo} with default parameters.
*/
public PublisherInfo() {}
@CalledByNative
public PublisherInfo(String publisherUserId, String publisherMeta) {
this.publisherUserId = publisherUserId;
this.publisherMeta = publisherMeta;
}
public String getPublisherUserId() {
return this.publisherUserId;
}
public String getPublisherMeta() {
return this.publisherMeta;
}
@Override
public String toString() {
return "PublisherInfo {publisherUserId: " + publisherUserId
+ ", publisherMeta: " + publisherMeta + "}";
}
}