FirebaseHelper

fun FirebaseHelper(context: Context)

Parameters

context

Context with which the database is accessed.

fun FirebaseHelper(context: Context, postId: String?, userIdPost: String?)

Creates a FirebaseHelper object given the context with which the database is accessed, the unique identifier of a post, and the unique identifier of the user who posted it.

Parameters

context

Context with which the database is accessed.

postId

Unique identifier of a post.

userIdPost

Unique identifier of the user who posted the post.

fun FirebaseHelper(context: Context, Id: String?)

Creates a FirebaseHelper object given the context with which the database is accessed and a unique identifier of a database document.

Parameters

context

Context with which the database is accessed.

Id

Unique identifier of a database document.