src/04_Auth/Auth.Abstractions/PlatformCollection.cs

(完整代码) 871B

namespace Mkh.Auth.Abstractions
{
    /// <summary>
    /// 平台类型集合
    /// </summary>
    public class PlatformCollection
    {
        /// <summary>
        /// Web平台
        /// </summary>
        public PlatformDescriptor Web { get; }

        /// <summary>
        /// Android平台
        /// </summary>
        public PlatformDescriptor Android { get; }

        public PlatformCollection()
        {
            Web = new() { Name = "Web", Value = 1 };
            Android = new() { Name = "安卓", Value = 2 };
        }
    }

    /// <summary>
    /// 平台描述
    /// </summary>
    public class PlatformDescriptor
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public int Value { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。