
using CloudGaming.Code.Sms;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CloudGaming.Code.Aliyun;

namespace CloudGaming.Code.Contract
{
    /// <summary>
    /// 
    /// </summary>
    public static class CloudGamingExtend
    {
        /// <summary>
        /// 获取短信
        /// </summary>
        /// <param name="aliyunOssConfig"></param>
        /// <returns></returns>
        public static IPhoneNumberVerificationService GetPhoneNumberVerificationService(this AliyunConfig aliyunOssConfig)
        {
            return new AlibabaPhoneNumberVerificationService(aliyunOssConfig);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="aliyunOssConfig"></param>
        /// <returns></returns>
        public static IIdCardVerify GetIdCardVerify(this CloudGamingBase cloudGamingBase)
        {
            return new AlibabaIdCardVerify(cloudGamingBase.AppConfig.AliyunConfig);
        }
    }
}
