private static FulfillmentResponse BuildResponseForMuiltipleMatchesFor( FulfillmentRequest fulfillmentRequest, IEnumerable <Quote> matchingQuotes) { return(fulfillmentRequest.DoesRequestingDeviceHaveAScreen() ? BuildResponseForMultipleMatchesForDeviceWithScreen(matchingQuotes) : BuildResponseForMultipleMatchesForAudioDevice(matchingQuotes)); }
private static string BuildResponseFrom(FulfillmentRequest fulfillmentRequest) { return(fulfillmentRequest.DoesRequestingDeviceHaveAScreen() ? "Okay I created the job. See the details below." : "Okay I created the job. I sent some details about it to your phone."); }