Beispiel #1
0
        public int GetIntSubmissionTime()
        {
            string hour   = SubmissionTime.Split(":")[0],
                   minute = SubmissionTime.Split(":")[1];

            return(int.Parse(hour) * 60 + int.Parse(minute));
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = _meetingDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ SubmissionTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (EmployeeId != null ? EmployeeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MeetingDuration;
         return(hashCode);
     }
 }
 protected bool Equals(BookingRequest other)
 {
     return(_meetingDateTime.Equals(other._meetingDateTime) && SubmissionTime.Equals(other.SubmissionTime) && Equals(EmployeeId, other.EmployeeId) && MeetingDuration == other.MeetingDuration);
 }
 public int CompareTo(BookingRequest other)
 {
     return(SubmissionTime.CompareTo(other.SubmissionTime));
 }