Пример #1
0
 public static void OnActionOffline(ActionDM action)
 => DashboardSocketsServer.SendToAll(new ActionUpdateModel()
 {
     Data = action
 }.Pack(DashboardEvents.ACTION_UPDATE));
Пример #2
0
 public static void AdminDisconnected(AdminDM admin)
 => DashboardSocketsServer.SendToAll(new AdminDisconnectedModel()
 {
     Username = admin.username
 }
                                     .Pack(DashboardEvents.ADMIN_DISCONNECTED));
Пример #3
0
        ///
        /// ACTIONS
        ///

        public static void OnActionInsert(ActionDM action)
        => DashboardSocketsServer.SendToAll(new ActionUpdateModel()
        {
            Data = action
        }.Pack(DashboardEvents.ACTION_INSERT));
Пример #4
0
 public static void ActionDisconnected(string actionid)
 => DashboardSocketsServer.SendToAll(new ActionConnectedDisconnectedModel()
 {
     ID = actionid
 }.Pack(DashboardEvents.ACTION_DISCONNECT));
Пример #5
0
        ///
        /// ACTION CONNECT / DISCONNECT
        ///

        public static void ActionConnected(ActionLiveModel model)
        => DashboardSocketsServer.SendToAll(model.Pack(DashboardEvents.ACTION_CONNECT));
Пример #6
0
        ///
        /// ERRORS
        ///

        public static void OnFatal(string sessionID, string exception)
        => DashboardSocketsServer.SendToAll(new ExceptionModel()
        {
            SessionID = sessionID, Exception = exception
        }.Pack(DashboardEvents.FATAL));
Пример #7
0
 public static void OnNewUpsell(string provider, string actionID)
 => DashboardSocketsServer.SendToAll(new PostbackTransaction()
 {
     ProviderName = provider, ActionID = actionID
 }.Pack(DashboardEvents.POSTBACK_UPSELL));
Пример #8
0
 public static void OnNewChargeback(string provider, string actionID)
 => DashboardSocketsServer.SendToAll(new PostbackTransaction()
 {
     ProviderName = provider, ActionID = actionID
 }.Pack(DashboardEvents.POSTABACK_CHARGEBACK));