PeerCastStation.WPF.ChannelLists.Dialogs.BroadcastViewModel.CreateChannelInfo C# (CSharp) Méthode

CreateChannelInfo() private méthode

private CreateChannelInfo ( BroadcastViewModel viewModel ) : ChannelInfo
viewModel BroadcastViewModel
Résultat PeerCastStation.Core.ChannelInfo
    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);
    }