mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 22:31:24 +00:00
25 lines
598 B
C#
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,
|
|
};
|
|
}
|
|
}
|
|
}
|