예제 #1
0
 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,
         }
예제 #2
0
 def remove(self, party_id, track_uri):
     party.Party(party_id).remove(track_uri)
예제 #3
0
 def vote(self, party_id, user_id, track_uri):
     party.Party(party_id).vote(user_id, track_uri)
     return None
예제 #4
0
 def pop(self, party_id):
     party.Party(party_id).pop_track()
     return None