-
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
31a7bfa
commit af8d64e
Showing
18 changed files
with
80 additions
and
76 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
12 changes: 0 additions & 12 deletions
12
Apps.Lionbridge/DataSourceHandlers/EnumDataHandlers/JobCompletionStatuses.cs
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
Apps.Lionbridge/DataSourceHandlers/EnumDataHandlers/JobStatusDataHandler.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Blackbird.Applications.Sdk.Common.Dictionaries; | ||
using Blackbird.Applications.Sdk.Common.Dynamic; | ||
using Blackbird.Applications.Sdk.Utils.Sdk.DataSourceHandlers; | ||
|
||
namespace Apps.Lionbridge.DataSourceHandlers.EnumDataHandlers; | ||
|
||
public class JobStatusDataHandler : IStaticDataSourceItemHandler | ||
{ | ||
|
||
public IEnumerable<DataSourceItem> GetData() | ||
{ | ||
return new List<DataSourceItem>() | ||
{ | ||
new("CREATED", "Created" ), | ||
new("SENDING", "Sending" ), | ||
new("SENT_TO_PROVIDER", "Sent to provider" ), | ||
new("IN_TRANSLATION", "In translation" ), | ||
new("CANCELLED", "Cancelled" ), | ||
new("COMPLETED", "Complete"), | ||
}; | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
Apps.Lionbridge/DataSourceHandlers/EnumDataHandlers/JobStatuses.cs
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
Apps.Lionbridge/DataSourceHandlers/EnumDataHandlers/RequestStatusDataHandler.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Blackbird.Applications.Sdk.Common.Dictionaries; | ||
using Blackbird.Applications.Sdk.Common.Dynamic; | ||
using Blackbird.Applications.Sdk.Utils.Sdk.DataSourceHandlers; | ||
|
||
namespace Apps.Lionbridge.DataSourceHandlers.EnumDataHandlers; | ||
|
||
public class RequestStatusDataHandler : IStaticDataSourceItemHandler | ||
{ | ||
|
||
public IEnumerable<DataSourceItem> GetData() | ||
{ | ||
return new List<DataSourceItem>() | ||
{ | ||
new("CREATED", "Created" ), | ||
new("SENDING", "Sending" ), | ||
new("SENT_TO_PROVIDER", "Sent to provider" ), | ||
new("IN_TRANSLATION", "In translation" ), | ||
new("REVIEW_TRANSLATION", "Ready for review" ), | ||
new("TRANSLATION_REJECTED", "Translation rejected" ), | ||
new("TRANSLATION_APPROVED", "Translation approved"), | ||
new("CANCELLED", "Cancelled"), | ||
}; | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
Apps.Lionbridge/DataSourceHandlers/EnumDataHandlers/RequestStatuses.cs
This file was deleted.
Oops, something went wrong.
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
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
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,11 +1,12 @@ | ||
using Apps.Lionbridge.DataSourceHandlers.EnumDataHandlers; | ||
using Blackbird.Applications.Sdk.Common; | ||
using Blackbird.Applications.Sdk.Common.Dictionaries; | ||
using Blackbird.Applications.Sdk.Common.Dynamic; | ||
|
||
namespace Apps.Lionbridge.Webhooks.Inputs; | ||
|
||
public class RequestStatusUpdatedInput | ||
{ | ||
[Display("Status codes"), DataSource(typeof(RequestStatuses))] | ||
[Display("Status codes"), StaticDataSource(typeof(RequestStatusDataHandler))] | ||
public IEnumerable<string>? StatusCodes { get; set; } | ||
} |