-
Notifications
You must be signed in to change notification settings - Fork 0
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
329c5e6
commit 70753d8
Showing
9 changed files
with
232 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
namespace Apps.BWX.Dtos; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Dtos; | ||
|
||
public class WorkUnitDto | ||
{ | ||
[Display("UUID")] | ||
public string Uuid { get; set; } | ||
|
||
[Display("Work ID")] | ||
public string WorkId { get; set; } | ||
public string Name { get; set; } | ||
|
||
[Display("Source language")] | ||
public string SourceLanguage { get; set; } | ||
|
||
[Display("Target language")] | ||
public string TargetLanguage { get; set; } | ||
public string Filename { get; set; } | ||
|
||
[Display("Creation timestamp")] | ||
public long CreationTimestamp { get; set; } | ||
|
||
[Display("Last update")] | ||
public long LastUpdate { get; set; } | ||
public int Sequence { get; set; } | ||
public string Workflow { get; set; } | ||
|
||
[Display("Project UUID")] | ||
public string ProjectUUID { get; set; } | ||
|
||
[Display("Project resource UUID")] | ||
public string ProjectResourceUuid { get; set; } | ||
} |
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
namespace Apps.BWX.Webhooks.Payload; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Webhooks.Payload; | ||
|
||
public class NewOrgEvent | ||
{ | ||
public string Country { get; set; } | ||
|
||
[Display("Event type")] | ||
public string EventType { get; set; } | ||
public int Id { get; set; } | ||
public string Name { get; set; } | ||
|
||
[Display("UUID")] | ||
public string Uuid { get; set; } | ||
|
||
[Display("Custom fields")] | ||
public List<string> CustomFields { get; set; } | ||
} |
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
namespace Apps.BWX.Webhooks.Payload; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Webhooks.Payload; | ||
|
||
public class NewUserEvent | ||
{ | ||
public string Country { get; set; } | ||
|
||
[Display("Event type")] | ||
public string EventType { get; set; } | ||
|
||
[Display("ID")] | ||
public int Id { get; set; } | ||
public string Name { get; set; } | ||
public string Email { get; set; } | ||
public List<string> Role { get; set; } | ||
public string Status { get; set; } | ||
|
||
[Display("UUID")] | ||
public string Uuid { get; set; } | ||
|
||
[Display("Custom fields")] | ||
public List<string> CustomFields { get; set; } | ||
} |
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 |
---|---|---|
@@ -1,23 +1,44 @@ | ||
namespace Apps.BWX.Webhooks.Payload; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Webhooks.Payload; | ||
|
||
public class ProjectStatusChangedPayload | ||
{ | ||
[Display("Creation timestamp")] | ||
public long CreationTimestamp { get; set; } | ||
public string Creator { get; set; } | ||
|
||
[Display("Creator email")] | ||
public string CreatorEmail { get; set; } | ||
|
||
[Display("Event type")] | ||
public string EventType { get; set; } | ||
|
||
[Display("ID")] | ||
public int Id { get; set; } | ||
public string Instructions { get; set; } | ||
public string Name { get; set; } | ||
|
||
[Display("New status")] | ||
public string NewStatus { get; set; } | ||
public string Notes { get; set; } | ||
|
||
[Display("Previous status")] | ||
public string PreviousStatus { get; set; } | ||
public string Reference { get; set; } | ||
|
||
[Display("Source locale")] | ||
public string SourceLocale { get; set; } | ||
public string Status { get; set; } | ||
public List<string> Tags { get; set; } | ||
|
||
[Display("Target locales")] | ||
public List<string> TargetLocales { get; set; } | ||
|
||
[Display("UUID")] | ||
public string Uuid { get; set; } | ||
public List<string> Workflows { get; set; } | ||
|
||
[Display("Custom fields")] | ||
public List<string> CustomFields { get; set; } | ||
} |
18 changes: 17 additions & 1 deletion
18
Apps.BWX/Webhooks/Payload/ProjectTranslationFinishedEvent.cs
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 |
---|---|---|
@@ -1,12 +1,28 @@ | ||
namespace Apps.BWX.Webhooks.Payload; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Webhooks.Payload; | ||
|
||
public class ProjectTranslationFinishedEvent | ||
{ | ||
|
||
[Display("Project ID")] | ||
public int ProjectId { get; set; } | ||
|
||
[Display("Project UUID")] | ||
public string ProjectUuid { get; set; } | ||
|
||
[Display("Project name")] | ||
public string ProjectName { get; set; } | ||
|
||
[Display("Total work units completed")] | ||
public int TotalWorkUnitsCompleted { get; set; } | ||
|
||
[Display("Total work units failed")] | ||
public int TotalWorkUnitsFailed { get; set; } | ||
|
||
[Display("Total work units")] | ||
public int TotalWorkUnits { get; set; } | ||
|
||
[Display("Event type")] | ||
public string EventType { get; set; } | ||
} |
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 |
---|---|---|
@@ -1,32 +1,74 @@ | ||
namespace Apps.BWX.Webhooks.Payload; | ||
using Blackbird.Applications.Sdk.Common; | ||
|
||
namespace Apps.BWX.Webhooks.Payload; | ||
|
||
public class TaskAssinedEvent | ||
{ | ||
|
||
[Display("Acceptance date")] | ||
public long AcceptanceDate { get; set; } | ||
|
||
[Display("Assign date")] | ||
public long AssignDate { get; set; } | ||
|
||
[Display("Assign by email")] | ||
public string AssignedByEmail { get; set; } | ||
|
||
[Display("Assign by name")] | ||
public string AssignedByName { get; set; } | ||
public string Assignee { get; set; } | ||
|
||
[Display("Assignee email")] | ||
public string AssigneeEmail { get; set; } | ||
|
||
[Display("Assignee word rate")] | ||
public double AssigneeWordRate { get; set; } | ||
|
||
[Display("Begin index")] | ||
public long BeginIndex { get; set; } | ||
|
||
[Display("Creation timestamp")] | ||
public long CreationTimestamp { get; set; } | ||
public string Creator { get; set; } | ||
|
||
[Display("Creator email")] | ||
public string CreatorEmail { get; set; } | ||
|
||
[Display("Delivery date")] | ||
public long DeliveryDate { get; set; } | ||
|
||
[Display("Due date")] | ||
public long DueDate { get; set; } | ||
|
||
[Display("End index")] | ||
public long EndIndex { get; set; } | ||
|
||
[Display("Event type")] | ||
public string EventType { get; set; } | ||
public List<string> Files { get; set; } | ||
|
||
[Display("ID")] | ||
public int Id { get; set; } | ||
public string Instructions { get; set; } | ||
|
||
[Display("Minimum score required")] | ||
public double MinimumScoreRequired { get; set; } | ||
public string Name { get; set; } | ||
|
||
[Display("Reference files")] | ||
public List<string> ReferenceFiles { get; set; } | ||
|
||
[Display("Scheduled date")] | ||
public long ScheduledDate { get; set; } | ||
|
||
[Display("Skip date")] | ||
public long SkipDate { get; set; } | ||
public string Status { get; set; } | ||
|
||
[Display("UUID")] | ||
public string Uuid { get; set; } | ||
public string Workflow { get; set; } | ||
|
||
[Display("Custom fields")] | ||
public List<string> CustomFields { get; set; } | ||
} |
Oops, something went wrong.