-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c8d033
commit 13e589c
Showing
4 changed files
with
84 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// <copyright file="CreateListItemRecord.cs" company="Drastic Actions"> | ||
// Copyright (c) Drastic Actions. All rights reserved. | ||
// </copyright> | ||
|
||
namespace FishyFlip.Models.Internal; | ||
|
||
public record CreateListItemRecord(string Collection, string Repo, ListItemRecord Record); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// <copyright file="ListItemRecord.cs" company="Drastic Actions"> | ||
// Copyright (c) Drastic Actions. All rights reserved. | ||
// </copyright> | ||
|
||
using FishyFlip; | ||
|
||
public class ListItemRecord : ATRecord | ||
{ | ||
[JsonConstructor] | ||
public ListItemRecord(ATDid subject, ATUri list, DateTime? createdAt) | ||
{ | ||
this.Subject = subject; | ||
this.List = list; | ||
this.CreatedAt = createdAt ?? DateTime.Now; | ||
this.Type = Constants.GraphTypes.ListItem; | ||
} | ||
|
||
public ATDid Subject { get; } | ||
|
||
public ATUri List { get; } | ||
|
||
public DateTime CreatedAt { get; } | ||
} |