io.agora.rtm.SnapshotInfo Maven / Gradle / Ivy
package io.agora.rtm;
import io.agora.common.internal.CalledByNative;
import io.agora.rtm.UserState;
import java.util.ArrayList;
import java.util.Arrays;
/**
* snapshot information
*/
public class SnapshotInfo {
/**
* The user state in this snapshot event
*/
private ArrayList userStateList;
/**
* Constructor for {@code SnapshotInfo} with default parameters.
*/
public SnapshotInfo() {
this.userStateList = null;
}
@CalledByNative
public SnapshotInfo(UserState[] userStateList) {
this.userStateList = new ArrayList(Arrays.asList(userStateList));
}
public ArrayList getUserStateList() {
return this.userStateList;
}
@Override
public String toString() {
return "SnapshotInfo {userStateList: " + userStateList + "}";
}
}