Table of Contents

TimeLayoutItem 类

命名空间
ClassIsland.Shared.Models.Profile
程序集
ClassIsland.Shared.dll

代表一个TimeLayout中的时间点。

public class TimeLayoutItem : AttachableSettingsObject, INotifyPropertyChanged, INotifyPropertyChanging, IComparable
继承
TimeLayoutItem
实现
继承成员

字段

Empty

代表一个空时间点。

public static readonly TimeLayoutItem Empty

字段值

TimeLayoutItem

属性

ActionSet

当当前时间点为【行动】时,要执行的行动组

public ActionSet? ActionSet { get; set; }

属性值

ActionSet

BreakName

自定义课间名称,可能为空。通过 BreakNameText 获取实际显示的课间名称。

public string BreakName { get; set; }

属性值

string

BreakNameText

课间名称。

[JsonIgnore]
public string BreakNameText { get; }

属性值

string

DefaultClassId

默认科目ID

[JsonConverter(typeof(GuidEmptyFallbackConverter))]
public Guid DefaultClassId { get; set; }

属性值

Guid

EndSecond

时间段在一天中结束的秒钟数

[Obsolete("请使用 EndTime 属性。", true)]
public string EndSecond { get; set; }

属性值

string

EndTime

时间点在一天中结束的时间

public TimeSpan EndTime { get; set; }

属性值

TimeSpan

IsHideDefault

是否默认隐藏

public bool IsHideDefault { get; set; }

属性值

bool

Last

时间点持续时间

[JsonIgnore]
public TimeSpan Last { get; }

属性值

TimeSpan

StartSecond

时间段在一天中开始的秒钟数

[Obsolete("请使用 StartTime 属性。", true)]
public string StartSecond { get; set; }

属性值

string

StartTime

时间点在一天中开始的时间

public TimeSpan StartTime { get; set; }

属性值

TimeSpan

TimeType

时间点类型

public int TimeType { get; set; }

属性值

int

0 - 上课
1 - 课间
2 - 分割线
3 - 行动

方法

CompareTo(object?)

与另一个TimeLayoutItem比较

public int CompareTo(object? obj)

参数

obj object

要比较的对象

返回

int

ToString()

Returns a string that represents the current object.

public override string ToString()

返回

string

A string that represents the current object.