﻿using System;

namespace Weixing.Toolkit.Authentication
{
	public class Identity<T> where T : IFormattable, IEquatable<T>
	{
		public T Id { get; set; }
		public virtual string DisplayName { get; set; }
		public virtual bool IsAuthenticated => Id != null && !Id.Equals(default(T));
	}
}