Firebase授权模型从dataSnapshot获取所有数据

时间:2016-12-03 12:04:18

标签: android firebase firebase-realtime-database

enter image description here

"SubjectList" : {
"10MAT31" : {
  "examMarks" : "100",
  "iaMarks" : "25",
  "name" : "Engineering Mathematics - III",
  "partA" : {
    "part" : "Part A",
    "units" : {
      "unit1" : {
        "topics" : {
          "topic1" : "Curve fitting by the method of least squares- Fitting of curves of the form \\(y=ax+b\\), \\(y=ax^2+bx+c\\), \\(y=ae^{bx}\\).",
          "topic2" : "Optimization: Linear programming, mathematical formulation of linear programming problem (LPP), Graphical method and simplex method."
        },
        "unit" : "Unit 1",
        "unitHours" : "7",
        "unitName" : "FOURIER SERIES"
      }
    }
  },
  "partB" : {
    "part" : "Part B",
    "units" : {
      "unit5" : {
        "topics" : {
          "topic1" : "Convergence and divergence of infinite series of positive terms, definition and illustrative examples*.",
          "topic2" : "Periodic functions, Dirichlet's conditions, Fourier series of periodic functions of period 2π and arbitrary period, half range Fourier series.",
          "topic3" : "Complex form of Fourier Series.",
          "topic4" : "Practical harmonic analysis."
        },
        "unit" : "Unit 5",
        "unitHours" : 6,
        "unitName" : "FOURIER TRANSFORMS"
      }
    }
  },
  "subjectCode" : "10MAT31"
}

}

如果我向valueEventListener节点添加SubjectList,我如何建模我的课程以获取dataSnapshot的所有详细信息?或者,FirebaseRecyclerAdapter如何用于在RecyclerView中显示数据。任何帮助深表感谢。提前谢谢!

0 个答案:

没有答案