Books reservations for people ahead of time; they can pick a time or just join the wait list which is a queue of the most recent parton who joined
[Evaluation of your app across the following attributes]
Required Must-have Stories
Optional Nice-to-have Stories
Tab Navigation (Tab to Screen)
Flow Navigation (Screen to Screen)
Property | Type | Description |
---|---|---|
objectId | String | unique id for the user post (default field) |
name | String | name of user |
phone number | Number | phone number of user |
String | email of user | |
password | String | password of user |
Property | Type | Description |
---|---|---|
resturant | String | name of resturant |
date | Date | date of reservation |
time | Time | time of reservation |
party size | number | number of people in the party |
[Add table of models]
Login Screen
let userInfo = PFObject(className:"UserInfo")
userInfo["userName"] = "Sean Plott"
userInfo["Email"] = "splott@gmail.com"
userInfo["Phone"] = 123-456-7899
userInfo["Password"] = "password"
userInfo.saveInBackground {
(success: Bool, error: Error?) in
if (success) {
// The object has been saved.
} else {
// There was a problem, check error.description
}
}
Register Screen
let query = PFQuery(className:"UserInfo")
query.getObjectInBackground(withId: "xWMyZEGZ") { (userInfo: PFObject?, error: Error?) in
if let error = error {
//The query returned an error
print(error.localizedDescription)
} else {
//The object has been retrieved
print(userInfo)
}
}
Resturants Screen
let query = PFQuery(className:"resturantInfo")
query.getObjectInBackground(withId: "xWMyZEGZ") { (resturantInfo: PFObject?, error: Error?) in
if let error = error {
//The query returned an error
print(error.localizedDescription)
} else {
//The object has been retrieved
print(resturantInfo)
}
}
Add Reservation Screen
let query = PFQuery(className:"reservationInfo")
query.getObjectInBackground(withId: "xWMyZEGZ") { (reservationInfo: PFObject?, error: Error?) in
if let error = error {
//The query returned an error
print(error.localizedDescription)
} else {
//The object has been retrieved
print(reservationInfo)
}
}
Current Reservation Screen
let query = PFQuery(className:"reservationInfo")
query.getObjectInBackground(withId: "xWMyZEGZ") { (reservationInfo: PFObject?, error: Error?) in
if let error = error {
//The query returned an error
print(error.localizedDescription)
} else {
//The object has been retrieved
print(reservationInfo)
}
}
Profile Screen
let query = PFQuery(className:"UserInfo")
query.getObjectInBackground(withId: "xWMyZEGZ") { (userInfo: PFObject?, error: Error?) in
if let error = error {
//The query returned an error
print(error.localizedDescription)
} else {
//The object has been retrieved
print(userInfo)
}
}