IPublicProfileService 接口
- 程序集
- ClassIsland.Shared.IPC.dll
向其它进程公开的档案服务,用于管理ClassIsland档案信息。
[IpcPublic(IgnoresIpcException = true)]
public interface IPublicProfileService
属性
CurrentProfilePath
当前加载的档案文件名
string CurrentProfilePath { get; set; }
属性值
IsCurrentProfileTrusted
当前档案是否为信任档案。
bool IsCurrentProfileTrusted { get; }
属性值
Profile
当前加载的档案
Profile Profile { get; set; }
属性值
方法
ClearTempClassPlan()
清空临时层课表
void ClearTempClassPlan()
ClearTempClassPlanGroup()
清除当前的临时课表组。
void ClearTempClassPlanGroup()
ConvertToStdClassPlan()
将当前临时层课表转换为普通课表。
void ConvertToStdClassPlan()
ConvertToStdClassPlan(string)
将指定临时层课表转换为普通课表。
void ConvertToStdClassPlan(string id)
参数
id
string要转换的课表 GUID
CreateTempClassPlan(string, string?, DateTime?)
创建临时层课表。如果已经存在临时层课表,则本方法不起作用。
string? CreateTempClassPlan(string id, string? timeLayoutId = null, DateTime? enableDateTime = null)
参数
返回
- string
如果创建成功,则返回临时层课表的ID,否则返回null。
SaveProfile()
保存档案到当前的档案。
void SaveProfile()
SaveProfile(string)
将档案保存到指定的文件。
void SaveProfile(string filename)
参数
filename
string文件名
SetupTempClassPlanGroup(string, DateTime?)
设置临时课表组。
void SetupTempClassPlanGroup(string key, DateTime? expireTime = null)