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

// GetFwLeaderboardsCorporationsOKBodyKills get_fw_leaderboards_corporations_kills
//
// Top 10 rankings of corporations by number of kills from yesterday, last week and in total.
// swagger:model getFwLeaderboardsCorporationsOKBodyKills

type GetFwLeaderboardsCorporationsOKBodyKills struct {

	// active total
	// Required: true
	ActiveTotal GetFwLeaderboardsCorporationsOKBodyKillsActiveTotal `json:"active_total"`

	// last week
	// Required: true
	LastWeek GetFwLeaderboardsCorporationsOKBodyKillsLastWeek `json:"last_week"`

	// yesterday
	// Required: true
	Yesterday GetFwLeaderboardsCorporationsOKBodyKillsYesterday `json:"yesterday"`
}

/* polymorph getFwLeaderboardsCorporationsOKBodyKills active_total false */

/* polymorph getFwLeaderboardsCorporationsOKBodyKills last_week false */

/* polymorph getFwLeaderboardsCorporationsOKBodyKills yesterday false */

// Validate validates this get fw leaderboards corporations o k body kills
func (m *GetFwLeaderboardsCorporationsOKBodyKills) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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

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

func (m *GetFwLeaderboardsCorporationsOKBodyKills) validateActiveTotal(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFwLeaderboardsCorporationsOKBodyKills) validateLastWeek(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFwLeaderboardsCorporationsOKBodyKills) validateYesterday(formats strfmt.Registry) error {

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

	return nil
}

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

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