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

GetNotificationMessages() private method

private GetNotificationMessages ( ) : Newtonsoft.Json.Linq.JArray
return Newtonsoft.Json.Linq.JArray
      public JArray GetNotificationMessages()
      {
        return new JArray(
          owner.GetNotificationMessages().Select(msg => {
            var obj = new JObject();
            if (msg is NewVersionNotificationMessage) {
              obj["class"] = "newversion";
            }
            else {
              obj["class"] = msg.GetType().Name.ToLowerInvariant();
            }
            obj["type"]    = msg.Type.ToString().ToLowerInvariant();
            obj["title"]   = msg.Title;
            obj["message"] = msg.Message;
            return obj;
          })
        );
      }