Skip to content

Commit

Permalink
Create IWebmentionSender.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 30, 2024
1 parent a8d9766 commit 4dfd4cd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Moonglade.Webmention/IWebmentionSender.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Moonglade.Webmention;

public interface IWebmentionSender
{
Task<WebmentionSendResult> SendWebmentionAsync(string sourceUrl, string targetUrl);
}

public class WebmentionSendResult
{
public bool IsSuccess { get; set; }
public int StatusCode { get; set; }
public string ResponseContent { get; set; }
public string AdditionalInfo { get; set; }
}

0 comments on commit 4dfd4cd

Please sign in to comment.