refactor XPushMessage and handle it's side affects ...
This commit is contained in:
+2
-2
@@ -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} ...",
|
||||
};
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ...
|
||||
|
||||
Reference in New Issue
Block a user