3 NuGet API
Craig edited this page 5 years ago

Here is a list of the available commands in WetPancake. Each command uses the following template:

Name

  • Parameters
  • Description

CleanResultAsync

  • (noOfSentences: int) (text:string)
  • Checks to see if the string matches the desired sentence count and removes any over that limit.

TextInFileIsValidAsync

  • (filePath: string)
  • Checks the text within the specified file to see if it contains a valid end token. They are '.', '!' and '?'.

RequestRandomTextAsync

  • N.A.
  • An asynchronous function which generates random text.

RequestTextAsync

  • (gibberishLevel: int) (sentences: int)
  • An asynchronous function which generates random text. It uses the built-in template (.txt) files as a reference and the parameters specified by the caller.

RequestTextFromFileAsync

  • (gibberishLevel: int) (sentences: int) (filePath: string)
  • An asynchronous function which generates text. It generates the text by using the (.txt) file passed in by the caller (as the reference) It, also, uses the parameters specified by the caller.

RequestAllTemplateFiles

  • N.A.
  • Finds every available template (.txt) file in Wet Pancake and forms a list of their file paths.

RequestCleanTextAsync

  • (gibberishLevel: int) (sentences: int)
  • An asynchronous function which generates random text. It uses the built-in template (.txt) files as a reference and the parameters specified by the user. It, also, goes through a "cleaning" process which removes any excess sentences.

RequestCleanTextFromFileAsync

  • (gibberishLevel: int) (sentences: int) (filePath: string)
  • An asynchronous function which generates text. It generates the text by using the (.txt) file passed in by the caller (as the reference) It, also, uses the parameters specified by the caller. On top of that, it goes through a "cleaning" process which removes any excess sentences.