Skip to content

Instantly share code, notes, and snippets.

@minhanhhere
Last active April 2, 2016 10:49
Show Gist options
  • Save minhanhhere/8aa335846bce7fdb6e22917e09cbab88 to your computer and use it in GitHub Desktop.
Save minhanhhere/8aa335846bce7fdb6e22917e09cbab88 to your computer and use it in GitHub Desktop.
XHunt New Data Structure
/**
Lưu ý:
- PATH CŨNG CÓ ID (CLIENT GEN RA) CỦA RIÊNG NÓ
- format datetime sử dụng theo dạng 24h
- requireChallenge(default = "") là id của challenge cần phải làm xong (nếu ko có thì gán rỗng).
VD:
+ challengeId2 cần điều kiện là challengeId1 phải làm xong thì requqireChallenge = "challengeId1"
+ challenge nào ko cần điều kiện gì hết thì requqireChallenge = ""
- chỗ isActive: default gán là false
**/
{
"name": "Event name",
"location": "Ho Chi Minh city",
"createTime": "dd-MM-yyyy hh:mm",
"startTime": "dd-MM-yyyy hh:mm",
"endTime": "dd-MM-yyyy hh:mm",
"posterBanner": "https://genknews.vcmedia.vn/zoom/310_200/2016/leona-1458134404214.jpg",
"description": "Xhunt event description",
"isActive": false,
"stages": [
{
"id": "stageId1",
"name": "Stage 1",
"type": "all/decision",
"challenges": [
{
"id": "challengeId1",
"name": "Challenge name",
"avatar": "https://genknews.vcmedia.vn/k:2016/america-civil-war.jpg",
"text": "one plus one is ???",
"image": "https://genknews.vcmedia.vn/zoom/310_200/2016/leona-1458134404214.jpg",
"video": "https://www.youtube.com/watch?v=2pA78TnFvWI",
"answer": "two",
"answerType": "text",
"requireChallenge": "",
"hints": [
{
"text": "That is a hint",
"isImage": false,
"timeShow": 300
},
{
"text": "https://genknews.vcmedia.vn/k:2016/america-civil-war.jpg",
"isImage": true,
"timeShow": 600
}
]
},
{
"id": "challengeId2",
"name": "Challenge name",
"avatar": "https://genknews.vcmedia.vn/k:2016/america-civil-war.jpg",
"text": "one plus one is ???",
"image": "https://genknews.vcmedia.vn/zoom/310_200/2016/leona-1458134404214.jpg",
"video": "https://www.youtube.com/watch?v=2pA78TnFvWI",
"answer": "two",
"answerType": "text",
"requireChallenge": "challengeId1",
"hints": [
{
"text": "That is a hint",
"isImage": false,
"timeShow": 300
},
{
"text": "https://genknews.vcmedia.vn/k:2016/america-civil-war.jpg",
"isImage": true,
"timeShow": 600
}
]
}
]
}
],
"levels": [
{
"paths": [
{
"id": "pathId1",
"stages": [ "stageId1", "stageId2" ]
},
{
"id": "pathId2",
"stages": [ "stageId3", "stageId4" ]
}
]
},
{
"paths": [
{
"id": "pathId3",
"stages": [ "stageId1", "stageId2" ]
},
{
"id": "pathId4",
"stages": [ "stageId7", "stageId8" ]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment