fix more to do with ws
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user