// 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 (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// APIDeviceActivation api device activation
//
// swagger:model apiDeviceActivation
type APIDeviceActivation struct {

	// Downlink application frame-counter.
	AFCntDown int64 `json:"aFCntDown,omitempty"`

	// Application session key (HEX encoded).
	AppSKey string `json:"appSKey,omitempty"`

	// Device address (HEX encoded).
	DevAddr string `json:"devAddr,omitempty"`

	// Device EUI (EUI64).
	DevEui string `json:"devEui,omitempty"`

	// Uplink frame-counter.
	FCntUp int64 `json:"fCntUp,omitempty"`

	// Forwarding network session integrity key (HEX encoded).
	// Note: For LoRaWAN 1.0.x devices, set this to the NwkSKey.
	FNwkSIntKey string `json:"fNwkSIntKey,omitempty"`

	// Downlink network frame-counter.
	NFCntDown int64 `json:"nFCntDown,omitempty"`

	// Network session encryption key (HEX encoded).
	// Note: For LoRaWAN 1.0.x devices, set this to the NwkSKey.
	NwkSEncKey string `json:"nwkSEncKey,omitempty"`

	// Serving network session integrity key (HEX encoded).
	// Note: For LoRaWAN 1.0.x devices, set this to the NwkSKey.
	SNwkSIntKey string `json:"sNwkSIntKey,omitempty"`
}

// Validate validates this api device activation
func (m *APIDeviceActivation) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this api device activation based on context it is used
func (m *APIDeviceActivation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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