// 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"
)

// InstanceConfigurationStatuses InstanceConfigurationStatuses models instance status config parameters.
//
// swagger:model InstanceConfigurationStatuses
type InstanceConfigurationStatuses struct {

	// Amount of characters clients should assume a url takes up.
	// Example: 25
	CharactersReservedPerURL int64 `json:"characters_reserved_per_url,omitempty"`

	// Maximum allowed length of a post on this instance, in characters.
	// Example: 5000
	MaxCharacters int64 `json:"max_characters,omitempty"`

	// Max number of attachments allowed on a status.
	// Example: 4
	MaxMediaAttachments int64 `json:"max_media_attachments,omitempty"`

	// List of mime types that it's possible to use for statuses on this instance.
	// Example: ["text/plain","text/markdown"]
	SupportedMimeTypes []string `json:"supported_mime_types"`
}

// Validate validates this instance configuration statuses
func (m *InstanceConfigurationStatuses) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this instance configuration statuses based on context it is used
func (m *InstanceConfigurationStatuses) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *InstanceConfigurationStatuses) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *InstanceConfigurationStatuses) UnmarshalBinary(b []byte) error {
	var res InstanceConfigurationStatuses
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
