Esempio n. 1
0
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)
Esempio n. 9
0
def getUserByDescription(udescription):
    return UsersHandler().getUserByDescription(udescription)
Esempio n. 10
0
def getUserByPhone(phone):
    return UsersHandler().getUserByPhone(phone)
Esempio n. 11
0
def getUserByLastname(lastname):
    return UsersHandler().getUserByLastname(lastname)
Esempio n. 12
0
def getUserByName(name):
    return UsersHandler().getUserByName(name)
Esempio n. 13
0
def getUserById(uid):
    return UsersHandler().getUserById(uid)
Esempio n. 14
0
def getUsersMessages():
    if request.args:
        return UsersHandler.getUserMessages(request.args)
    else:
        return UsersHandler().getUserMessages()
Esempio n. 15
0
def getUserGroups(uid):
    return UsersHandler().getUserGroupsByUserId(uid)