C# Class NHS111.Business.Services.QuestionService

Inheritance: IQuestionService
Show file Open project: NHSChoices/nhs111-dotnet-beta

Public Methods

Method Description
GetAnswersForQuestion ( string id ) : Task
GetFirstQuestion ( string pathwayId ) : Task
GetJustToBeSafeQuestionsFirst ( string pathwayId ) : Task
GetJustToBeSafeQuestionsNext ( string pathwayId, IEnumerable answeredQuestionIds, bool multipleChoice, string selectedQuestionId ) : Task
GetNextQuestion ( string id, string answer ) : Task
GetQuestion ( string id ) : Task
QuestionService ( IConfiguration configuration, IRestfulHelper restfulHelper ) : System.Collections.Generic

Method Details

GetAnswersForQuestion() public method

public GetAnswersForQuestion ( string id ) : Task
id string
return Task

GetFirstQuestion() public method

public GetFirstQuestion ( string pathwayId ) : Task
pathwayId string
return Task

GetJustToBeSafeQuestionsFirst() public method

public GetJustToBeSafeQuestionsFirst ( string pathwayId ) : Task
pathwayId string
return Task

GetJustToBeSafeQuestionsNext() public method

public GetJustToBeSafeQuestionsNext ( string pathwayId, IEnumerable answeredQuestionIds, bool multipleChoice, string selectedQuestionId ) : Task
pathwayId string
answeredQuestionIds IEnumerable
multipleChoice bool
selectedQuestionId string
return Task

GetNextQuestion() public method

public GetNextQuestion ( string id, string answer ) : Task
id string
answer string
return Task

GetQuestion() public method

public GetQuestion ( string id ) : Task
id string
return Task

QuestionService() public method

public QuestionService ( IConfiguration configuration, IRestfulHelper restfulHelper ) : System.Collections.Generic
configuration IConfiguration
restfulHelper IRestfulHelper
return System.Collections.Generic