// 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" ) // TimelineMarker TimelineMarker contains information about a user's progress through a specific timeline. // // swagger:model TimelineMarker type TimelineMarker struct { // The ID of the most recently viewed entity. LastReadID string `json:"last_read_id,omitempty"` // The timestamp of when the marker was set (ISO 8601 Datetime) UpdatedAt string `json:"updated_at,omitempty"` // Used for locking to prevent write conflicts. Version int64 `json:"version,omitempty"` } // Validate validates this timeline marker func (m *TimelineMarker) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this timeline marker based on context it is used func (m *TimelineMarker) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *TimelineMarker) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *TimelineMarker) UnmarshalBinary(b []byte) error { var res TimelineMarker if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }