using Core.Controllers; using Core.Models.Eft.Common; using Core.Models.Eft.Common.Request; using Core.Models.Eft.Notifier; using Core.Utils; using SptCommon.Annotations; namespace Core.Callbacks; [Injectable(InjectableTypeOverride = typeof(NotifierCallbacks))] public class NotifierCallbacks( HttpResponseUtil _httpResponseUtil, NotifierController _notifierController ) { /// /// Handle client/notifier/channel/create /// /// /// /// /// public string CreateNotifierChannel(string url, EmptyRequestData info, string sessionID) { return _httpResponseUtil.GetBody(_notifierController.GetChannel(sessionID)); } /// /// Handle client/game/profile/select /// /// /// /// /// public string SelectProfile(string url, UIDRequestData info, string sessionID) { return _httpResponseUtil.GetBody( new SelectProfileResponse { Status = "ok" } ); } /// /// /// /// /// /// public string Notify(string url, object info, string sessionID) { return "NOTIFY"; } }