api

package
v0.0.0-...-c272ad0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type DisneyAuth

type DisneyAuth struct {
	Data struct {
		DisneyToken DisneyToken `json:"token"`
	} `json:"data"`
}

type DisneyToken

type DisneyToken struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

func RefreshAuth

func RefreshAuth(refreshToken string) (DisneyToken, error)

type Restaurant

type Restaurant struct {
	Name             string `json:"name"`
	DisneyID         string `json:"id"`
	BookingAvailable bool   `json:"drsApp"`
	HeroMediaMobile  struct {
		URL string `json:"url"`
	} `json:"heroMediaMobile"`
}

func Restaurants

func Restaurants() ([]Restaurant, error)

type RestaurantAvailability

type RestaurantAvailability struct {
	StartTime   string                 `json:"startTime"`
	EndTime     string                 `json:"endTime"`
	Date        string                 `json:"date"`
	Status      string                 `json:"status"`
	MealPeriods []RestaurantMealPeriod `json:"mealPeriods"`
}

type RestaurantAvailabilityError

type RestaurantAvailabilityError struct {
	Err            error
	HttpStatusCode int
	RawData        string
}

type RestaurantAvailabilitySearch

type RestaurantAvailabilitySearch struct {
	Date         string `json:"date"`
	RestaurantID string `json:"restaurantId"`
	PartyMix     int    `json:"partyMix"`
}

type RestaurantMealPeriod

type RestaurantMealPeriod struct {
	MealPeriod string               `json:"mealPeriod"`
	MealSlots  []RestaurantMealSlot `json:"slotList"`
}

type RestaurantMealSlot

type RestaurantMealSlot struct {
	Time      string `json:"time"`
	Available string `json:"available"`
}

type RestaurantResponse

type RestaurantResponse struct {
	Data struct {
		Activities []Restaurant `json:"activities"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL