示例#1
0
 public Connection(string connectionId, long createdAt, OpenViduRole role, string token, string location,
                   string platform, string serverData, string clientData, Dictionary <string, Publisher> publishers,
                   List <string> subscribers)
 {
     this.ConnectionId = connectionId;
     this.CreatedAt    = createdAt;
     this.Role         = role;
     this.Token        = token;
     this.Location     = location;
     this.Platform     = platform;
     this.ServerData   = serverData;
     this.ClientData   = clientData;
     this.Publishers   = new List <Publisher>(publishers.Values);
     this.Subscribers  = subscribers;
 }
示例#2
0
 /**
  * Call this method to set the role assigned to this token
  */
 public TokenOptionsBuilder role(OpenViduRole role)
 {
     this._role = role;
     return(this);
 }
示例#3
0
 public TokenOptions(string data, OpenViduRole role, KurentoOptions kurentoOptions)
 {
     this._data           = data;
     this._role           = role;
     this._kurentoOptions = kurentoOptions;
 }