getCourse method
- String courseId
override
Fetches detailed information about a specific course from the catalog.
Returns course details including bilingual names, descriptions, credits, and hours per week.
The courseId should be a course code obtained from the course.id field
of a ScheduleDto.
Throws an Exception if the course details table is not found.
Implementation
@override
Future<CourseDto> getCourse(String courseId) async {
return courseResult ??
(
id: '1416019',
nameZh: 'Python程式設計概論與應用',
nameEn: 'Python Program Design and Application',
credits: 2.0,
hours: 2,
descriptionZh:
'在本課程中,同學將學習到計算機程式語言Python基礎與應用,'
'建立Python程式設計的基本概念。透過做中學、學中做,'
'建構程式設計的基礎,以及基本程式運算邏輯,'
'以培養運算思維、動手做的能力。'
'期末以分組方式完成一個與學生專業領域相關應用的專題,'
'學習如何運用程式解決與自身相關領域運用上的問題。',
descriptionEn:
'In this course, students will learn the basics and applications '
'of the Python programming language and establish the basic '
'concepts of Python programming design. Through the continuous '
'practice, student will construct the basic logic of the program '
'design, and the ability of computation think and practice '
'application. At the final, a topic related to the application '
'of students\' professional subjects will be completed in groups, '
'and student will learn how to use the program to solve problems '
'in the relevant fields.',
);
}