mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 23:19:53 +08:00
add ISteamService.SetCurrentUser
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user