Exemple #1
0
        /// <summary>
        /// Create a new <Stream/> element and append it as a child of this element.
        /// </summary>
        /// <param name="name"> Friendly name given to the Stream </param>
        /// <param name="connectorName"> Unique name for Stream Connector </param>
        /// <param name="url"> URL of the remote service where the Stream is routed </param>
        /// <param name="track"> Track to be streamed to remote service </param>
        /// <param name="statusCallback"> Status Callback URL </param>
        /// <param name="statusCallbackMethod"> Status Callback URL method </param>
        public Connect Stream(string name            = null,
                              string connectorName   = null,
                              string url             = null,
                              Stream.TrackEnum track = null,
                              string statusCallback  = null,
                              Stream.StatusCallbackMethodEnum statusCallbackMethod = null)
        {
            var newChild = new Stream(name, connectorName, url, track, statusCallback, statusCallbackMethod);

            this.Append(newChild);
            return(this);
        }
Exemple #2
0
 /// <summary>
 /// Create a new Stream
 /// </summary>
 /// <param name="name"> Friendly name given to the Stream </param>
 /// <param name="connectorName"> Unique name for Stream Connector </param>
 /// <param name="url"> URL of the remote service where the Stream is routed </param>
 /// <param name="track"> Track to be streamed to remote service </param>
 /// <param name="statusCallback"> Status Callback URL </param>
 /// <param name="statusCallbackMethod"> Status Callback URL method </param>
 public Stream(string name            = null,
               string connectorName   = null,
               string url             = null,
               Stream.TrackEnum track = null,
               string statusCallback  = null,
               Stream.StatusCallbackMethodEnum statusCallbackMethod = null) : base("Stream")
 {
     this.Name                 = name;
     this.ConnectorName        = connectorName;
     this.Url                  = url;
     this.Track                = track;
     this.StatusCallback       = statusCallback;
     this.StatusCallbackMethod = statusCallbackMethod;
 }