Files
kami_itunes_june/AppleBatch_June.SMS/SMSFactory.cs
2024-07-22 00:43:14 +08:00

25 lines
598 B
C#

using System.Collections.Generic;
namespace AppleBatch_June.SMS
{
public static class SMSFactory
{
public static List<string> getSmsItems()
{
return new List<string> { "SmsYun", "Uomsg", "Yezi", "Us_Sms" };
}
public static ISms GetSms(string smsName, string token, string srojectId, string chennl)
{
return smsName switch
{
"Us_Sms" => new Us_Sms(token, srojectId, chennl),
"Yezi" => new YeziMsm(token, srojectId, chennl),
"Uomsg" => new UomsgMsm(token, srojectId, chennl),
"SmsYun" => new SmsYun(token, srojectId, chennl),
_ => null,
};
}
}
}