﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SafeChat
{
    public class UserTrackers
    {

        public UserTrackers()
        {
            LoginTracker = new Tracker(4, 0, 60, "You're attempting to login too many times from same IP.");
            LoginFailTracker = new Tracker(3, 60*10, 0, "You're failing too login too many times.");
            RegisterTracker = new Tracker(3, 0, 60, "You're attempting to register too many times from same IP.");
            MessageTracker = new Tracker(3, 0, 1, "You're spamming.");
            ChangeLevelTracker = new Tracker(3, 0, 1, "You're changing levels too frequently.");
            SessionKeyTracker = new Tracker(3, 0, 1, "You're sending sessions keys too frequently.");
          }

        public Tracker LoginTracker {
            get;
            private set;
        }

        public Tracker LoginFailTracker {
            get;
            private set;
        }

        public Tracker RegisterTracker {
            get;
            private set;
        }

        public Tracker MessageTracker {
            get;
            private set;
        }

        public Tracker ChangeLevelTracker {
            get;
            private set;
        }

        public Tracker SessionKeyTracker {
            get;
            private set;
        }
    }
}
