-
-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathAppointment.cs
More file actions
28 lines (21 loc) · 782 Bytes
/
Appointment.cs
File metadata and controls
28 lines (21 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using JetBrains.Annotations;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Resources.Annotations;
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.QueryStrings")]
public sealed class Appointment : Identifiable<int>
{
[Attr]
public string Title { get; set; } = null!;
[Attr]
public string? Description { get; set; }
[Attr]
public DateTimeOffset StartTime { get; set; }
[Attr]
public DateTimeOffset EndTime { get; set; }
[HasOne]
public Calendar? Calendar { get; set; }
[HasMany(DisablePagination = true)]
public IList<Reminder> Reminders { get; set; } = new List<Reminder>();
}