﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fable.Entities.Events.Serialization;
using Newtonsoft.Json;

namespace Fable.Entities.Events
{
    [JsonConverter(typeof(EntityPropertyEventJsonConverter))]
    public class EntityPropertyEvent : IEntityVersionedEvent
    {
        public EntityPropertyEvent(string propertyName, object value, int version)
        {
            PropertyName = propertyName;
            Value = value;
            Version = version;
        }

        public object Value { get; }

        public string PropertyName { get; }

        public int Version { get; }
    }
}
