File

src/modules/firetask/providers/ft-friends.ts

Index

Properties
Methods

Constructor

constructor(events: Events, session: FtSessionProvider, storage: Storage, utils: FtUtilsProvider)
Parameters :
Name Type Optional Description
events Events
session FtSessionProvider
storage Storage
utils FtUtilsProvider

Methods

Public db
db()
Returns : any
Public get
get()

Gets a friendship list

Returns : Promise<any>
Public persists
persists(friends?: any[])

Persists a list of friends on Storage

Parameters :
Name Type Optional Description
friends any[] true
Returns : Promise<any>
Private prepare
prepare(snap: any[])

Prepares the friend list

Parameters :
Name Type Optional Description
snap any[]
Returns : any[]
Public recovery
recovery()

Recover the list of friends from Storage

Returns : Promise<any>
Public ref
ref()
Returns : string
Public relation
relation(friend: any)

New relation with a friend the assignment is stored on db for both users at /users/id/friends/id

Parameters :
Name Type Optional Description
friend any
Returns : Promise<any>
Public remove
remove(friend: any)

Removes a friendship

Parameters :
Name Type Optional Description
friend any
Returns : Promise<any>

Properties

Public events
events: Events
Type : Events
list
list: any[]
Type : any[]
Public session
session: FtSessionProvider
Type : FtSessionProvider
Public storage
storage: Storage
Type : Storage
storageNamespace
storageNamespace: string
Type : string
Default value : firetask:friends
Public utils
utils: FtUtilsProvider
Type : FtUtilsProvider

results matching ""

    No results matching ""