public UserProfile(User user, int[] maxFactNumbers)
        {
            this.user = user;

            this.maxFactNumbers = new int[4];
            for (int index = 0; index < maxFactNumbers.Count (); ++index)
            {
                this.maxFactNumbers[index] = maxFactNumbers[index];
            }
            this.hasCustomSpeedFacts = false;
            this.maxDaysBetweenSpeedTests = DEFAULT_MAX_DAYS_BETWEEN_SPEED_TESTS;
        }
        public UserProfile(User user, int[] maxFactNumbers, bool hasCustomSpeedFacts, int maxDaysBetweenSpeedTests)
        {
            this.user = user;

            this.maxFactNumbers = new int[4];
            for (int index = 0; index < maxFactNumbers.Count (); ++index)
            {
                this.maxFactNumbers[index] = maxFactNumbers[index];
            }
            this.hasCustomSpeedFacts = hasCustomSpeedFacts;
            this.maxDaysBetweenSpeedTests = maxDaysBetweenSpeedTests;
        }
Exemple #3
0
 /*
  * Checks whether the given user exists.
  */
 public bool userDirectoryExists(User user)
 {
     return (System.IO.Directory.Exists (System.IO.Path.Combine (usersPath, user.name)));
 }