LuaExtension

public final class LuaExtension implements IExtension

shosetsu-kotlin-lib 16 / 01 / 2020

Parameters

content

extension script

debugName

name to use debug

Constructors

Link copied to clipboard
public LuaExtension LuaExtension(String content, String debugName)

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard
private final String baseURL

Base URL of the extension Used to open up in browser

Link copied to clipboard

Represents the data type of the chapters that getPassage returns

Link copied to clipboard
public final static LuaExtension.Companion Companion
Link copied to clipboard
private final String content
Link copied to clipboard

Returns the metadata that is at the header of the extension

Link copied to clipboard
private final Integer formatterID

Formatter identification Separates this from other extensions Should be as unique as possible

Link copied to clipboard
private final Boolean hasCloudFlare

If this extension has cloudflare protection that requires interception

Link copied to clipboard
private final Boolean hasSearch

If this extension is capable of searching

Link copied to clipboard
private final String imageURL

Image URL of the extension Used for user recognition

Link copied to clipboard

If this extensions search can be incremented

Link copied to clipboard

Represents the different listings of this extension

Link copied to clipboard
private final String name

Name of this extension

Link copied to clipboard
private final Array<Filter<?>> searchFiltersModel

Represents the filters models to be adjusted on the right

Link copied to clipboard
private final Array<Filter<?>> settingsModel

Represents the settings model this extension provides

Link copied to clipboard
private final Integer startIndex

Specifies what index should be used when incrementing pages.

Functions

Link copied to clipboard
public String expandURL(String smallURL, Integer type)
Link copied to clipboard
public String getBaseURL()

Base URL of the extension Used to open up in browser

Link copied to clipboard

Represents the data type of the chapters that getPassage returns

Link copied to clipboard
public final String getContent()
Link copied to clipboard

Returns the metadata that is at the header of the extension

Link copied to clipboard

Formatter identification Separates this from other extensions Should be as unique as possible

Link copied to clipboard

If this extension has cloudflare protection that requires interception

Link copied to clipboard

If this extension is capable of searching

Link copied to clipboard

Image URL of the extension Used for user recognition

Link copied to clipboard

Represents the different listings of this extension

Link copied to clipboard
public String getName()

Name of this extension

Link copied to clipboard
public ByteArray getPassage(String chapterURL)

Get the passage of a novel

Link copied to clipboard

Represents the filters models to be adjusted on the right

Link copied to clipboard

Represents the settings model this extension provides

Link copied to clipboard

Specifies what index should be used when incrementing pages.

Link copied to clipboard

If this extensions search can be incremented

Link copied to clipboard
public Novel.Info parseNovel(String novelURL, Boolean loadChapters)

Using the novel url, Requests for information on the novel

Link copied to clipboard
public Array<Novel.Listing> search(Map<Integer, ?> data)
Link copied to clipboard
public String shrinkURL(String longURL, Integer type)

Access class to shrink data of novels

Link copied to clipboard
public Unit updateSetting(Integer id, Object value)

Applies a setting a value