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

// GetUniverseSystemKillsOKBodyItems get_universe_system_kills_200_ok
//
// 200 ok object
// swagger:model getUniverseSystemKillsOKBodyItems

type GetUniverseSystemKillsOKBodyItems struct {

	// get_universe_system_kills_npc_kills
	//
	// Number of NPC ships killed in this system
	// Required: true
	NpcKills *int32 `json:"npc_kills"`

	// get_universe_system_kills_pod_kills
	//
	// Number of pods killed in this system
	// Required: true
	PodKills *int32 `json:"pod_kills"`

	// get_universe_system_kills_ship_kills
	//
	// Number of player ships killed in this system
	// Required: true
	ShipKills *int32 `json:"ship_kills"`

	// get_universe_system_kills_system_id
	//
	// system_id integer
	// Required: true
	SystemID *int32 `json:"system_id"`
}

/* polymorph getUniverseSystemKillsOKBodyItems npc_kills false */

/* polymorph getUniverseSystemKillsOKBodyItems pod_kills false */

/* polymorph getUniverseSystemKillsOKBodyItems ship_kills false */

/* polymorph getUniverseSystemKillsOKBodyItems system_id false */

// Validate validates this get universe system kills o k body items
func (m *GetUniverseSystemKillsOKBodyItems) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateNpcKills(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validatePodKills(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateShipKills(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateSystemID(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

func (m *GetUniverseSystemKillsOKBodyItems) validateNpcKills(formats strfmt.Registry) error {

	if err := validate.Required("npc_kills", "body", m.NpcKills); err != nil {
		return err
	}

	return nil
}

func (m *GetUniverseSystemKillsOKBodyItems) validatePodKills(formats strfmt.Registry) error {

	if err := validate.Required("pod_kills", "body", m.PodKills); err != nil {
		return err
	}

	return nil
}

func (m *GetUniverseSystemKillsOKBodyItems) validateShipKills(formats strfmt.Registry) error {

	if err := validate.Required("ship_kills", "body", m.ShipKills); err != nil {
		return err
	}

	return nil
}

func (m *GetUniverseSystemKillsOKBodyItems) validateSystemID(formats strfmt.Registry) error {

	if err := validate.Required("system_id", "body", m.SystemID); err != nil {
		return err
	}

	return nil
}

// MarshalBinary interface implementation
func (m *GetUniverseSystemKillsOKBodyItems) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *GetUniverseSystemKillsOKBodyItems) UnmarshalBinary(b []byte) error {
	var res GetUniverseSystemKillsOKBodyItems
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
