Class

UserProvider

UserProvider()

UserContext Component

-this is state management component

Constructor

# new UserProvider()

this contains all the state and methods to change the state,

View Source context/UserContext.js, line 29

Extends

  • Component

Methods

# async filterReportByTime() → {undefined}

filter reports by hashtag

filterReportByTime

View Source context/UserContext.js, line 473

void

undefined

# async initializeReports() → {undefined}

pull reports from database when open the app

initializeReports

View Source context/UserContext.js, line 194

void

undefined

# async initializeSettings() → {undefined}

pull default settings from database

initializeSettings

View Source context/UserContext.js, line 177

void

undefined

# async onHashtagsChange() → {undefined}

update hashtags in the setting

onHashtagsChange

View Source context/UserContext.js, line 244

void

undefined

# async onMessageChange() → {undefined}

update botMsg when user makes a change

onMessageChange

View Source context/UserContext.js, line 210

void

undefined

# async onResolved() → {undefined}

mark a report as resolved

onResolved

View Source context/UserContext.js, line 290

void

undefined

# async onResolvedMessageChange() → {undefined}

update resolvedMsg in the database

onResolvedMessageChange

View Source context/UserContext.js, line 227

void

undefined

# async onSave() → {undefined}

save modified settings and update database

onSave

View Source context/UserContext.js, line 313

void

undefined

# onSessionHashtagsChange() → {undefined}

show results for added hashtag immediately

onSessionHashtagsChange

View Source context/UserContext.js, line 434

void

undefined

# async onSpamClick() → {undefined}

mark a report as spam

onSpamClick

View Source context/UserContext.js, line 267

void

undefined

# onTagAdd() → {undefined}

add a tag and update database

onTagAdd

View Source context/UserContext.js, line 382

void

undefined

# onTagDelete() → {undefined}

delete a tag and update database

onTagDelete

View Source context/UserContext.js, line 361

void

undefined

# onTagDisable() → {undefined}

disable a tag

onTagDisable

View Source context/UserContext.js, line 330

void

undefined

# onTagEnable() → {undefined}

enable a tag

onTagEnable

View Source context/UserContext.js, line 403

void

undefined

# async pollTwitter() → {string}

poll twits from twitter every 5 seconds

pollTwitter

View Source context/UserContext.js, line 143

id - twit

string