mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 00:54:26 +08:00
20 lines
700 B
C#
20 lines
700 B
C#
using System;
|
|
using LanMountainDesktop.Models;
|
|
|
|
namespace LanMountainDesktop.Services;
|
|
|
|
public interface IWhiteboardNotePersistenceService
|
|
{
|
|
WhiteboardNoteSnapshot LoadNote(string componentId, string? placementId, int retentionDays);
|
|
|
|
void SaveNote(string componentId, string? placementId, WhiteboardNoteSnapshot snapshot, int retentionDays);
|
|
|
|
bool DeleteNote(string componentId, string? placementId);
|
|
|
|
bool TryDeleteExpiredNote(string componentId, string? placementId, int retentionDays);
|
|
|
|
bool IsExpired(WhiteboardNoteSnapshot snapshot, int retentionDays, DateTimeOffset? now = null);
|
|
|
|
DateTimeOffset? GetExpirationUtc(WhiteboardNoteSnapshot snapshot, int retentionDays);
|
|
}
|