Table of Contents

ILessonsService 接口

命名空间
ClassIsland.Core.Abstractions.Services
程序集
ClassIsland.Core.dll

课程服务,用于存储当前课表状态与信息。

public interface ILessonsService : INotifyPropertyChanged, INotifyPropertyChanging, IPublicLessonsService
继承成员

方法

GetClassPlanByDate(DateTime, out string?)

根据日期获取当天的课表ClassPlan。如果那天没有课表安排,则返回 null

ClassPlan? GetClassPlanByDate(DateTime date, out string? guid)

参数

date DateTime

要获取课表的日期

guid string

获取到的课表的 GUID

返回

ClassPlan

获取到的课表

RefreshMultiWeekRotation()

刷新多周轮换周数。

void RefreshMultiWeekRotation()

StartMainTimer()

启动主计时器。

void StartMainTimer()

StopMainTimer()

停止主计时器。

void StopMainTimer()

事件

CurrentTimeStateChanged

当当前时间状态改变时触发。

event EventHandler? CurrentTimeStateChanged

事件类型

EventHandler

OnAfterSchool

当放学时触发。

event EventHandler? OnAfterSchool

事件类型

EventHandler

OnBreakingTime

当课间休息时触发。

event EventHandler? OnBreakingTime

事件类型

EventHandler

OnClass

当上课时触发。

event EventHandler? OnClass

事件类型

EventHandler

PostMainTimerTicked

在主计时器完成处理课表信息后触发。

event EventHandler? PostMainTimerTicked

事件类型

EventHandler

PreMainTimerTicked

在主计时器开始处理课表信息前触发。

event EventHandler? PreMainTimerTicked

事件类型

EventHandler