import ReportLostPresenter from 'PedalPatrol/src/components/presenters/reportlost-presenter.js'
ReportLostPresenter
Extends:
Class for the Reportlost presenter and view
Constructor Summary
Public Constructor | ||
public |
constructor(view: Object) Creates an instance of ReportlostPresenter |
Member Summary
Public Members | ||
public |
Gets the data from the model and returns it to the caller. |
|
public |
getNotStolen(data: List): List: * Returns the list of bikes that have not already been stolen. |
|
public |
onDestroy: * If the view or presenter is destroyed, unsubscribe the presenter from the model. |
|
public |
Called when the model is updated with new data. |
|
public |
Updates the bike model with new data. |
|
public |
view: * |
Public Constructors
Public Members
public getNotStolen(data: List): List: * source
Returns the list of bikes that have not already been stolen.
Return:
List | A list of bikes that have not been stolen. |
public onDestroy: * source
If the view or presenter is destroyed, unsubscribe the presenter from the model.
public onUpdated(newData: Object): * source
Called when the model is updated with new data. Refreshes the state of the view. Method is supplied with the data to add. Better way to refresh the state?