mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
166 lines
3.6 KiB
JSON
166 lines
3.6 KiB
JSON
{
|
||
"owners": [
|
||
{ "id": 1, "email": "titi@gafam.com", "pseudo": "TITI", "role": "REGISTERED" },
|
||
{ "id": 2, "email": "toto@gafam.com", "pseudo": "TOTO", "role": "REGISTERED" }
|
||
],
|
||
"polls": [
|
||
{
|
||
"id": 1,
|
||
"custom_url": "picnic",
|
||
"configuration": {
|
||
"id": 1,
|
||
"isAboutDate": true,
|
||
"isProtectedByPassword": false,
|
||
"isOwnerNotifiedByEmailOnNewVote": false,
|
||
"isOwnerNotifiedByEmailOnNewComment": false,
|
||
"isMaybeAnswerAvailable": true,
|
||
"areResultsPublic": true,
|
||
"dateCreated": "2020-05-17",
|
||
"expires": "2020-12-31"
|
||
},
|
||
"ownerId": 1,
|
||
"title": "Quelle date pour le picnic ?",
|
||
"description": "Gros badass picnic en plein air ! Come on !"
|
||
},
|
||
{
|
||
"id": 2,
|
||
"custom_url": "vacances",
|
||
"configuration": {
|
||
"id": 2,
|
||
"isAboutDate": true,
|
||
"isProtectedByPassword": false,
|
||
"isOwnerNotifiedByEmailOnNewVote": false,
|
||
"isOwnerNotifiedByEmailOnNewComment": false,
|
||
"isMaybeAnswerAvailable": true,
|
||
"areResultsPublic": true,
|
||
"dateCreated": "2020-05-17",
|
||
"expires": "2020-11-30"
|
||
},
|
||
"ownerId": 2,
|
||
"title": "On fait quoi pendant les vacances ?",
|
||
"description": "Vacances en famille"
|
||
}
|
||
],
|
||
"choices": [
|
||
{
|
||
"id": 1,
|
||
"pollId": 1,
|
||
"pollSlug": "picnic",
|
||
"label": "samedi",
|
||
"participants": [
|
||
[
|
||
"YES",
|
||
[
|
||
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
|
||
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
|
||
]
|
||
],
|
||
["NO", []],
|
||
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
|
||
]
|
||
},
|
||
{
|
||
"id": 2,
|
||
"pollId": 1,
|
||
"pollSlug": "picnic",
|
||
"label": "dimanche",
|
||
"participants": [
|
||
[
|
||
"YES",
|
||
[
|
||
{ "pseudo": "TATA", "token": "TATA-TOKEN" },
|
||
{ "pseudo": "TETE", "token": "TETE-TOKEN" }
|
||
]
|
||
],
|
||
["NO", [{ "pseudo": "TOTO", "token": "TOTO-TOKEN" }]],
|
||
["MAYBE", [{ "pseudo": "TITI", "token": "TITI-TOKEN" }]]
|
||
]
|
||
},
|
||
{
|
||
"id": 3,
|
||
"pollId": 2,
|
||
"pollSlug": "vacances",
|
||
"label": "bateau",
|
||
"participants": [
|
||
[
|
||
"YES",
|
||
[
|
||
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
|
||
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
|
||
]
|
||
],
|
||
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
|
||
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
|
||
]
|
||
},
|
||
{
|
||
"id": 4,
|
||
"pollId": 2,
|
||
"pollSlug": "vacances",
|
||
"label": "montagne",
|
||
"participants": [
|
||
[
|
||
"YES",
|
||
[
|
||
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
|
||
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
|
||
]
|
||
],
|
||
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
|
||
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
|
||
]
|
||
},
|
||
{
|
||
"id": 5,
|
||
"pollId": 2,
|
||
"pollSlug": "vacances",
|
||
"label": "quad",
|
||
"participants": [
|
||
[
|
||
"YES",
|
||
[
|
||
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
|
||
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
|
||
]
|
||
],
|
||
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
|
||
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
|
||
]
|
||
}
|
||
],
|
||
"comments": [
|
||
{
|
||
"id": 1,
|
||
"pollId": 1,
|
||
"pollSlug": "picnic",
|
||
"content": "Les picnics, c’est trop bien, j’adore!",
|
||
"author": "TATA",
|
||
"dateCreated": 1589111111111
|
||
},
|
||
{
|
||
"id": 2,
|
||
"pollId": 1,
|
||
"pollSlug": "picnic",
|
||
"content": "Oué, grave!",
|
||
"author": "TETE",
|
||
"dateCreated": 1589222222222
|
||
},
|
||
{
|
||
"id": 3,
|
||
"pollId": 2,
|
||
"pollSlug": "vacances",
|
||
"content": "Désolé je pourrai pas être là, mais je penserai bien à vous. Mamie",
|
||
"author": "MAMIE",
|
||
"dateCreated": 1589333333333
|
||
},
|
||
{
|
||
"id": 4,
|
||
"pollId": 2,
|
||
"pollSlug": "vacances",
|
||
"content": "Arf, trop dommage.",
|
||
"author": "Tom",
|
||
"dateCreated": 1589444444444
|
||
}
|
||
]
|
||
}
|