PeerCastStation.UI.HTTP.APIHost.APIContext.GetChannelInfo C# (CSharp) Method

GetChannelInfo() private method

private GetChannelInfo ( string channelId ) : Newtonsoft.Json.Linq.JObject
channelId string
return Newtonsoft.Json.Linq.JObject
      private JObject GetChannelInfo(string channelId)
      {
        var channel = GetChannel(channelId);
        var info = new JObject();
        info["name"]        = channel.ChannelInfo.Name;
        info["url"]         = channel.ChannelInfo.URL;
        info["genre"]       = channel.ChannelInfo.Genre;
        info["desc"]        = channel.ChannelInfo.Desc;
        info["comment"]     = channel.ChannelInfo.Comment;
        info["bitrate"]     = channel.ChannelInfo.Bitrate;
        info["contentType"] = channel.ChannelInfo.ContentType;
        info["mimeType"]    = channel.ChannelInfo.MIMEType;
        var track = new JObject();
        track["name"]    = channel.ChannelTrack.Name;
        track["genre"]   = channel.ChannelTrack.Genre;
        track["album"]   = channel.ChannelTrack.Album;
        track["creator"] = channel.ChannelTrack.Creator;
        track["url"]     = channel.ChannelTrack.URL;
        var announcings = GetChannelAnnouncingInfo(channelId);
        var res = new JObject();
        res["info"] = info;
        res["track"] = track;
        res["yellowPages"] = announcings;
        return res;
      }