// Code generated by go-swagger; DO NOT EDIT.

package uploads

// 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"
)

// UploadFileReader is a Reader for the UploadFile structure.
type UploadFileReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *UploadFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewUploadFileOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	default:
		return nil, runtime.NewAPIError("[POST /upload] uploadFile", response, response.Code())
	}
}

// NewUploadFileOK creates a UploadFileOK with default headers values
func NewUploadFileOK() *UploadFileOK {
	return &UploadFileOK{}
}

/*
UploadFileOK describes a response with status code 200, with default header values.

OK
*/
type UploadFileOK struct {
}

// IsSuccess returns true when this upload file o k response has a 2xx status code
func (o *UploadFileOK) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this upload file o k response has a 3xx status code
func (o *UploadFileOK) IsRedirect() bool {
	return false
}

// IsClientError returns true when this upload file o k response has a 4xx status code
func (o *UploadFileOK) IsClientError() bool {
	return false
}

// IsServerError returns true when this upload file o k response has a 5xx status code
func (o *UploadFileOK) IsServerError() bool {
	return false
}

// IsCode returns true when this upload file o k response a status code equal to that given
func (o *UploadFileOK) IsCode(code int) bool {
	return code == 200
}

// Code gets the status code for the upload file o k response
func (o *UploadFileOK) Code() int {
	return 200
}

func (o *UploadFileOK) Error() string {
	return fmt.Sprintf("[POST /upload][%d] uploadFileOK", 200)
}

func (o *UploadFileOK) String() string {
	return fmt.Sprintf("[POST /upload][%d] uploadFileOK", 200)
}

func (o *UploadFileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}
