fix more to do with ws

This commit is contained in:
CWX
2025-01-16 20:21:30 +00:00
parent 408e522fa5
commit f8deb290f5
2 changed files with 9 additions and 10 deletions
+4 -4
View File
@@ -222,7 +222,7 @@ public class ItemHelper
/// </summary>
/// <param name="tpl">Item to look price up of</param>
/// <returns>Price in roubles</returns>
public decimal GetItemPrice(string tpl)
public double GetItemPrice(string tpl)
{
throw new NotImplementedException();
}
@@ -233,7 +233,7 @@ public class ItemHelper
/// </summary>
/// <param name="tpl">Item to look price up of</param>
/// <returns>Price in roubles</returns>
public decimal GetItemMaxPrice(string tpl)
public double GetItemMaxPrice(string tpl)
{
throw new NotImplementedException();
}
@@ -243,7 +243,7 @@ public class ItemHelper
/// </summary>
/// <param name="tpl">Items tpl id to look up price</param>
/// <returns>Price in roubles (0 if not found)</returns>
public decimal GetStaticItemPrice(string tpl)
public double GetStaticItemPrice(string tpl)
{
throw new NotImplementedException();
}
@@ -253,7 +253,7 @@ public class ItemHelper
/// </summary>
/// <param name="tpl">Items tpl id to look up price</param>
/// <returns>Price in roubles (undefined if not found)</returns>
public decimal GetDynamicItemPrice(string tpl)
public double GetDynamicItemPrice(string tpl)
{
throw new NotImplementedException();
}
+5 -6
View File
@@ -4,20 +4,19 @@ using Core.Models.Eft.Ws;
namespace Core.Helpers;
[Injectable]
[Injectable(InjectionType.Singleton)]
public class NotifierHelper
{
private readonly HttpServerHelper _httpServerHelper;
protected WsPing ping = new WsPing();
public NotifierHelper(
HttpServerHelper httpServerHelper)
{
_httpServerHelper = httpServerHelper;
}
public WsNotificationEvent GetDefaultNotification()
{
throw new NotImplementedException();
}
public WsNotificationEvent GetDefaultNotification() => ping;
/**
* Create a new notification that displays the "Your offer was sold!" prompt and removes sold offer from "My Offers" on clientside
@@ -55,6 +54,6 @@ public class NotifierHelper
public string GetWebSocketServer(string sessionID)
{
return $"{ _httpServerHelper.GetWebsocketUrl()}/ notifierServer / getwebsocket /{sessionID}";
return $"{_httpServerHelper.GetWebsocketUrl()}/notifierServer/getwebsocket/{sessionID}";
}
}