refactor XPushMessage and handle it's side affects ...

This commit is contained in:
2025-07-10 09:51:03 +03:30
parent c7cf0c4df1
commit 62336c9e7a
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -105,9 +105,9 @@ namespace xPushService.Base {
//
Actor = actor,
Payload = connectionId,
Type = XPushType.System,
TimeStamp = DateTime.UtcNow,
Topic = (int) XPushType.System,
Type = XPushType.System.GetStringValue(),
Topic = XPushType.System.GetStringValue(),
Action = XBasePushAction.NotifyNewConnection.GetStringValue (),
Message = $"a new connection stablished by {connectionId} ...",
};
+2
View File
@@ -6,9 +6,11 @@ namespace xPushService.Constants {
/// </summary>
public enum XPushType {
/// System Type Notifications Relate Only to System
[StringValue("system")]
System,
/// User Specific Types Of Push Notifications
[StringValue("user")]
User
}
+2 -2
View File
@@ -7,14 +7,14 @@ namespace xPushService.Models {
/// Specify the Type of Push Notification ...
/// </summary>
/// <value></value>
public XPushType Type { get; set; }
public string Type { get; set; }
/// <summary>
/// Specify the Topic of PushNotification ...
/// NOTE: XPushTopic enum contains default Values and User can Extends it ...
/// </summary>
/// <value></value>
public int Topic { get; set; }
public string Topic { get; set; }
/// <summary>
/// Specify the Action Name by passing String Values ...