1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
9 strfmt "github.com/go-openapi/strfmt"
11 "github.com/go-openapi/swag"
14 // SubscriptionData subscription data
15 // swagger:model SubscriptionData
16 type SubscriptionData struct {
19 Endpoint []string `json:"Endpoint"`
22 Meid string `json:"Meid,omitempty"`
25 SubscriptionID int64 `json:"SubscriptionId,omitempty"`
28 // Validate validates this subscription data
29 func (m *SubscriptionData) Validate(formats strfmt.Registry) error {
33 // MarshalBinary interface implementation
34 func (m *SubscriptionData) MarshalBinary() ([]byte, error) {
38 return swag.WriteJSON(m)
41 // UnmarshalBinary interface implementation
42 func (m *SubscriptionData) UnmarshalBinary(b []byte) error {
43 var res SubscriptionData
44 if err := swag.ReadJSON(b, &res); err != nil {