121 lines
3.1 KiB
Go
121 lines
3.1 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
strfmt "github.com/go-openapi/strfmt"
|
|
|
|
"github.com/go-openapi/errors"
|
|
"github.com/go-openapi/swag"
|
|
"github.com/go-openapi/validate"
|
|
)
|
|
|
|
// GetUniverseGraphicsGraphicIDOKBody get_universe_graphics_graphic_id_ok
|
|
//
|
|
// 200 ok object
|
|
// swagger:model getUniverseGraphicsGraphicIdOKBody
|
|
|
|
type GetUniverseGraphicsGraphicIDOKBody struct {
|
|
|
|
// get_universe_graphics_graphic_id_collision_file
|
|
//
|
|
// collision_file string
|
|
CollisionFile string `json:"collision_file,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_graphic_file
|
|
//
|
|
// graphic_file string
|
|
GraphicFile string `json:"graphic_file,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_graphic_id
|
|
//
|
|
// graphic_id integer
|
|
// Required: true
|
|
GraphicID *int32 `json:"graphic_id"`
|
|
|
|
// get_universe_graphics_graphic_id_icon_folder
|
|
//
|
|
// icon_folder string
|
|
IconFolder string `json:"icon_folder,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_sof_dna
|
|
//
|
|
// sof_dna string
|
|
SofDna string `json:"sof_dna,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_sof_fation_name
|
|
//
|
|
// sof_fation_name string
|
|
SofFationName string `json:"sof_fation_name,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_sof_hull_name
|
|
//
|
|
// sof_hull_name string
|
|
SofHullName string `json:"sof_hull_name,omitempty"`
|
|
|
|
// get_universe_graphics_graphic_id_sof_race_name
|
|
//
|
|
// sof_race_name string
|
|
SofRaceName string `json:"sof_race_name,omitempty"`
|
|
}
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody collision_file false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody graphic_file false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody graphic_id false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody icon_folder false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody sof_dna false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody sof_fation_name false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody sof_hull_name false */
|
|
|
|
/* polymorph getUniverseGraphicsGraphicIdOKBody sof_race_name false */
|
|
|
|
// Validate validates this get universe graphics graphic Id o k body
|
|
func (m *GetUniverseGraphicsGraphicIDOKBody) Validate(formats strfmt.Registry) error {
|
|
var res []error
|
|
|
|
if err := m.validateGraphicID(formats); err != nil {
|
|
// prop
|
|
res = append(res, err)
|
|
}
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetUniverseGraphicsGraphicIDOKBody) validateGraphicID(formats strfmt.Registry) error {
|
|
|
|
if err := validate.Required("graphic_id", "body", m.GraphicID); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *GetUniverseGraphicsGraphicIDOKBody) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *GetUniverseGraphicsGraphicIDOKBody) UnmarshalBinary(b []byte) error {
|
|
var res GetUniverseGraphicsGraphicIDOKBody
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|