using System; using System.Collections.Generic; using System.Threading.Tasks; namespace _0_Framework.Application.Sms; public interface ISmsService { void Send(string number, string message); bool VerifySend(string number, string message); bool LoginSend(string number, string message); /// /// ارسال کد به کلاینت برای تکمیل فرایند ثبت نام /// /// /// /// Task SendVerifyCodeToClient(string number, string code); bool SendAccountsInfo(string number,string fullName, string userName); Task GetByMessageId(int messId); Task> GetApiResult(string startDate, string endDate); #region ForApi Task> GetApiReport(string startDate, string endDate); #endregion string DeliveryStatus(byte? dv); string DeliveryColorStatus(byte? dv); string UnixTimeStampToDateTime(int? unixTimeStamp); #region Mahan Task GetCreditAmount(); public Task SendInstitutionCreationVerificationLink(string number, string fullName, Guid institutionId, long contractingPartyId, long institutionContractId, string typeOfSms = null); public Task SendInstitutionVerificationCode(string number, string code, string contractingPartyFullName, long contractingPartyId, long institutionContractId); SmsResult TaskReminderSms(string number, string taskCount); #endregion #region InstitutionContractSMS /// /// پیامک اهانه جدید /// /// /// /// /// /// /// /// Task<(byte status, string message, int messaeId, bool isSucceded)> MonthlyBillNew(string number, int tamplateId, string fullname, string amount, string code1, string code2); /// /// پیامک ماهانه قدیم /// /// /// /// /// /// /// /// Task<(byte status, string message, int messaeId, bool isSucceded)> MonthlyBill(string number, int tamplateId, string fullname, string amount, string id, string aprove); /// /// پیامک مسدودی طرف حساب /// قراردادهای قدیم /// /// /// /// /// /// /// /// Task<(byte status, string message, int messaeId, bool isSucceded)> BlockMessage(string number, string fullname, string amount, string accountType, string id, string aprove); /// /// پیامک مسدودی طرف حساب /// قرارداد های جدید /// /// /// /// /// /// /// Task<(byte status, string message, int messaeId, bool isSucceded)> BlockMessageForElectronicContract(string number, string fullname, string amount, string code1, string code2); #endregion #region AlarmMessage /// /// ارسال پیامک های خطا یا اعمال ارسال /// /// /// /// Task Alarm(string number, string message); #endregion }