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

// GetCorporationsCorporationIDMembertrackingOKBodyItems get_corporations_corporation_id_membertracking_200_ok
//
// 200 ok object
// swagger:model getCorporationsCorporationIdMembertrackingOKBodyItems

type GetCorporationsCorporationIDMembertrackingOKBodyItems struct {

	// get_corporations_corporation_id_membertracking_base_id
	//
	// base_id integer
	BaseID int32 `json:"base_id,omitempty"`

	// get_corporations_corporation_id_membertracking_character_id
	//
	// character_id integer
	// Required: true
	CharacterID *int32 `json:"character_id"`

	// get_corporations_corporation_id_membertracking_location_id
	//
	// location_id integer
	LocationID int64 `json:"location_id,omitempty"`

	// get_corporations_corporation_id_membertracking_logoff_date
	//
	// logoff_date string
	LogoffDate strfmt.DateTime `json:"logoff_date,omitempty"`

	// get_corporations_corporation_id_membertracking_logon_date
	//
	// logon_date string
	LogonDate strfmt.DateTime `json:"logon_date,omitempty"`

	// get_corporations_corporation_id_membertracking_ship_type_id
	//
	// ship_type_id integer
	ShipTypeID int32 `json:"ship_type_id,omitempty"`

	// get_corporations_corporation_id_membertracking_start_date
	//
	// start_date string
	StartDate strfmt.DateTime `json:"start_date,omitempty"`
}

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems base_id false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems character_id false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems location_id false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems logoff_date false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems logon_date false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems ship_type_id false */

/* polymorph getCorporationsCorporationIdMembertrackingOKBodyItems start_date false */

// Validate validates this get corporations corporation Id membertracking o k body items
func (m *GetCorporationsCorporationIDMembertrackingOKBodyItems) Validate(formats strfmt.Registry) error {
	var res []error

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

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

func (m *GetCorporationsCorporationIDMembertrackingOKBodyItems) validateCharacterID(formats strfmt.Registry) error {

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

	return nil
}

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

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