public GetMileage() { Name = "GetMileage"; PositiveResponseTemplate.Add("The gas mileage of {slot:Year} {slot:Make} {slot:Model} is {cityMpg} in the city and {highwayMpg} on the highway"); PositiveResponseTemplate.Add("The city MPG of the {slot:Year} {slot:Make} {slot:Model} is {cityMpg} and the highway MPG is {highwayMpg}"); //Encountered in the URL fails or MPG is unknown. Not prompting the user for further information NegativeResponseTemplate.Add("I don't know at this time."); Response["highwayMpg"] = "styles[0].MPG.highway"; Response["cityMpg"] = "styles[0].MPG.city"; //Encountered if the user starts app without declaring both make and model ErrorSlotResponse["Make"] = "What's the make of the car?"; ErrorSlotResponse["Model"] = "What's the model of the car?"; ErrorSlotResponse["Year"] = "What's the year of the car?"; FollowingQuestiestionMissingSlot["Make"] = "Please tell me who manufactures the car."; FollowingQuestiestionMissingSlot["Model"] = "Please tell me the model of the car."; FollowingQuestiestionMissingSlot["Year"] = "Please tell me the year of the car."; EdmundsUrlTemplate = "api/vehicle/v2/{slot:Make}/{slot:Model}/{slot:Year}/styles?view=full&fmt=json"; }
public SetModel() { Name = "SetModel"; PositiveResponseTemplate.Add("The selected model is {slot:Model} "); NegativeResponseTemplate.Add("There is no selected model"); ErrorSlotResponse["Model"] = "What's the model of the car?"; FollowingQuestiestionMissingSlot["Model"] = "Please tell me the model of the car."; }
public SetYear() { Name = "SetYear"; PositiveResponseTemplate.Add("The selected year is {slot:Year}"); //Encountered in the URL fails or car combo is unknown. Not prompting the user for further information NegativeResponseTemplate.Add("There is no selected year"); ErrorSlotResponse["Year"] = "There is no selected year"; FollowingQuestiestionMissingSlot["Year"] = ""; }
public SetMake() { Name = "SetMake"; PositiveResponseTemplate.Add("The selected make is {slot:Make}"); NegativeResponseTemplate.Add("There is no selected manufacturer"); //Encountered if the user starts app without declaring both make and model ErrorSlotResponse["Make"] = "What's the make of the car?"; FollowingQuestiestionMissingSlot["Make"] = "Please tell me who manufactures the car."; }
public GetPrice() { Name = "GetPrice"; PositiveResponseTemplate.Add("A new {slot:Year} {slot:Make} {slot:Model} has a starting price of {price}"); PositiveResponseTemplate.Add("A new {slot:Year} {slot:Make} {slot:Model} starts at {price} dollars"); //Encountered in the URL fails or Price is unknown. Not prompting the user for further information NegativeResponseTemplate.Add("Hmm. I can't seem to find the price at this time."); Response["price"] = "styles[0].price.baseMSRP"; //Encountered if the user starts app without declaring both make and model ErrorSlotResponse["Make"] = "What's the make of the car?"; ErrorSlotResponse["Model"] = "What's the model of the car?"; ErrorSlotResponse["Year"] = "What's the year of the car?"; FollowingQuestiestionMissingSlot["Make"] = "Please tell me the make of the car."; FollowingQuestiestionMissingSlot["Model"] = "Please tell me the model of the car."; FollowingQuestiestionMissingSlot["Year"] = "Please tell me the year of the car."; EdmundsUrlTemplate = "api/vehicle/v2/{slot:Make}/{slot:Model}/{slot:Year}/styles?view=full&fmt=json"; }
public SelectCar() { Name = "SelectCar"; PositiveResponseTemplate.Add("The {slot:Model} manufactured by {slot:Make} was first made in {yearStart}. The last year the {slot:Model} was made was in {yearLast}."); PositiveResponseTemplate.Add("The {slot:Make} {slot:Model} was first introduced in {yearStart}. The last time a {slot:Model} was rolled out was in {yearLast}."); //Encountered in the URL fails or car combo is unknown. Not prompting the user for further information NegativeResponseTemplate.Add("I don't have that car in my records. Hm try again later."); Response["yearStart"] = "years[0].year"; Response["yearLast"] = "years[-1:].year"; //Encountered if the user starts app without declaring both make and model ErrorSlotResponse["Make"] = "What's the make of the car?"; ErrorSlotResponse["Model"] = "What's the model of the car?"; ErrorSlotResponse["Year"] = "What's the year of the car?"; FollowingQuestiestionMissingSlot["Make"] = "Please tell me who manufactures the car."; FollowingQuestiestionMissingSlot["Model"] = "Please tell me the model of the car."; FollowingQuestiestionMissingSlot["Year"] = "Please tell me the year of the car."; EdmundsUrlTemplate = "api/vehicle/v2/{slot:Make}/{slot:Model}?view=basic&fmt=json"; }