﻿
using System.Xml.Serialization;
using Newtonsoft.Json;

namespace SafeChat
{
    [JsonObject]
    public abstract class Message
    {
        [XmlElement("type")]
        [JsonProperty(PropertyName = "type")]
        public string Type
        {
            get {
                return this.GetType().ToString();
            }
            set { }
        }
    }
}
