def getAllUsers(): if request.method == 'POST': print("REQUEST", request.json) return UsersHandler().insertCredentialsJSON(request.json) else: if request.args: return UsersHandler.getAllUsers(request.args) else: handler = UsersHandler() return handler.getAllUsers()
def getAllUsers(): return UsersHandler().getAllUsers()
def getContactsOfUser(uid): return UsersHandler().getContactsOfUser(uid)
def getGroupChatByUserId(uid): return UsersHandler().getGroupChatbyUserId(uid)
def registerUser(): if request.method == 'POST': return UsersHandler().registerUser(request.json)
def loginUser(): if request.method == 'POST': return UsersHandler().loginUser(request.json)
def getUserInformationByUsername(username): return UsersHandler().getUserInformationByUsername(username)
def getUserInformationById(uid): return UsersHandler().getUserInformationById(uid)
def getUserByDescription(udescription): return UsersHandler().getUserByDescription(udescription)
def getUserByPhone(phone): return UsersHandler().getUserByPhone(phone)
def getUserByLastname(lastname): return UsersHandler().getUserByLastname(lastname)
def getUserByName(name): return UsersHandler().getUserByName(name)
def getUserById(uid): return UsersHandler().getUserById(uid)
def getUsersMessages(): if request.args: return UsersHandler.getUserMessages(request.args) else: return UsersHandler().getUserMessages()
def getUserGroups(uid): return UsersHandler().getUserGroupsByUserId(uid)