franz/franz/silver_messages/message.cs

17 lines
386 B
C#

using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace silver_messages
{
public abstract class message
{
public string type { get { return this.GetType().ToString(); } }
public abstract string topic { get; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}