Initial Commit ...
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXMailService {
|
||||
Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXMessageProvider {
|
||||
bool IsReady (
|
||||
bool? checkMailService = false,
|
||||
bool? checkSmsService = false
|
||||
);
|
||||
|
||||
Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
);
|
||||
|
||||
Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXSmsService {
|
||||
Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user