SafeDispatch/Safedispatch_4_0/Sip/ISocketIOComponent.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2024-02-22 16:43:59 +00:00
using SipComponent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dispatcher.Sip
{
interface ISocketIOComponent
{
/// <summary>
/// Sends an sms on socket IO
/// </summary>
/// <param name="seqID">Unique seqID. It should be in the format dispatcherSipID.timestamp</param>
/// <param name="fromScID">SC ID of the sender</param>
/// <param name="destinationSipID">The sip group ID</param>
/// <param name="destinationScID">SC ID of the group</param>
/// <param name="text">The text</param>
/// <param name="isGroupSms">True if is group sms, else false</param>
void SendSms(string seqID, int fromScID, int destinationSipID, int destinationScID, string text, bool isGroupSms);
/// <summary>
/// Occurs when an sms is received on socketIO
/// </summary>
event EventHandler<SocketIOSmsEventArgs> SocketIOSmsReceived;
/// <summary>
/// Occurs when an sms ack is received on socketIO
/// </summary>
event EventHandler<SocketIoSmsAckEventArgs> SocketIOSmsAckReceived;
}
}