Ejemplo n.º 1
0
        public void method_6(GameClient Session, uint uint_0)
        {
            SupportTicket @class = this.method_5(uint_0);

            if (@class != null && @class.Status == TicketStatus.OPEN)
            {
                @class.method_0(Session.GetHabbo().Id, true);
                this.method_11(@class);
            }
        }
Ejemplo n.º 2
0
        public void method_2(DatabaseClient class6_0)
        {
            Logging.smethod_0("Loading Current Help Tickets..");
            DataTable dataTable = class6_0.ReadDataTable("SELECT Id,score,type,status,sender_id,reported_id,moderator_id,message,room_id,room_name,timestamp FROM moderation_tickets WHERE status = 'open' OR status = 'picked'");

            if (dataTable != null)
            {
                foreach (DataRow dataRow in dataTable.Rows)
                {
                    SupportTicket @class = new SupportTicket((uint)dataRow["Id"], (int)dataRow["score"], (int)dataRow["type"], (uint)dataRow["sender_id"], (uint)dataRow["reported_id"], (string)dataRow["message"], (uint)dataRow["room_id"], (string)dataRow["room_name"], (double)dataRow["timestamp"], (uint)dataRow["moderator_id"]);
                    if (dataRow["status"].ToString().ToLower() == "picked")
                    {
                        @class.method_0((uint)dataRow["moderator_id"], false);
                    }
                    this.Tickets.Add(@class);
                }
                Logging.WriteLine("completed!");
            }
        }
Ejemplo n.º 3
0
 public void method_2(DatabaseClient class6_0)
 {
     Logging.smethod_0("Loading Current Help Tickets..");
     DataTable dataTable = class6_0.ReadDataTable("SELECT Id,score,type,status,sender_id,reported_id,moderator_id,message,room_id,room_name,timestamp FROM moderation_tickets WHERE status = 'open' OR status = 'picked'");
     if (dataTable != null)
     {
         foreach (DataRow dataRow in dataTable.Rows)
         {
             SupportTicket @class = new SupportTicket((uint)dataRow["Id"], (int)dataRow["score"], (int)dataRow["type"], (uint)dataRow["sender_id"], (uint)dataRow["reported_id"], (string)dataRow["message"], (uint)dataRow["room_id"], (string)dataRow["room_name"], (double)dataRow["timestamp"], (uint)dataRow["moderator_id"]);
             if (dataRow["status"].ToString().ToLower() == "picked")
             {
                 @class.method_0((uint)dataRow["moderator_id"], false);
             }
             this.Tickets.Add(@class);
         }
         Logging.WriteLine("completed!");
     }
 }