class SnippetController : Controller
Application controller for operations regarding Snippets.
SnippetController()
Application controller for operations regarding Snippets. |
var snippets: ArrayList<Snippet>
the working list of snippets. |
fun addSnippet(category: String, title: String, body: String): Unit
|
|
fun import(file: File): Unit
Import a JSON file containing an array of snippets. |
|
fun importLagacy(file: File): Unit
Import a LegacyFile of snippets. |
|
fun saveAs(file: File): Unit
Save an array of Snippets to a file. |