mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
0.2.8
天气组件、倒计时组件微调。引入浏览器组件。
This commit is contained in:
48
LanMontainDesktop/Services/IStudyAnalyticsService.cs
Normal file
48
LanMontainDesktop/Services/IStudyAnalyticsService.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using LanMontainDesktop.Models;
|
||||
|
||||
namespace LanMontainDesktop.Services;
|
||||
|
||||
public sealed class StudyAnalyticsSnapshotChangedEventArgs(StudyAnalyticsSnapshot snapshot) : EventArgs
|
||||
{
|
||||
public StudyAnalyticsSnapshot Snapshot { get; } = snapshot;
|
||||
}
|
||||
|
||||
public sealed class NoiseSliceClosedEventArgs(NoiseSliceSummary slice) : EventArgs
|
||||
{
|
||||
public NoiseSliceSummary Slice { get; } = slice;
|
||||
}
|
||||
|
||||
public sealed class StudySessionCompletedEventArgs(StudySessionReport report) : EventArgs
|
||||
{
|
||||
public StudySessionReport Report { get; } = report;
|
||||
}
|
||||
|
||||
public interface IStudyAnalyticsService : IDisposable
|
||||
{
|
||||
StudyAnalyticsSnapshot GetSnapshot();
|
||||
|
||||
StudyAnalyticsConfig GetConfig();
|
||||
|
||||
void UpdateConfig(StudyAnalyticsConfig config);
|
||||
|
||||
bool StartOrResumeMonitoring();
|
||||
|
||||
bool PauseMonitoring();
|
||||
|
||||
bool StopMonitoring();
|
||||
|
||||
bool StartStudySession(StudySessionOptions? options = null);
|
||||
|
||||
bool StopStudySession();
|
||||
|
||||
bool CancelStudySession();
|
||||
|
||||
void ClearLastSessionReport();
|
||||
|
||||
event EventHandler<StudyAnalyticsSnapshotChangedEventArgs>? SnapshotUpdated;
|
||||
|
||||
event EventHandler<NoiseSliceClosedEventArgs>? SliceClosed;
|
||||
|
||||
event EventHandler<StudySessionCompletedEventArgs>? SessionCompleted;
|
||||
}
|
||||
Reference in New Issue
Block a user