All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.agora.rtm.TopicOptions Maven / Gradle / Ivy

package io.agora.rtm;

import io.agora.common.internal.CalledByNative;
import java.util.ArrayList;
import java.util.Arrays;

/**
 * Topic options.
 */
public class TopicOptions {
  /**
   * The list of users to subscribe/unsubscribe.
   */
  private ArrayList users;

  /**
   * Constructor for {@code TopicOptions} with default parameters.
   */
  public TopicOptions() {
    this.users = new ArrayList();
  }

  public void setUsers(ArrayList users) {
    this.users = users;
  }

  @CalledByNative
  public void setUsers(String[] users) {
    this.users = new ArrayList(Arrays.asList(users));
  }

  @CalledByNative
  public ArrayList getUsers() {
    return this.users;
  }

  @Override
  public String toString() {
    return "TopicOptions {users: " + users + "}";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy