Room

Summary

The Room model represents a room on plug.

Model

{
   "booth": Booth,
   "grabs": [],
   "meta": Meta,
   "playback": Playback,
   "role": -1,
   "users": [],
   "votes": []
}

Detail

booth

Booth of the room.

Type: Booth
Default Value: see Booth model

grabs

All users that grabbed the current media. With String being the user ID and Number the grab.

Hint

the grab value is always one, this will not change, not matter how often people grab a single song.

Type: [Number]
Default Value: []

meta

Metadata of room.

Type: Meta
Default Value: see Meta model

meta

Playback info of room.

Type: Playback
Default Value: see Playback model

role

Your role in the room.

Type: Number
Default Value: -1

users

List of all listeners.

Type: [User]
Default Value: []

votes

listener votes. String being the user ID and Number the Vote.

Note

The vote is represent by two numbers, -1 and 1, with 1 being woot and -1 meh

Type: [Vote]
Default Value: []