Esempio n. 1
0
def notify_specific_friend(fingr_user, fingr_friend_pk, message_string):
    send_message(fingr_friend_pk, fingr_user, message_string, Message.NOTIFICATION)
Esempio n. 2
0
def message_specific_friend(fingr_user, fingr_friend_pk, message_string):
    send_message(fingr_friend_pk, fingr_user, message_string, Message.MESSAGE)
Esempio n. 3
0
def notify_all_friends(fingr_user, message_string):
    # send message to all friends
    for friend in fingr_user.friends_list:
        send_message(friend, fingr_user, message_string, Message.NOTIFICATION)