add ISteamService.SetCurrentUser

This commit is contained in:
Aigio Liu
2021-03-05 09:52:22 +08:00
parent 2f8a426bd7
commit 60b515b86b
14 changed files with 165 additions and 44 deletions
@@ -1,6 +1,6 @@
namespace System.Application.Models.AlibabaCloud
{
public class SmsOptions
public class SmsOptions : IExplicitHasValue
{
/// <summary>
/// 平台分配的appkey
@@ -28,7 +28,10 @@
{
return !string.IsNullOrWhiteSpace(AccessKeyId) &&
!string.IsNullOrWhiteSpace(AccessKeySecret) &&
!string.IsNullOrWhiteSpace(SignName);
!string.IsNullOrWhiteSpace(SignName) &&
Templates.Any_Nullable();
}
bool IExplicitHasValue.ExplicitHasValue() => IsValid();
}
}
@@ -1,6 +1,6 @@
namespace System.Application.Models.NetEaseCloud
{
public class SmsOptions
public class SmsOptions : IExplicitHasValue
{
/// <summary>
/// 开发者平台分配的appkey
@@ -15,12 +15,15 @@
/// <summary>
/// 开发者平台分配的模板标志
/// </summary>
public SmsOptionsTemplateId<int?>[]? Templates { get; set; }
public SmsOptionsTemplateId<int>[]? Templates { get; set; }
public bool IsValid()
{
return !string.IsNullOrWhiteSpace(AppKey) &&
!string.IsNullOrWhiteSpace(AppSecret);
!string.IsNullOrWhiteSpace(AppSecret) &&
Templates.Any_Nullable();
}
bool IExplicitHasValue.ExplicitHasValue() => IsValid();
}
}
@@ -0,0 +1,41 @@
namespace System.Application.Models._21VianetBlueCloud
{
public class SmsOptions : IExplicitHasValue
{
/// <summary>
/// ccs account name
/// </summary>
public string? Account { get; set; }
/// <summary>
/// 密钥名称
/// </summary>
public string? KeyName { get; set; }
/// <summary>
/// 密钥
/// </summary>
public string? KeyValue { get; set; }
/// <summary>
/// 下发扩展码,两位纯数字
/// </summary>
public string ExtendCode { get; set; } = "08";
/// <summary>
/// 开发者平台分配的模板标志
/// </summary>
public SmsOptionsTemplateId<string>[]? Templates { get; set; }
public bool IsValid()
{
return !string.IsNullOrWhiteSpace(Account) &&
!string.IsNullOrWhiteSpace(ExtendCode) &&
!string.IsNullOrWhiteSpace(KeyName) &&
!string.IsNullOrWhiteSpace(KeyValue) &&
Templates.Any_Nullable();
}
bool IExplicitHasValue.ExplicitHasValue() => IsValid();
}
}