Esempio n. 1
0
 /// <summary>
 /// Initializes a session with a start date to use as an
 /// identifier in the DB later on. Is also is a reference point for
 /// the times listed in the time list.
 /// </summary>
 /// <param name="start">The time and date from when the session starts</param>
 public Session(DateTime start, WorkoutApplication application = WorkoutApplication.None)
 {
     StartDate        = start;
     Forces           = new List <double>();
     Times            = new List <double>();
     this.application = application;
 }
Esempio n. 2
0
        public static string ApplicationTitleFromEnum(WorkoutApplication application)
        {
            switch (application)
            {
            case WorkoutApplication.None:           return("None Specified");

            case WorkoutApplication.ComboScore:     return("Combo Score");

            case WorkoutApplication.TotalForce:     return("Total Force");

            case WorkoutApplication.TotalTime:      return("Total Time");

            case WorkoutApplication.PunchChallenge: return("Punch Goal");

            case WorkoutApplication.PunchCount:     return("Timed Punch Goal");

            default:                                return("Invalid Application");
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a session with a sessionid from the database
 /// This allows us to get the session data from the database later on
 /// </summary>
 /// <param name="start">Start time</param>
 /// <param name="ID">SessionID as generated by the database</param>
 public Session(DateTime start, int ID, WorkoutApplication application = WorkoutApplication.None)
     : this(start, application)
 {
     SessionID = ID;
 }