using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Utils;
namespace Core.Callbacks;
[Injectable]
public class WeatherCallbacks(
HttpResponseUtil _httpResponseUtil,
WeatherController _weatherController
)
{
///
/// Handle client/weather
///
///
///
///
///
public string GetWeather(string url, EmptyRequestData info, string sessionID)
{
return _httpResponseUtil.GetBody(_weatherController.Generate());
}
///
/// Handle client/localGame/weather
///
///
///
///
///
public string GetLocalWeather(string url, EmptyRequestData info, string sessionID)
{
return _httpResponseUtil.GetBody(_weatherController.GenerateLocal(sessionID));
}
}