class Stremio::Addon::DevKit::ManifestResource

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

Defined in:

stremio-addon-devkit/manifest.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : ResourceType, types : Set(Stremio::Addon::DevKit::ContentType) = Set(ContentType).new, idPrefixes : Set(String) = Set(String).new) #

[View source]

Instance Method Detail

def idPrefixes(json : JSON::Builder) : Nil #

[View source]
def idPrefixes : Set(String) #

[View source]
def idPrefixes=(idPrefixes : Set(String)) #

[View source]
def name : ResourceType #

#name: required - string, the name of the resource


[View source]
def types : Set(ContentType) #

#types: required - array of strings, supported types, from all the Content Types


[View source]
def types=(types : Set(ContentType)) #

#types: required - array of strings, supported types, from all the Content Types


[View source]