Get interface for subscriptions
[ric-plt/xapp-frame.git] / pkg / clientmodel / subscription_data.go
1 // Code generated by go-swagger; DO NOT EDIT.
2
3 package clientmodel
4
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
7
8 import (
9         strfmt "github.com/go-openapi/strfmt"
10
11         "github.com/go-openapi/swag"
12 )
13
14 // SubscriptionData subscription data
15 // swagger:model SubscriptionData
16 type SubscriptionData struct {
17
18         // endpoint
19         Endpoint []string `json:"Endpoint"`
20
21         // meid
22         Meid string `json:"Meid,omitempty"`
23
24         // subscription Id
25         SubscriptionID int64 `json:"SubscriptionId,omitempty"`
26 }
27
28 // Validate validates this subscription data
29 func (m *SubscriptionData) Validate(formats strfmt.Registry) error {
30         return nil
31 }
32
33 // MarshalBinary interface implementation
34 func (m *SubscriptionData) MarshalBinary() ([]byte, error) {
35         if m == nil {
36                 return nil, nil
37         }
38         return swag.WriteJSON(m)
39 }
40
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 {
45                 return err
46         }
47         *m = res
48         return nil
49 }