def queue(self, party_id, version=None): result = party.Party(party_id).get_queue(version) if result: queue, version = result return { 'queue': queue, 'version': version, }
def remove(self, party_id, track_uri): party.Party(party_id).remove(track_uri)
def vote(self, party_id, user_id, track_uri): party.Party(party_id).vote(user_id, track_uri) return None
def pop(self, party_id): party.Party(party_id).pop_track() return None