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

// GetFwStatsOKBodyItemsKills get_fw_stats_kills
//
// Summary of kills against an enemy faction for the given faction
// swagger:model getFwStatsOKBodyItemsKills

type GetFwStatsOKBodyItemsKills struct {

	// get_fw_stats_last_week
	//
	// Last week's total number of kills against enemy factions
	// Required: true
	LastWeek *int32 `json:"last_week"`

	// get_fw_stats_total
	//
	// Total number of kills against enemy factions since faction warfare began
	// Required: true
	Total *int32 `json:"total"`

	// get_fw_stats_yesterday
	//
	// Yesterday's total number of kills against enemy factions
	// Required: true
	Yesterday *int32 `json:"yesterday"`
}

/* polymorph getFwStatsOKBodyItemsKills last_week false */

/* polymorph getFwStatsOKBodyItemsKills total false */

/* polymorph getFwStatsOKBodyItemsKills yesterday false */

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

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

	if err := m.validateTotal(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 *GetFwStatsOKBodyItemsKills) validateLastWeek(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFwStatsOKBodyItemsKills) validateTotal(formats strfmt.Registry) error {

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

	return nil
}

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

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

	return nil
}

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

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