Backup and Clean Push Service and implement new Structure of Push Service ...

This commit is contained in:
2025-11-14 16:40:45 +03:30
parent cfcb2d12b4
commit 3bd4b8d562
40 changed files with 333 additions and 2560 deletions
-9
View File
@@ -1,9 +0,0 @@
namespace xPushService.Constants {
public enum XCallEndReason {
End,
Missed,
Reject,
Canceled,
Disconnected
}
}
-11
View File
@@ -1,11 +0,0 @@
namespace xPushService.Constants {
public enum XCallType {
None,
Chat,
AudioCall,
VideoCall,
DesktopShare,
AudioConference,
VideoConference,
}
}
+34
View File
@@ -0,0 +1,34 @@
using xExceptions.Attributes;
namespace xPushService.Constants
{
public enum XBaseHubAction
{
/// <summary>
/// new Connection Join ...
/// </summary>
[StringValue("NewConnection")]
NewConnection,
/// <summary>
/// an Exists Connection Closed ...
/// </summary>
[StringValue("ConnectionClosed")]
ConnectionClosed,
}
/// <summary>
/// All Actions in WebRTC Hubs ...
/// </summary>
public enum XWebRTCAction
{
//
[StringValue("Offer")]
Offer,
[StringValue("Answer")]
Answer,
[StringValue("Candidate")]
Candidate,
}
}
-32
View File
@@ -1,32 +0,0 @@
using xExceptions.Attributes;
namespace xPushService.Constants {
/// <summary>
/// Determines Push Notification Types
/// </summary>
public enum XPushType {
/// System Type Notifications Relate Only to System
[StringValue("system")]
System,
/// User Specific Types Of Push Notifications
[StringValue("user")]
User
}
/// <summary>
/// Base Push Actions ...
/// </summary>
public enum XBasePushAction {
[StringValue ("PushMessageAsync")]
PushMessage,
[StringValue ("UserMessageAsync")]
UserMessage,
[StringValue ("AdminMessageAsync")]
AdminMessage,
[StringValue("AuthorizedMessageAsync")]
AuthorizedMessage,
[StringValue("NotifyNewConnection")]
NotifyNewConnection
}
}
-32
View File
@@ -1,32 +0,0 @@
using xExceptions.Attributes;
namespace xPushService.Constants {
public enum XWebRTCAction {
//
[StringValue ("RequestCall")]
RequestCall,
[StringValue ("RequestUserCall")]
RequestUserCall,
//
[StringValue ("CancelCall")]
CancelCall,
[StringValue ("RejectCall")]
RejectCall,
[StringValue ("AcceptCall")]
AcceptCall,
//
[StringValue ("WebRTCOffer")]
WebRTCOffer,
[StringValue ("WebRTCAnswer")]
WebRTCAnswer,
[StringValue ("WebRTCICECandidate")]
WebRTCICECandidate,
}
}