public class DoctorReportHelper extends Object
Modifier and Type | Field and Description |
---|---|
static okhttp3.MediaType |
JSON |
Constructor and Description |
---|
DoctorReportHelper(ProjectFilesystem filesystem,
UserInput input,
Console console,
DoctorConfig doctorConfig) |
Modifier and Type | Method and Description |
---|---|
DoctorEndpointRequest |
generateEndpointRequest(BuildLogEntry entry,
DefectReporter.DefectSubmitResult reportResult) |
void |
presentRageResult(Optional<DefectReporter.DefectSubmitResult> result) |
void |
presentResponse(DoctorEndpointResponse response) |
Optional<BuildLogEntry> |
promptForBuild(List<BuildLogEntry> buildLogs) |
Optional<String> |
promptForIssue() |
DoctorEndpointResponse |
uploadRequest(DoctorEndpointRequest request) |
public DoctorReportHelper(ProjectFilesystem filesystem, UserInput input, Console console, DoctorConfig doctorConfig)
public Optional<BuildLogEntry> promptForBuild(List<BuildLogEntry> buildLogs) throws IOException
IOException
public Optional<String> promptForIssue() throws IOException
IOException
public DoctorEndpointRequest generateEndpointRequest(BuildLogEntry entry, DefectReporter.DefectSubmitResult reportResult) throws IOException
IOException
public DoctorEndpointResponse uploadRequest(DoctorEndpointRequest request)
public final void presentResponse(DoctorEndpointResponse response)
public final void presentRageResult(Optional<DefectReporter.DefectSubmitResult> result)