Skip to content

Commit

Permalink
Add model for episode notes
Browse files Browse the repository at this point in the history
  • Loading branch information
aetherstrata committed Feb 15, 2024
1 parent f5c3a2c commit 633b5de
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Aosta.Data/Models/EpisodeNote.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Davide Pierotti <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using Realms;

namespace Aosta.Data.Models;

public partial class EpisodeNote : IEmbeddedObject
{
public TimeSpan PointInTime
{
get => TimeSpan.FromTicks(pointInTime);
set => pointInTime = value.Ticks;
}

public string Note { get; set; }

[Indexed]
[MapTo(nameof(PointInTime))]
private long pointInTime { get; set; }
}

0 comments on commit 633b5de

Please sign in to comment.