Bläddra i källkod

Changed platform enum

Kenric Nugteren 2 år sedan
förälder
incheckning
80cb21ac90

+ 2 - 2
InABox.Core/Notifications/Platform.cs

@@ -6,7 +6,7 @@ namespace InABox.Core
 {
     public enum Platform
     {
-        Mobile,
+        TimeBench,
         Wpf,
         DatabaseEngine,
         WebEngine,
@@ -20,7 +20,7 @@ namespace InABox.Core
         public static string PlatformToString(Platform platform) => platform switch
         {
             Platform.Wpf => "Wpf",
-            Platform.Mobile => "Mobile",
+            Platform.TimeBench => "Mobile",
             Platform.DatabaseEngine => "Database",
             Platform.WebEngine => "Web Engine",
             Platform.GPSEngine => "GPS Engine",

+ 2 - 0
inabox.client.rest/InABox.Client.Rest/RestClient.cs

@@ -140,6 +140,8 @@ namespace InABox.Clients
                     if(response.Session != Guid.Empty)
                     {
                         var notifyRequest = new NotifyRequest();
+                        PrepareRequest(notifyRequest);
+
                         // Session is required so that the server can exclude any requests from bad actors
                         notifyRequest.Credentials.Session = response.Session;
                         var notifyResponse = SendRequest<NotifyRequest, NotifyResponse>(notifyRequest, "notify", SerializationFormat.Binary, SerializationFormat.Binary, false);