[FA-misc] Initial MassTransit implementation seems to work
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IChapterCreated
|
||||
{
|
||||
uint ChapterId { get; }
|
||||
uint NovelId { get; }
|
||||
uint VolumeId { get; }
|
||||
uint VolumeOrder { get; }
|
||||
uint ChapterOrder { get; }
|
||||
string ChapterTitle { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IChapterPullRequested
|
||||
{
|
||||
uint NovelId { get; }
|
||||
uint VolumeId { get; }
|
||||
uint ChapterOrder { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IFileUploadRequestCreated
|
||||
{
|
||||
Guid RequestId { get; }
|
||||
string FilePath { get; }
|
||||
byte[] FileData { get; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IFileUploadRequestStatusUpdate
|
||||
{
|
||||
Guid RequestId { get; }
|
||||
RequestStatus Status { get; }
|
||||
string? FileAccessUrl { get; }
|
||||
string? ErrorMessage { get; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface INovelCreated
|
||||
{
|
||||
uint NovelId { get; }
|
||||
string Title { get; }
|
||||
Language OriginalLanguage { get; }
|
||||
string Source { get; }
|
||||
string AuthorName { get; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface INovelUpdateRequested
|
||||
{
|
||||
string NovelUrl { get; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface ITranslationRequestCompleted
|
||||
{
|
||||
Guid? TranslationRequestId { get; }
|
||||
string? TranslatedText { get; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface ITranslationRequestCreated
|
||||
{
|
||||
Guid TranslationRequestId { get; }
|
||||
Language From { get; }
|
||||
Language To { get; }
|
||||
string Body { get; }
|
||||
string TranslationEngineKey { get; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IUserInvited
|
||||
{
|
||||
string InvitedUserId { get; }
|
||||
string InvitedUsername { get; }
|
||||
string InvitedEmail { get; }
|
||||
string InvitedOAuthProviderId { get; }
|
||||
string InviterId { get; }
|
||||
string InviterUsername { get; }
|
||||
string InviterOAuthProviderId { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user