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

package user

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

// UserDeleteAvatarReader is a Reader for the UserDeleteAvatar structure.
type UserDeleteAvatarReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *UserDeleteAvatarReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewUserDeleteAvatarNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	default:
		return nil, runtime.NewAPIError("[DELETE /user/avatar] userDeleteAvatar", response, response.Code())
	}
}

// NewUserDeleteAvatarNoContent creates a UserDeleteAvatarNoContent with default headers values
func NewUserDeleteAvatarNoContent() *UserDeleteAvatarNoContent {
	return &UserDeleteAvatarNoContent{}
}

/*
UserDeleteAvatarNoContent describes a response with status code 204, with default header values.

APIEmpty is an empty response
*/
type UserDeleteAvatarNoContent struct {
}

// IsSuccess returns true when this user delete avatar no content response has a 2xx status code
func (o *UserDeleteAvatarNoContent) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this user delete avatar no content response has a 3xx status code
func (o *UserDeleteAvatarNoContent) IsRedirect() bool {
	return false
}

// IsClientError returns true when this user delete avatar no content response has a 4xx status code
func (o *UserDeleteAvatarNoContent) IsClientError() bool {
	return false
}

// IsServerError returns true when this user delete avatar no content response has a 5xx status code
func (o *UserDeleteAvatarNoContent) IsServerError() bool {
	return false
}

// IsCode returns true when this user delete avatar no content response a status code equal to that given
func (o *UserDeleteAvatarNoContent) IsCode(code int) bool {
	return code == 204
}

// Code gets the status code for the user delete avatar no content response
func (o *UserDeleteAvatarNoContent) Code() int {
	return 204
}

func (o *UserDeleteAvatarNoContent) Error() string {
	return fmt.Sprintf("[DELETE /user/avatar][%d] userDeleteAvatarNoContent", 204)
}

func (o *UserDeleteAvatarNoContent) String() string {
	return fmt.Sprintf("[DELETE /user/avatar][%d] userDeleteAvatarNoContent", 204)
}

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

	return nil
}
