Reference Source
public class | source

SignupModel

Extends:

* → SignupModel

Class for the signup model to be used by the SignupPresenter

Constructor Summary

Public Constructor
public

Creates an instance of SignupModel.

Member Summary

Public Members
public

onErrorCallback(error: string): *

Error callback to call if there is an error.

public

Signout the user

Private Members
private

_data: {"data": *}

Method Summary

Public Methods
public

get(): Object

Return the data from the model.

public

async update(newData: Object)

async method for presenters to know if the username and password is existed in the database

Public Constructors

public constructor() source

Creates an instance of SignupModel.

Public Members

public onErrorCallback(error: string): * source

Error callback to call if there is an error.

public onSuccessSignOut: * source

Signout the user

Private Members

private _data: {"data": *} source

Public Methods

public get(): Object source

Return the data from the model.

Return:

Object

The data stored in the model

public async update(newData: Object) source

async method for presenters to know if the username and password is existed in the database

Params:

NameTypeAttributeDescription
newData Object

data including username and password.