我具有以下结构,我需要创建一个包含很多部分的表格,并且其中包含许多类别和类别内的问题。
如何在Xamarin中创建结构,如:
Section -1 + Category-1- Questions 1 Answers: Y/N Questions n Answers: Y/N Category-2- Questions Answers: Y/N Section -2 Section -3 -.... -Section-n Category-n- Questions n Answers: Y/N Questions n Answers: Y/N Category -n- Questions n Answers: Y/N
示例:
Structure:
"sections": [
{
"sectionID": "string",
"sectionName": "string",
"startDateSection": "2019-10-04T19:23:23.478Z",
"categories": [
{
"categoryID": "string",
"categoryName": "string",
"questions": [
{
"questionID": "string",
"description": "string",
"mandatory": true,
"answers": [
{
"answerID": "string",
"answer": "string",
"dateInserted": "2019-10-04T19:23:23.479Z",
"dateModified": "2019-10-04T19:23:23.479Z",
"questionID": "string",
"startDateQuestion": "2019-10-04T19:23:23.479Z",
"inspectionsID": "string",
"medias": [
{
"fileAddress": "string",
"dateInserted": "2019-10-04T19:23:23.479Z",
"answerID": "string"
}
],
}
]
}
]
}
]