Ejemplo n.º 1
0
 public PexipGenerateSipUrlRequestBuilder(string entryId, bool regenerate, SipSourceType sourceType)
     : this()
 {
     this.EntryId    = entryId;
     this.Regenerate = regenerate;
     this.SourceType = sourceType;
 }
Ejemplo n.º 2
0
 public static PexipGenerateSipUrlRequestBuilder GenerateSipUrl(string entryId, bool regenerate = false, SipSourceType sourceType = (SipSourceType)(1))
 {
     return(new PexipGenerateSipUrlRequestBuilder(entryId, regenerate, sourceType));
 }
 public LiveStreamEntry(JToken node) : base(node)
 {
     if (node["streamRemoteId"] != null)
     {
         this._StreamRemoteId = node["streamRemoteId"].Value <string>();
     }
     if (node["streamRemoteBackupId"] != null)
     {
         this._StreamRemoteBackupId = node["streamRemoteBackupId"].Value <string>();
     }
     if (node["bitrates"] != null)
     {
         this._Bitrates = new List <LiveStreamBitrate>();
         foreach (var arrayNode in node["bitrates"].Children())
         {
             this._Bitrates.Add(ObjectFactory.Create <LiveStreamBitrate>(arrayNode));
         }
     }
     if (node["primaryBroadcastingUrl"] != null)
     {
         this._PrimaryBroadcastingUrl = node["primaryBroadcastingUrl"].Value <string>();
     }
     if (node["secondaryBroadcastingUrl"] != null)
     {
         this._SecondaryBroadcastingUrl = node["secondaryBroadcastingUrl"].Value <string>();
     }
     if (node["primarySecuredBroadcastingUrl"] != null)
     {
         this._PrimarySecuredBroadcastingUrl = node["primarySecuredBroadcastingUrl"].Value <string>();
     }
     if (node["secondarySecuredBroadcastingUrl"] != null)
     {
         this._SecondarySecuredBroadcastingUrl = node["secondarySecuredBroadcastingUrl"].Value <string>();
     }
     if (node["primaryRtspBroadcastingUrl"] != null)
     {
         this._PrimaryRtspBroadcastingUrl = node["primaryRtspBroadcastingUrl"].Value <string>();
     }
     if (node["secondaryRtspBroadcastingUrl"] != null)
     {
         this._SecondaryRtspBroadcastingUrl = node["secondaryRtspBroadcastingUrl"].Value <string>();
     }
     if (node["streamName"] != null)
     {
         this._StreamName = node["streamName"].Value <string>();
     }
     if (node["streamUrl"] != null)
     {
         this._StreamUrl = node["streamUrl"].Value <string>();
     }
     if (node["hlsStreamUrl"] != null)
     {
         this._HlsStreamUrl = node["hlsStreamUrl"].Value <string>();
     }
     if (node["urlManager"] != null)
     {
         this._UrlManager = node["urlManager"].Value <string>();
     }
     if (node["encodingIP1"] != null)
     {
         this._EncodingIP1 = node["encodingIP1"].Value <string>();
     }
     if (node["encodingIP2"] != null)
     {
         this._EncodingIP2 = node["encodingIP2"].Value <string>();
     }
     if (node["streamPassword"] != null)
     {
         this._StreamPassword = node["streamPassword"].Value <string>();
     }
     if (node["streamUsername"] != null)
     {
         this._StreamUsername = node["streamUsername"].Value <string>();
     }
     if (node["primaryServerNodeId"] != null)
     {
         this._PrimaryServerNodeId = ParseInt(node["primaryServerNodeId"].Value <string>());
     }
     if (node["sipToken"] != null)
     {
         this._SipToken = node["sipToken"].Value <string>();
     }
     if (node["sipSourceType"] != null)
     {
         this._SipSourceType = (SipSourceType)ParseEnum(typeof(SipSourceType), node["sipSourceType"].Value <string>());
     }
 }