jam-cloud/spec/javascripts/helpers/test_getSessionResponses.js

120 lines
3.5 KiB
JavaScript

window.TestGetSessionResponses = {
oneOfEach: [
// Session 1 - you're invited to this.
{
"id": "1",
"description": "Invited",
"musician_access": true,
"genres" : [ "classical" ],
"participants": [
{
"client_id": "0f8f7987-29a0-4e5d-a60c-6b23103e3533",
"ip_address":"1.1.1.1",
"user_id" : "02303020402042040",
"tracks" : [
{
"id" : "xxxx",
"instrument_id" : "electric guitar",
"sound" : "mono"
}
]
}
],
"invitations" : [
{
"id" : "3948797598275987",
"sender_id" : "02303020402042040"
}
]
},
// Session 2 - no invite, but friend #1 (good latency)
{
"id": "2",
"description": "Friends 1",
"musician_access": true,
"genres" : [ "blues" ],
"participants": [
{
"client_id": "0f8f7987-29a0-4e5d-a60c-6b23103e3533",
"ip_address":"1.1.1.1",
"user_id" : "02303020402042040",
"tracks" : [
{
"id" : "xxxx",
"instrument_id" : "electric guitar",
"sound" : "mono"
}
]
}
]
},
// Session 3 - no invite, but friend #2 (med latency)
{
"id": "3",
"description": "Friends 2",
"musician_access": true,
"genres" : [ "blues" ],
"participants": [
{
"client_id": "0f8f7987-29a0-4e5d-a60c-6b23103e3533",
"ip_address":"1.1.1.1",
"user_id" : "02303020402042040",
"tracks" : [
{
"id" : "xxxx",
"instrument_id" : "electric guitar",
"sound" : "mono"
}
]
}
]
},
// Session 4 - no invite, no friends 1
{
"id": "4",
"description": "Anonymous 1",
"musician_access": true,
"genres" : [ "blues" ],
"participants": [
{
"client_id": "0f8f7987-29a0-4e5d-a60c-6b23103e3533",
"ip_address":"1.1.1.1",
"tracks" : [
{
"id" : "xxxx",
"instrument_id" : "electric guitar",
"sound" : "mono"
}
]
}
]
},
// Session 5 - no invite, no friends 2
{
"id": "5",
"description": "Anonymous 2",
"musician_access": true,
"genres" : [ "blues" ],
"participants": [
{
"client_id": "0f8f7987-29a0-4e5d-a60c-6b23103e3533",
"ip_address":"1.1.1.1",
"tracks" : [
{
"id" : "xxxx",
"instrument_id" : "electric guitar",
"sound" : "mono"
}
]
}
]
}
]
};