using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLY.Thick.Base.Common;
using System.ComponentModel;

namespace FLY.Thick.Base.IService
{
    public interface IPasswordService:INotifyPropertyChanged
    {

        List<PasswordCell> PWs { get; }
        /// <summary>
        /// 输入密码，确认密码权限是否满足要求， level越大，要求权限越大
        /// </summary>
        /// <param name="pw"></param>
        /// <param name="level"></param>
        /// <returns></returns>
        AUTHORIZE_RESULT Authorize(string pw, int level);


        /// <summary>
        /// 密码队列修改后应用
        /// </summary>
        void Apply();
    }
    public enum AUTHORIZE_RESULT
    {
        OK,
        ERR_LEVEL,
        ERR_PW
    }
}
