/// <summary> /// Add a StreamHost /// </summary> /// <returns></returns> public StreamHost AddStreamHost() { StreamHost sh = new StreamHost(); AddChild(sh); return(sh); }
/// <summary> /// Add a StreamHost /// </summary> /// <param name="jid"></param> /// <param name="host"></param> /// <param name="port"></param> /// <param name="zeroconf"></param> /// <returns></returns> public StreamHost AddStreamHost(Jid jid, string host, int port, string zeroconf) { StreamHost sh = new StreamHost(jid, host, port, zeroconf); AddChild(sh); return(sh); }
/// <summary> /// Add a StreamHost /// </summary> /// <param name="jid"></param> /// <param name="host"></param> /// <returns></returns> public StreamHost AddStreamHost(Jid jid, string host) { StreamHost sh = new StreamHost(jid, host); AddChild(sh); return(sh); }
/// <summary> /// Get the list of streamhosts /// </summary> /// <returns></returns> public StreamHost[] GetStreamHosts() { ElementList nl = SelectElements(typeof(StreamHost)); StreamHost[] hosts = new StreamHost[nl.Count]; int i = 0; foreach (Element e in nl) { hosts[i] = (StreamHost)e; i++; } return(hosts); }
/// <summary> /// Add a StreamHost /// </summary> /// <param name="sh"></param> /// <returns></returns> public StreamHost AddStreamHost(StreamHost sh) { AddChild(sh); return(sh); }