Пример #1
0
        public void ResolveTicket(ModerationTicket issue, Player sender, int state)
        {
            issue.State = ModerationTicketState.CLOSED;
            ModerationDatabase.UpdateTicket(issue);

            if (sender.Session != null)
            {
                switch (state)
                {
                case 1:
                    sender.Session.Send(new ModerationIssueHandledComposer(ModerationIssueHandledComposer.USELESS));
                    break;

                case 2:
                    sender.Session.Send(new ModerationIssueHandledComposer(ModerationIssueHandledComposer.ABUSIVE));
                    break;

                case 3:
                    sender.Session.Send(new ModerationIssueHandledComposer(ModerationIssueHandledComposer.HANDLED));
                    break;
                }
            }

            Alias.Server.SocketServer.SessionManager.SendWithPermission(new ModerationIssueInfoComposer(issue), "acc_modtool_ticket_queue");
            RemoveTicket(issue);
        }
Пример #2
0
        public void ReleaseTicket(ModerationTicket issue)
        {
            issue.ModId       = 0;
            issue.ModUsername = "";
            issue.State       = ModerationTicketState.OPEN;
            ModerationDatabase.UpdateTicket(issue);

            Alias.Server.SocketServer.SessionManager.SendWithPermission(new ModerationIssueInfoComposer(issue), "acc_modtool_ticket_queue");
        }
Пример #3
0
        public void PickTicket(ModerationTicket issue, Player habbo)
        {
            issue.ModId       = habbo.Id;
            issue.ModUsername = habbo.Username;
            issue.State       = ModerationTicketState.PICKED;
            ModerationDatabase.UpdateTicket(issue);

            Alias.Server.SocketServer.SessionManager.SendWithPermission(new ModerationIssueInfoComposer(issue), "acc_modtool_ticket_queue");
        }
Пример #4
0
 public List <ModerationChatlog> GetUserChatlog(int senderId, int targetId)
 {
     return(ModerationDatabase.ReadUserChatlogs(senderId, targetId));
 }
Пример #5
0
 public List <ModerationChatlog> GetRoomChatlog(int roomId)
 {
     return(ModerationDatabase.ReadRoomChatlogs(roomId));
 }
Пример #6
0
 public void AddTicket(ModerationTicket issue)
 {
     issue.Id = ModerationDatabase.AddTicket(issue);
     this._modTickets.Add(issue);
     Alias.Server.SocketServer.SessionManager.SendWithPermission(new ModerationIssueInfoComposer(issue), "acc_modtool_ticket_queue");
 }
Пример #7
0
 public void Initialize()
 {
     this._presets    = ModerationDatabase.ReadPresets();
     this._modTickets = ModerationDatabase.ReadTickets();
 }