app / sg.edu.ntu.scse.cz2006.gymbuddies.tasks / UpdateFirebaseFirestoreDocument

UpdateFirebaseFirestoreDocument

class UpdateFirebaseFirestoreDocument : AsyncTask<Void, Void, Boolean>

This task handles updating of Firebase Firestore DB user document object in the background For sg.edu.ntu.scse.cz2006.gymbuddies.tasks in Gym Buddies!

Author
Kenneth Soh

Since
2019-09-16

Types

Callback

Internal interface to handle callbacks

interface Callback

Constructors

<init>

Initializees the task to execute

UpdateFirebaseFirestoreDocument(docRef: DocumentReference, userObj: User, callback: Callback)

Properties

callback

Callback Callback to call when task completes

var callback: Callback

docRef

DocumentReference Document reference in the Firebase Firestore DB

var docRef: DocumentReference

userObj

User User object to update

var userObj: User

Functions

doInBackground

Internal task to execute in the background on a seperate thread

fun doInBackground(vararg p0: Void?): Boolean

onPostExecute

Function executed after the task completes with the result of the task

fun onPostExecute(result: Boolean): Unit

Companion Object Properties

TAG

Activity Tag for logs

const val TAG: String