-
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
4e7eb40
commit cb99c8e
Showing
10 changed files
with
363 additions
and
218 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class NewOrgEvent | ||
{ | ||
public string Country { get; set; } | ||
public string EventType { get; set; } | ||
public int Id { get; set; } | ||
public string Name { get; set; } | ||
public string Uuid { get; set; } | ||
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class NewProjectEvent | ||
{ | ||
} | ||
} |
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,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class NewUserEvent | ||
{ | ||
public string Country { get; set; } | ||
public string EventType { get; set; } | ||
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; } | ||
public string Uuid { get; set; } | ||
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class ProjectStatusChangedPayload | ||
{ | ||
public long CreationTimestamp { get; set; } | ||
public string Creator { get; set; } | ||
public string CreatorEmail { get; set; } | ||
public string EventType { get; set; } | ||
public int Id { get; set; } | ||
public string Instructions { get; set; } | ||
public string Name { get; set; } | ||
public string NewStatus { get; set; } | ||
public string Notes { get; set; } | ||
public string PreviousStatus { get; set; } | ||
public string Reference { get; set; } | ||
public string SourceLocale { get; set; } | ||
public string Status { get; set; } | ||
public List<string> Tags { get; set; } | ||
public List<string> TargetLocales { get; set; } | ||
public string Uuid { get; set; } | ||
public List<string> Workflows { get; set; } | ||
public List<string> CustomFields { get; set; } | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class ProjectTranslationFinishedEvent | ||
{ | ||
public int ProjectId { get; set; } | ||
public string ProjectUuid { get; set; } | ||
public string ProjectName { get; set; } | ||
public int TotalWorkUnitsCompleted { get; set; } | ||
public int TotalWorkUnitsFailed { get; set; } | ||
public int TotalWorkUnits { get; set; } | ||
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class TaskAssinedEvent | ||
{ | ||
public long AcceptanceDate { get; set; } | ||
public long AssignDate { get; set; } | ||
public string AssignedByEmail { get; set; } | ||
public string AssignedByName { get; set; } | ||
public string Assignee { get; set; } | ||
public string AssigneeEmail { get; set; } | ||
public double AssigneeWordRate { get; set; } | ||
public long BeginIndex { get; set; } | ||
public long CreationTimestamp { get; set; } | ||
public string Creator { get; set; } | ||
public string CreatorEmail { get; set; } | ||
public long DeliveryDate { get; set; } | ||
public long DueDate { get; set; } | ||
public long EndIndex { get; set; } | ||
public string EventType { get; set; } | ||
public List<string> Files { get; set; } | ||
public int Id { get; set; } | ||
public string Instructions { get; set; } | ||
public double MinimumScoreRequired { get; set; } | ||
public string Name { get; set; } | ||
public List<string> ReferenceFiles { get; set; } | ||
public long ScheduledDate { get; set; } | ||
public long SkipDate { get; set; } | ||
public string Status { get; set; } | ||
public string Uuid { get; set; } | ||
public string Workflow { get; set; } | ||
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class TaskStatusChangedPayload | ||
{ | ||
public long AcceptanceDate { get; set; } | ||
public long AssignDate { get; set; } | ||
public string AssignedByEmail { get; set; } | ||
public string AssignedByName { get; set; } | ||
public string Assignee { get; set; } | ||
public string AssigneeEmail { get; set; } | ||
public long AssigneeWordRate { get; set; } | ||
public long BeginIndex { get; set; } | ||
public long CreationTimestamp { get; set; } | ||
public string Creator { get; set; } | ||
public string CreatorEmail { get; set; } | ||
public long DeliveryDate { get; set; } | ||
public long DueDate { get; set; } | ||
public long EndIndex { get; set; } | ||
public string EventType { get; set; } | ||
public List<string> Files { get; set; } | ||
public int Id { get; set; } | ||
public object Instructions { get; set; } | ||
public double MinimumScoreRequired { get; set; } | ||
public string Name { get; set; } | ||
public string NewStatus { get; set; } | ||
public string PreviousStatus { get; set; } | ||
public List<string> ReferenceFiles { get; set; } | ||
public long ScheduledDate { get; set; } | ||
public long SkipDate { get; set; } | ||
public string Status { get; set; } | ||
public string Uuid { get; set; } | ||
public string Workflow { get; set; } | ||
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Apps.BWX.Webhooks.Payload | ||
{ | ||
public class WorkUnitStatusChangedEvent | ||
{ | ||
public int BeginIndex { get; set; } | ||
public int Chars { get; set; } | ||
public int ConfirmedNonTranslatable { get; set; } | ||
public int ConfirmedSegments { get; set; } | ||
public int EndIndex { get; set; } | ||
public string EventType { get; set; } | ||
public string Id { get; set; } | ||
public string NewStatus { get; set; } | ||
public string PreviousStatus { get; set; } | ||
public string ProjectFileId { get; set; } | ||
public string ProjectFileName { get; set; } | ||
public int ProjectStepLevel { get; set; } | ||
public string SourceLocale { get; set; } | ||
public string TargetLocale { get; set; } | ||
public int TotalNonTranslatable { get; set; } | ||
public int TotalSegments { get; set; } | ||
public string TranslatedFileUrl { get; set; } | ||
public int Words { get; set; } | ||
public string Workflow { get; set; } | ||
public bool IsLastWorkflow { get; set; } | ||
} | ||
} |
Oops, something went wrong.