using System;
namespace XplorePlane.Models
{
///
/// 角色变更事件参数(供不使用 EventAggregator 的组件直接订阅)。
///
public class RoleChangedEventArgs : EventArgs
{
/// 变更前角色(首次登录时为 null)。
public UserRole? OldRole { get; }
/// 变更后角色。
public UserRole NewRole { get; }
public RoleChangedEventArgs(UserRole? oldRole, UserRole newRole)
{
OldRole = oldRole;
NewRole = newRole;
}
}
}