Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary<string, Array<File>> grade = new Dictionary<string, Array>();
- Dictionary<string, Array> grade_subject = new Dictionary<string, Array>();
- Dictionary<string, Array> grade_subject_topic = new Dictionary<string, Array>();
- Dictionary<string, Array> grade_subject_topic_subtopic = new Dictionary<string, Array>();
- public void Add(EcsFeature ecsFeature)
- {
- _systemsBody.Add(ecsFeature);
- object fileList;
- foreach (object file in fileList)
- {
- parseGrade(file);
- parseGradeSubject(file);
- parseGradeSubjectTopic(file);
- parseGradeSubjectTopicSubtopic(file);
- }
- }
- void parseGrade(object file)
- {
- object[] list;
- if (grade.ContainsKey(file.gradeId) == false)
- {
- grade.Add(file.gradeId, array = new Array());
- }
- array.add(videoFile);
- }
- void parseGradeSubject(object file)
- {
- string gradeSubject = file.gradeId + file.subjectId;
- if (grade.ContainsKey(gradeSubject) == false)
- {
- grade_subject.Add(gradeSubject, array = new Array());
- }
- array.add(videoFile);
- }
- void parseGradeSubjectTopic(object file)
- {
- string gradeSubjectTopic = file.gradeId + file.subjectId + file.topicId;
- if (grade.ContainsKey(file.gradeSubjectTopic) == false)
- {
- grade_subject.Add(gradeSubjectTopic, array = new Array());
- }
- array.add(videoFile);
- }
- void parseGradeSubjectTopicSubtopic(object file)
- {
- string gradeSubjectTopicSub = file.gradeId + file.subjectId + file.topicId + file.subTopicId;
- if (grade.ContainsKey(file.gradeSubjectTopicSub) == false)
- {
- grade_subject.Add(gradeSubjectTopicSub, array = new Array());
- }
- array.add(videoFile);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement