refactor XPushMessage and handle it's side affects ...
This commit is contained in:
+2
-2
@@ -105,9 +105,9 @@ namespace xPushService.Base {
|
|||||||
//
|
//
|
||||||
Actor = actor,
|
Actor = actor,
|
||||||
Payload = connectionId,
|
Payload = connectionId,
|
||||||
Type = XPushType.System,
|
|
||||||
TimeStamp = DateTime.UtcNow,
|
TimeStamp = DateTime.UtcNow,
|
||||||
Topic = (int) XPushType.System,
|
Type = XPushType.System.GetStringValue(),
|
||||||
|
Topic = XPushType.System.GetStringValue(),
|
||||||
Action = XBasePushAction.NotifyNewConnection.GetStringValue (),
|
Action = XBasePushAction.NotifyNewConnection.GetStringValue (),
|
||||||
Message = $"a new connection stablished by {connectionId} ...",
|
Message = $"a new connection stablished by {connectionId} ...",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ namespace xPushService.Constants {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public enum XPushType {
|
public enum XPushType {
|
||||||
/// System Type Notifications Relate Only to System
|
/// System Type Notifications Relate Only to System
|
||||||
|
[StringValue("system")]
|
||||||
System,
|
System,
|
||||||
|
|
||||||
/// User Specific Types Of Push Notifications
|
/// User Specific Types Of Push Notifications
|
||||||
|
[StringValue("user")]
|
||||||
User
|
User
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ namespace xPushService.Models {
|
|||||||
/// Specify the Type of Push Notification ...
|
/// Specify the Type of Push Notification ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public XPushType Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify the Topic of PushNotification ...
|
/// Specify the Topic of PushNotification ...
|
||||||
/// NOTE: XPushTopic enum contains default Values and User can Extends it ...
|
/// NOTE: XPushTopic enum contains default Values and User can Extends it ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public int Topic { get; set; }
|
public string Topic { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify the Action Name by passing String Values ...
|
/// Specify the Action Name by passing String Values ...
|
||||||
|
|||||||
Reference in New Issue
Block a user