-
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.
Showing
7 changed files
with
38 additions
and
4 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,33 @@ | ||
// <copyright file="PinnedPost.cs" company="Drastic Actions"> | ||
// Copyright (c) Drastic Actions. All rights reserved. | ||
// </copyright> | ||
|
||
namespace FishyFlip.Models; | ||
|
||
/// <summary> | ||
/// Represents a pinned post. | ||
/// </summary> | ||
public class PinnedPost | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PinnedPost"/> class. | ||
/// </summary> | ||
/// <param name="uri">The Post URI.</param> | ||
/// <param name="cid">The reference to the post.</param> | ||
[JsonConstructor] | ||
public PinnedPost(ATUri? uri, ATCid? cid) | ||
{ | ||
this.Cid = cid; | ||
this.Uri = uri; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the ATCid of the created post. | ||
/// </summary> | ||
public ATCid? Cid { get; } | ||
|
||
/// <summary> | ||
/// Gets the Uri of the created post. | ||
/// </summary> | ||
public ATUri? Uri { get; } | ||
} |
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