using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Rbac.Domain.Shared.Enums;

namespace Yi.Framework.Rbac.Domain.Shared.Caches
{
    public class CaptchaEmailCacheItem
    {
        public CaptchaEmailCacheItem(string code)
        {
            Code = code;
        }

        public string Code { get; set; }
    }

    public class CaptchaEmailCacheKey
    {
        public CaptchaEmailCacheKey(ValidationEmailTypeEnum validationPhoneType, string email)
        {
            Email = email;
            ValidationEmailType = validationPhoneType;
        }

        public ValidationEmailTypeEnum ValidationEmailType { get; set; }
        public string Email { get; set; }

        public override string ToString()
        {
            return $"Email:{ValidationEmailType.ToString()}:{Email}";
        }
    }
}