Crowous
    Preparing search index...

    Class Restaurant

    Index

    Properties

    access: string | null = ...
    accessibility: boolean = ...
    address: string = ...

    Full address of the restaurant.

    album: Image | null = ...
    area: string = ...
    closing: string = ...
    contact: Contact = ...

    Contact of the restaurant owners.

    crousAndGoUrl: string | null = ...
    description: string = ...
    id: number = ...
    kind: RestaurantKind = ...
    latitude: number | null = ...
    longitude: number | null = ...
    opening: string = ...

    An opening day string is three boolean (0 or 1). Each day of the week is separated by commas (,) and each day contains three booleans (0 or 1).

    Those three booleans are "Morning, Lunch, Evening" values in this order and values 0 means closed and 1 means open.

    // Let's take the following `opening` string.
    "010,011,011,011,111,000,000"
    // - Monday is closed on Morning and Evening, but is opened on Lunch.
    // - Tuesday, Wednesday and Thursday are closed on Morning, but is opened on Lunch and Evening.
    // - Friday is opened all day long (Morning, Lunch and Evening)
    // - Saturday and Sunday are closed all day long (Morning, Lunch and Evening)
    operationalHours: string | null = ...
    paymentMethods: PaymentMethod[] = ...
    photo: Image | null = ...
    shortDescription: string = ...
    title: string = ...
    wifi: boolean = ...

    Whether the restaurant has Wi-Fi or not.

    Methods

    • Checks whether the restaurant is opened at a certain date on a certain moment.

      Parameters

      Returns boolean

      const today = new Date();
      const open = restaurant.isOpen(today, Moment.Lunch);
    • Checks whether the restaurant is opened at a certain day index on a certain moment.

      Parameters

      Returns boolean

      const open = restaurant.isOpen(Day.Monday, Moment.Lunch);