using CSharpFunctionalExtensions;

using Monitoring.Core.Domain.EventManagement;

namespace GeoRitmMover.Mover.Data;
public class EventCodeMap : Entity<Guid>
{
	public int From { get; }
	public EventCodeId To { get; } = default!;

	private EventCodeMap(Guid id, int from, EventCodeId to)
	{
		Id = id;
		From = from;
		To = to;
	}
	protected EventCodeMap() : base() { }

	public static EventCodeMap Create(Guid id, int from, EventCodeId to)
	{
		return new EventCodeMap(id, from, to);
	}
}
