-
Notifications
You must be signed in to change notification settings - Fork 11
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
303a0da
commit 80297c8
Showing
4 changed files
with
155 additions
and
14 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
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,30 @@ | ||
// <copyright file="CreateListRecord.cs" company="Drastic Actions"> | ||
// Copyright (c) Drastic Actions. All rights reserved. | ||
// </copyright> | ||
|
||
using static FishyFlip.Constants; | ||
|
||
namespace FishyFlip.Models.Internal; | ||
|
||
internal record CreateListRecord(string Collection, string Repo, ListRecordInternal Record, string? Rkey = null, string? SwapCommit = null); | ||
|
||
internal class ListRecordInternal : ATRecord | ||
{ | ||
[JsonConstructor] | ||
public ListRecordInternal(string name, string description, string purpose, DateTime? createdAt = default) | ||
{ | ||
this.Name = name; | ||
this.Description = description; | ||
this.Type = GraphTypes.List; | ||
this.CreatedAt = createdAt ?? DateTime.UtcNow; | ||
this.Purpose = purpose; | ||
} | ||
|
||
public DateTime CreatedAt { get; } | ||
|
||
public string Name { get; } | ||
|
||
public string Description { get; } | ||
|
||
public string Purpose { get; } | ||
} |