Skip to content

Commit

Permalink
fix: Use OffsetDateTime in response models (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
VMelnalksnis committed Jan 18, 2024
1 parent f7c2319 commit ea59b38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ public sealed class Correspondent

/// <summary>Gets or sets the instant when the last document with the correspondent was created.</summary>
[JsonPropertyName("last_correspondence")]
public Instant? LastCorrespondence { get; set; }
public OffsetDateTime? LastCorrespondence { get; set; }
}
12 changes: 6 additions & 6 deletions source/VMelnalksnis.PaperlessDotNet/Documents/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public sealed class Document
[JsonPropertyName("original_file_name")]
public string OriginalFileName { get; set; } = null!;

/// <summary>Gets or sets the instant at which the document was added to paperless.</summary>
public Instant Added { get; set; }
/// <summary>Gets or sets the datetime when the document was added to paperless.</summary>
public OffsetDateTime Added { get; set; }

/// <summary>Gets or sets the instant at which the document was last modified at.</summary>
public Instant Modified { get; set; }
/// <summary>Gets or sets the datetime when the document was last modified at.</summary>
public OffsetDateTime Modified { get; set; }

/// <summary>Gets or sets the instant at which the document was created at.</summary>
public Instant Created { get; set; }
/// <summary>Gets or sets the datetime when the document was created at.</summary>
public OffsetDateTime Created { get; set; }

/// <summary>Gets or sets ids of the tags assigned to the document.</summary>
[JsonPropertyName("tags")]
Expand Down

0 comments on commit ea59b38

Please sign in to comment.