C# Class CorvallisBusCoreNetCore.Models.DaysOfWeekUtils

Afficher le fichier Open project: RikkiGibson/Corvallis-Bus-Server

Méthodes publiques

Méthode Description
GetDaysOfWeek ( string days ) : DaysOfWeek

Gets all the days of the week contained in the input string using a regular expression.

IsToday ( DaysOfWeek days, DateTimeOffset currentTime ) : bool

Returns a value indicating whether the provided DaysOfWeek value is applicable today.

Private Methods

Méthode Description
ToDaysOfWeek ( DayOfWeek day ) : DaysOfWeek

There is a real reason to have this enum instead of just DayOfWeek-- it's useful to be able to OR days together the way we do.

ToDaysOfWeek ( string day ) : DaysOfWeek

Method Details

GetDaysOfWeek() public static méthode

Gets all the days of the week contained in the input string using a regular expression.
public static GetDaysOfWeek ( string days ) : DaysOfWeek
days string
Résultat DaysOfWeek

IsToday() public static méthode

Returns a value indicating whether the provided DaysOfWeek value is applicable today.
public static IsToday ( DaysOfWeek days, DateTimeOffset currentTime ) : bool
days DaysOfWeek
currentTime DateTimeOffset
Résultat bool