gtslib/models/swagger_featured_collection.go
decentral1se e4ade9c758
All checks were successful
continuous-integration/drone/push Build is passing
feat: init
2024-07-31 22:47:18 +02:00

70 lines
2.0 KiB
Go

// 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"
)
// SwaggerFeaturedCollection SwaggerFeaturedCollection represents an ActivityPub OrderedCollection.
//
// swagger:model SwaggerFeaturedCollection
type SwaggerFeaturedCollection struct {
// ActivityStreams JSON-LD context.
// A string or an array of strings, or more
// complex nested items.
// Example: https://www.w3.org/ns/activitystreams
Context interface{} `json:"@context,omitempty"`
// ActivityStreams ID.
// Example: https://example.org/users/some_user/collections/featured
ID string `json:"id,omitempty"`
// List of status URIs.
// Example: ["https://example.org/users/some_user/statuses/01GSZ0F7Q8SJKNRF777GJD271R","https://example.org/users/some_user/statuses/01GSZ0G012CBQ7TEKX689S3QRE"]
Items []string `json:"items"`
// Number of items in this collection.
// Example: 2
TotalItems int64 `json:"TotalItems,omitempty"`
// ActivityStreams type.
// Example: OrderedCollection
Type string `json:"type,omitempty"`
}
// Validate validates this swagger featured collection
func (m *SwaggerFeaturedCollection) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this swagger featured collection based on context it is used
func (m *SwaggerFeaturedCollection) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *SwaggerFeaturedCollection) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *SwaggerFeaturedCollection) UnmarshalBinary(b []byte) error {
var res SwaggerFeaturedCollection
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}