Пример #1
0
        internal static University FromJson(VkResponse response)
        {
            var university = new University();

            university.Id          = response["id"];
            university.Country     = response["country"];
            university.City        = response["city"];
            university.Name        = response["name"] ?? response["title"];
            university.Faculty     = response["faculty"];
            university.FacultyName = response["faculty_name"];
            university.Chair       = response["chair"];
            university.ChairName   = response["chair_name"];
            university.Graduation  = response["graduation"];

            // установлено экcпериментальным путем
            university.EducationForm   = response["education_form"];
            university.EducationStatus = response["education_status"];

            return(university);
        }
Пример #2
0
        internal static University FromJson(VkResponse response)
        {
            var university = new University();

            university.Id = response["id"];
            university.Country = response["country"];
            university.City = response["city"];
            university.Name = response["name"] ?? response["title"];
            university.Faculty = response["faculty"];
            university.FacultyName = response["faculty_name"];
            university.Chair = response["chair"];
            university.ChairName = response["chair_name"];
            university.Graduation = response["graduation"];

            // установлено экcпериментальным путем
            university.EducationForm = response["education_form"];
            university.EducationStatus = response["education_status"];

            return university;
        }
Пример #3
0
			public FacultyViewModel(University university, Faculty faculty)
			{
				University = university;
				Faculty = faculty;
			}
Пример #4
0
			public UniversityViewModel(University university)
			{
				University = university;
			}
Пример #5
0
		private IEnumerable<Faculty> GetFaculties(University university)
		{
			return Helper.GetFaculties(Convert.ToInt32(university.Id));
		}