Home Manual Reference Source Test API Healthcheck
public class | source

NoteDataservice

Note Dataservice for interacting with the storage system for saving notes

Test:

Static Method Summary

Static Public Methods
public static

async createNote(name: String): Note

Creates a new note with a name TODO: add (optional) content param and attribute

public static

async createNotes(notes: Array): Promise

Create multiple notes

public static

async getNote(id: number | string): Note

Returns a note, specified by the caller by id

Static Public Methods

public static async createNote(name: String): Note source

Creates a new note with a name TODO: add (optional) content param and attribute

Params:

NameTypeAttributeDescription
name String

name of note

Return:

Note

Note Object

Test:

public static async createNotes(notes: Array): Promise source

Create multiple notes

Params:

NameTypeAttributeDescription
notes Array

Array of note objects with name parameter

Return:

Promise

[description]

Test:

public static async getNote(id: number | string): Note source

Returns a note, specified by the caller by id

Params:

NameTypeAttributeDescription
id number | string

id number of the Note to retrieve

Return:

Note

Note object

Test: