ExamClassResult.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using TEAMModelOS.SDK.Context.Attributes.Azure;
  6. using TEAMModelOS.SDK.DI;
  7. namespace TEAMModelFunction
  8. {
  9. //[CosmosDB(Database = "TEAMModelOS", Name = "Common")]
  10. public class ExamClassResult : ID
  11. {
  12. public ExamClassResult() {
  13. //paper = new PaperSimple();
  14. studentAnswers = new List<List<List<string>>>();
  15. studentScores = new List<List<double>>();
  16. info = new ClassInfo();
  17. studentIds = new List<string>();
  18. studentAnswers = new List<List<List<string>>>();
  19. studentScores = new List<List<double>>();
  20. }
  21. public string pk { get; set; }
  22. [PartitionKey]
  23. public string code { get; set; }
  24. public string school { get; set; }
  25. public string id { get; set; }
  26. public string examId { get; set; }
  27. public string subjectId { get; set; }
  28. public int year { get; set; }
  29. public ClassInfo info { get; set; }
  30. public string progress { get; set; }
  31. //public PaperSimple paper { get; set; }
  32. //public List<double> point { get; set; }
  33. public List<string> studentIds { get; set; }
  34. public List<List<List<string>>> studentAnswers { get; set; }
  35. public List<List<double>> studentScores { get; set; }
  36. public string scope { get; set; }
  37. public int? ttl { get; set; }
  38. }
  39. /* public class PaperSimple {
  40. public string id { get; set; }
  41. public string name { get; set; }
  42. public string code { get; set; }
  43. public string blob { get; set; }
  44. public string scope { get; set; }
  45. }*/
  46. public class ClassInfo {
  47. public string id { get; set; }
  48. public string name { get; set; }
  49. //public string code { get; set; }
  50. }
  51. }