C# Class Our.Umbraco.OpeningHours.Model.Items.OpeningHoursWeekdayItem

Inheritance: Our.Umbraco.OpeningHours.Model.Json.OpeningHoursJsonObject
Datei anzeigen Open project: bomortensen/Our.Umbraco.OpeningHours Class Usage Examples

Private Properties

Property Type Description
ParseLegacyValues void

Public Methods

Method Description
GetEmptyModel ( DayOfWeek day ) : OpeningHoursWeekdayItem

Initializes an empty instance for the specified DayOfWeek.

Parse ( Newtonsoft.Json.Linq.JObject obj ) : OpeningHoursWeekdayItem

Gets an instance of OpeningHoursTimeSlot from the specified JObject.

Protected Methods

Method Description
OpeningHoursWeekdayItem ( Newtonsoft.Json.Linq.JObject obj ) : System

Private Methods

Method Description
ParseLegacyValues ( ) : void

Parses legacy values from beta1.

Method Details

GetEmptyModel() public static method

Initializes an empty instance for the specified DayOfWeek.
public static GetEmptyModel ( DayOfWeek day ) : OpeningHoursWeekdayItem
day DayOfWeek The day of the week.
return OpeningHoursWeekdayItem

OpeningHoursWeekdayItem() protected method

protected OpeningHoursWeekdayItem ( Newtonsoft.Json.Linq.JObject obj ) : System
obj Newtonsoft.Json.Linq.JObject
return System

Parse() public static method

Gets an instance of OpeningHoursTimeSlot from the specified JObject.
public static Parse ( Newtonsoft.Json.Linq.JObject obj ) : OpeningHoursWeekdayItem
obj Newtonsoft.Json.Linq.JObject The instance of to parse.
return OpeningHoursWeekdayItem