Last active
November 4, 2020 07:24
-
-
Save mehrab-haque/bdd84a3637686e00345761925e94a2b7 to your computer and use it in GitHub Desktop.
Problem Setter Console DS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| //mandatory | |
| uid:"setter_user_id", | |
| draft:false, | |
| timestamp: 158121845121, //in milliseconds | |
| title:"title", | |
| logo:"logo", | |
| grade:3, | |
| difficulty:1, //1=>easy, 2=>medium, 3=>hard | |
| language:1, //1=>english, 2=>bengali | |
| cat:"category", | |
| statement:"statement markdown", | |
| interactiveType:1, //1=>none, 2=>exclusion grid | |
| ansType:1, //1=>mcq, 2=>text, 3=>interactive | |
| explanation:"explanation markdown" | |
| //optional | |
| description:"description markdown", | |
| restrictions:[ | |
| "restriction 1", | |
| "restriction 2" | |
| ], | |
| tags:[ | |
| "tag 1", | |
| "tag 2" | |
| ], | |
| //if interactiveType>1 | |
| questionnaire:"JSON as string", | |
| /* | |
| if interactiveType==2, | |
| JSON structure: | |
| { | |
| rows:["heading-1","heading-2"], | |
| cols:["heading-1","heading-2"], | |
| data:[ | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ], | |
| state:[ | |
| [true,true,true,true], | |
| [true,true,true,true], | |
| [true,true,true,true], | |
| [true,true,true,true] | |
| ] | |
| } | |
| */ | |
| //if ansType==1 | |
| options:[ | |
| "option 1", | |
| "option 2" | |
| ], | |
| answer:2, //index starts from 1 | |
| //if ansType==2 | |
| answer:[ | |
| "answer 1", | |
| "answer 2", | |
| "answer 3" | |
| ] | |
| //if ansType==3 && interactiveType==2 | |
| answer:"JSON as string" | |
| /* | |
| JSON structure : | |
| JSON structure: | |
| { | |
| rows:["heading-1","heading-2"], | |
| cols:["heading-1","heading-2"], | |
| data:[ | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ["link 1","link 2"], | |
| ], | |
| state:[ | |
| [true,true,true,true], | |
| [true,true,true,true], | |
| [true,true,true,true], | |
| [true,true,true,true] | |
| ] | |
| } | |
| */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment