Esempio n. 1
0
 public bool InJourney(JourneyLog journeyLog)
 {
     if (journeyLog.journeyHistory.Count == 0)
     {
         return(false);
     }
     if ($"{journeyLog.journeyHistory.ElementAt(journeyLog.journeyHistory.Count - 1).Key}" == $"Entry Station{journeyLog.journeyID}:")
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 2
0
        public bool JourneyIncomplete(string touchType, JourneyLog journeyLog)
        {
            if (touchType == "In")
            {
                if (InJourney(journeyLog) == true)
                {
                    return(true);
                }
            }

            if (touchType == "Out")
            {
                if (InJourney(journeyLog) == false)
                {
                    return(true);
                }
            }

            return(false);
        }