-
Notifications
You must be signed in to change notification settings - Fork 0
/
timesheet_time_clock_stop_stop_responses.go
59 lines (46 loc) · 1.81 KB
/
timesheet_time_clock_stop_stop_responses.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Code generated by go-swagger; DO NOT EDIT.
package time_clock
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
)
// TimesheetTimeClockStopStopReader is a Reader for the TimesheetTimeClockStopStop structure.
type TimesheetTimeClockStopStopReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *TimesheetTimeClockStopStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
result := NewTimesheetTimeClockStopStopDefault(response.Code())
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
if response.Code()/100 == 2 {
return result, nil
}
return nil, result
}
// NewTimesheetTimeClockStopStopDefault creates a TimesheetTimeClockStopStopDefault with default headers values
func NewTimesheetTimeClockStopStopDefault(code int) *TimesheetTimeClockStopStopDefault {
return &TimesheetTimeClockStopStopDefault{
_statusCode: code,
}
}
/*TimesheetTimeClockStopStopDefault handles this case with default header values.
successful operation
*/
type TimesheetTimeClockStopStopDefault struct {
_statusCode int
}
// Code gets the status code for the timesheet time clock stop stop default response
func (o *TimesheetTimeClockStopStopDefault) Code() int {
return o._statusCode
}
func (o *TimesheetTimeClockStopStopDefault) Error() string {
return fmt.Sprintf("[PUT /timesheet/timeClock/{id}/:stop][%d] TimesheetTimeClockStopStop default ", o._statusCode)
}
func (o *TimesheetTimeClockStopStopDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}