示例#1
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="otherPlaylist">Playlist to copy</param>
 public Playlist(Playlist otherPlaylist)
 {
     if (otherPlaylist != null)
     {
         this._advertBucket   = otherPlaylist._advertBucket;
         this._channelBuckets = otherPlaylist._channelBuckets;
     }
 }
示例#2
0
 /// <summary>
 /// Instantiating a Playlist will also instantiate a HashSet to hold the underlying channel buckets
 /// and an AdvertBucket to hold the underlying advert assets
 /// </summary>
 public Playlist()
 {
     _channelBuckets = new HashSet <ChannelBucket>();
     _advertBucket   = new AdvertBucket();
 }