lib/api/voip/voip_models/recipient_stats.go

73 lines
1.7 KiB
Go
Raw Permalink Normal View History

2021-07-31 03:05:02 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Telnexus LLC
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package voip_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"
)
// RecipientStats recipient stats
//
// swagger:model RecipientStats
type RecipientStats struct {
// avg call time
AvgCallTime float64 `json:"AvgCallTime,omitempty"`
// Telnexus Record Identifier
ID string `json:"ID,omitempty"`
// last action time
LastActionTime float64 `json:"LastActionTime,omitempty"`
// last handled time
LastHandledTime float64 `json:"LastHandledTime,omitempty"`
// login time
LoginTime int64 `json:"LoginTime,omitempty"`
// missed calls
MissedCalls int64 `json:"MissedCalls,omitempty"`
// total calls
TotalCalls int64 `json:"TotalCalls,omitempty"`
}
// Validate validates this recipient stats
func (m *RecipientStats) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this recipient stats based on context it is used
func (m *RecipientStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *RecipientStats) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *RecipientStats) UnmarshalBinary(b []byte) error {
var res RecipientStats
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}