2020-01-16 16:25:40 +01:00
|
|
|
import {mockComments} from "./mock-comments";
|
|
|
|
|
2020-01-15 17:55:22 +01:00
|
|
|
export const mockPoll3 = {
|
|
|
|
"message": "your poll config",
|
|
|
|
"data": {
|
|
|
|
"id": 3,
|
|
|
|
"title": "dessin animé préféré",
|
|
|
|
"customUrl": null,
|
|
|
|
"description": "choisissez votre animé préféré",
|
|
|
|
"creationDate": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"expiracyDate": {
|
2020-01-16 16:38:06 +01:00
|
|
|
"date": "2020-03-17 15:07:53.000000",
|
2020-01-15 17:55:22 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"__initializer__": {},
|
|
|
|
"__cloner__": {},
|
|
|
|
"__isInitialized__": false
|
|
|
|
},
|
|
|
|
"kind": "text",
|
|
|
|
"allowedAnswers": [
|
|
|
|
"yes"
|
|
|
|
],
|
|
|
|
"modificationPolicy": "self",
|
|
|
|
"mailOnComment": null,
|
|
|
|
"mailOnVote": null,
|
|
|
|
"hideResults": null,
|
|
|
|
"showResultEvenIfPasswords": null,
|
|
|
|
"votes": {},
|
|
|
|
"stacksOfVotes": {},
|
|
|
|
"choices": {},
|
|
|
|
"comments": {},
|
|
|
|
"defaultExpiracyDaysFromNow": 60
|
|
|
|
},
|
2020-01-16 16:25:40 +01:00
|
|
|
"stacks_count": 4,
|
2020-01-15 17:55:22 +01:00
|
|
|
"stacks": [
|
|
|
|
{
|
|
|
|
"pseudo": "Wulfila",
|
2020-01-16 16:25:40 +01:00
|
|
|
"votes": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"answer": "yes",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 6,
|
|
|
|
"answer": "maybe",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 7,
|
|
|
|
"answer": "no",
|
|
|
|
},
|
|
|
|
]
|
2020-01-15 17:55:22 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"pseudo": "Tykayn",
|
2020-01-16 16:25:40 +01:00
|
|
|
"votes": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"answer": "yes",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 8,
|
|
|
|
"answer": "maybe",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 9,
|
|
|
|
"answer": "no",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pseudo": "CopyCat",
|
|
|
|
"votes": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"answer": "yes",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 8,
|
|
|
|
"answer": "maybe",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 9,
|
|
|
|
"answer": "no",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pseudo": "Marylin",
|
|
|
|
"votes": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"answer": "yes",
|
|
|
|
}
|
|
|
|
]
|
2020-01-15 17:55:22 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"choices_count": 7,
|
|
|
|
"choices": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"name": "Vic le viking",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 6,
|
|
|
|
"name": "Boumbo petite automobile",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 7,
|
|
|
|
"name": "Les mystérieuses cités d'or",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 8,
|
|
|
|
"name": "Les mondes engloutis",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 9,
|
|
|
|
"name": "Foot 2 rue",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 10,
|
|
|
|
"name": "Le chat, la vache, et l'océan",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 11,
|
|
|
|
"name": "Digimon",
|
|
|
|
"dateTime": {
|
|
|
|
"date": "2020-01-15 15:07:53.000000",
|
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Paris"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"count": {
|
|
|
|
"yes": 0,
|
|
|
|
"no": 0,
|
|
|
|
"maybe": 0,
|
|
|
|
"null": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
simpleAnswer: true,
|
|
|
|
"answer": null
|
|
|
|
}
|
|
|
|
],
|
2020-01-16 16:25:40 +01:00
|
|
|
"comments": mockComments
|
2020-01-15 17:55:22 +01:00
|
|
|
}
|