class Stremio::Addon::DevKit::ManifestResource
- Stremio::Addon::DevKit::ManifestResource
- Reference
- Object
Overview
Represents a single entry in the "resources: []" described in the manifest.json
There is a more condensed form of this (ie: resources: ["catalog"]
). However, we also use this more
verbose form to generate the types: []
entry in the manifest.json.
source: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/manifest.md#advanced
Included Modules
- JSON::Serializable
- JSON::Serializable::Fake
Defined in:
stremio-addon-devkit/manifest.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : ResourceType, types : Set(Stremio::Addon::DevKit::ContentType) = Set(ContentType).new, idPrefixes : Set(String) = Set(String).new)
Instance Method Summary
- #idPrefixes(json : JSON::Builder) : Nil
- #idPrefixes : Set(String)
- #idPrefixes=(idPrefixes : Set(String))
-
#name : ResourceType
#name
: required - string, the name of the resource -
#types : Set(ContentType)
#types
: required - array of strings, supported types, from all the Content Types -
#types=(types : Set(ContentType))
#types
: required - array of strings, supported types, from all the Content Types
Constructor Detail
def self.new(name : ResourceType, types : Set(Stremio::Addon::DevKit::ContentType) = Set(ContentType).new, idPrefixes : Set(String) = Set(String).new)
#
Instance Method Detail
def types : Set(ContentType)
#
#types
: required - array of strings, supported types, from all the Content Types
def types=(types : Set(ContentType))
#
#types
: required - array of strings, supported types, from all the Content Types