Inheritance: ViewModelBase
Exemple #1
0
        private ChannelTrack CreateChannelTrack(BroadcastViewModel viewModel)
        {
            var collection = new AtomCollection();

            collection.SetChanTrackTitle(viewModel.TrackTitle);
            collection.SetChanTrackGenre(viewModel.TrackGenre);
            collection.SetChanTrackAlbum(viewModel.TrackAlbum);
            collection.SetChanTrackCreator(viewModel.TrackArtist);
            collection.SetChanTrackURL(viewModel.TrackUrl);
            return(new ChannelTrack(collection));
        }
Exemple #2
0
        private ChannelInfo CreateChannelInfo(BroadcastViewModel viewModel)
        {
            var info = new AtomCollection();

            if (viewModel.bitrate.HasValue)
            {
                info.SetChanInfoBitrate(viewModel.bitrate.Value);
            }
            info.SetChanInfoName(viewModel.channelName);
            info.SetChanInfoGenre(viewModel.genre);
            info.SetChanInfoDesc(viewModel.description);
            info.SetChanInfoComment(viewModel.comment);
            info.SetChanInfoURL(viewModel.contactUrl);
            return(new ChannelInfo(info));
        }
 private ChannelTrack CreateChannelTrack(BroadcastViewModel viewModel)
 {
     var collection = new AtomCollection();
       collection.SetChanTrackTitle(viewModel.TrackTitle);
       collection.SetChanTrackGenre(viewModel.TrackGenre);
       collection.SetChanTrackAlbum(viewModel.TrackAlbum);
       collection.SetChanTrackCreator(viewModel.TrackArtist);
       collection.SetChanTrackURL(viewModel.TrackUrl);
       return new ChannelTrack(collection);
 }
 private ChannelInfo CreateChannelInfo(BroadcastViewModel viewModel)
 {
     var info = new AtomCollection();
       if (viewModel.bitrate.HasValue) info.SetChanInfoBitrate(viewModel.bitrate.Value);
       info.SetChanInfoName(viewModel.channelName);
       info.SetChanInfoGenre(viewModel.genre);
       info.SetChanInfoDesc(viewModel.description);
       info.SetChanInfoComment(viewModel.comment);
       info.SetChanInfoURL(viewModel.contactUrl);
       return new ChannelInfo(info);
 }