-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: separate out config from driver (#47)
BREAKING CHANGE: The config to set your restaurant sniping preferences now lives in a separate file
- Loading branch information
Showing
3 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.resy | ||
|
||
object ResyConfig { | ||
|
||
val resyKeys: ResyKeys = ResyKeys( | ||
// Your user profile API key which can be found via your browser web console in your headers | ||
// called "authorization" | ||
apiKey = ???, | ||
// Your user profile authentication token which can be found via your browser web console in | ||
// your headers called "x-resy-auth-token" | ||
authToken = ??? | ||
) | ||
|
||
val resDetails: ReservationDetails = ReservationDetails( | ||
// Date of the reservation in YYYY-MM-DD format | ||
date = ???, | ||
// Size of the party reservation | ||
partySize = ???, | ||
// Unique identifier of the restaurant where you want to make the reservation | ||
venueId = ???, | ||
// Priority list of reservation times and table types. Time is in military time HH:MM:SS format. | ||
// If no preference on table type, then simply don't set it. | ||
resTimeTypes = ??? | ||
) | ||
|
||
val snipeTime: SnipeTime = SnipeTime( | ||
// Hour of the day when reservations become available and when you want to snipe | ||
hours = ???, | ||
// Minute of the day when reservations become available and when you want to snipe | ||
minutes = ??? | ||
) | ||
} |