コード例 #1
0
def organization_follow_ignore(voter_device_id, organization_id=0, organization_we_vote_id=""):
    """
    Save that the voter wants to ignore this org
    :param voter_device_id:
    :param organization_id:
    :return:
    """
    return organization_follow_all(voter_device_id, organization_id, organization_we_vote_id, follow_kind=FOLLOW_IGNORE)
コード例 #2
0
def organization_stop_following(voter_device_id, organization_id):
    """
    Save that the voter wants to stop following this org
    :param voter_device_id:
    :param organization_id:
    :return:
    """
    return organization_follow_all(voter_device_id, organization_id, follow_kind=STOP_FOLLOWING)
コード例 #3
0
def organization_follow(voter_device_id, organization_id):
    """
    Save that the voter wants to follow this org
    :param voter_device_id:
    :param organization_id:
    :return:
    """
    return organization_follow_all(voter_device_id, organization_id, follow_kind=FOLLOWING)
コード例 #4
0
def organization_follow_ignore(voter_device_id,
                               organization_id=0,
                               organization_we_vote_id=''):
    """
    Save that the voter wants to ignore this org
    :param voter_device_id:
    :param organization_id:
    :return:
    """
    return organization_follow_all(voter_device_id,
                                   organization_id,
                                   organization_we_vote_id,
                                   follow_kind=FOLLOW_IGNORE)
コード例 #5
0
def organization_stop_following(voter_device_id,
                                organization_id=0,
                                organization_we_vote_id=''):
    """
    Save that the voter wants to stop following this org
    :param voter_device_id:
    :param organization_id:
    :return:
    """
    return organization_follow_all(voter_device_id,
                                   organization_id,
                                   organization_we_vote_id,
                                   follow_kind=STOP_FOLLOWING)