Firebase Helper
class FirebaseHelper
Content copied to clipboard
Class containing helper attributes and methods for accessing Firebase.
Constructors
FirebaseHelper
Link copied to clipboard
Creates a FirebaseHelper object given the context with which the database is accessed.
FirebaseHelper
Link copied to clipboard
fun FirebaseHelper(context: Context, postId: String?, userIdPost: String?)
Content copied to clipboard
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.
FirebaseHelper
Link copied to clipboard
Creates a FirebaseHelper object given the context with which the database is accessed and a unique identifier of a database document.
Properties
Functions
deleteCommentDB
Link copied to clipboard
deleteCommentFromPostDB
Link copied to clipboard
deletePostANDUserFollowedFromUsersDB
Link copied to clipboard
fun deletePostANDUserFollowedFromUsersDB(postId: String, delUserFF: Boolean)
Content copied to clipboard
deletePostDB
Link copied to clipboard
deleteUser
Link copied to clipboard
editComment
Link copied to clipboard
updateBookmarkDB
Link copied to clipboard
fun updateBookmarkDB(userVal: String?, postKey: String?, postVal: String?)
Content copied to clipboard
updateCommentFromPostDB
Link copied to clipboard
fun updateCommentFromPostDB(postId: String, commentKey: String?, commentVal: String?, numComments: Int)
Content copied to clipboard
updateHighlightDB
Link copied to clipboard
updateUpvoteDB
Link copied to clipboard
fun updateUpvoteDB(userVal: String?, postKey: String?, postVal: String?, numUpvotes: Int)
Content copied to clipboard
updateUserPostDB
Link copied to clipboard
updateUsersFollowedDB
Link copied to clipboard