-
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
802fc91
commit df1f3ce
Showing
4 changed files
with
101 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
namespace Apps.XtrfCustomerPortal.Models.Dtos; | ||
|
||
public class TaskFilesDto | ||
{ | ||
public int Id { get; set; } | ||
public string IdNumber { get; set; } | ||
public List<TaskFile> TasksFiles { get; set; } | ||
public bool OutputFilesAsZipDownloadable { get; set; } | ||
|
||
public class TaskFile | ||
{ | ||
public int Id { get; set; } | ||
public string IdNumber { get; set; } | ||
public LanguageCombination LanguageCombination { get; set; } | ||
public FileGroup InputWorkfiles { get; set; } | ||
public FileGroup InputResources { get; set; } | ||
public FileGroup? Output { get; set; } | ||
public bool OutputFilesAsZipDownloadable { get; set; } | ||
} | ||
|
||
public class LanguageCombination | ||
{ | ||
public Language SourceLanguage { get; set; } | ||
public Language TargetLanguage { get; set; } | ||
} | ||
|
||
public class Language | ||
{ | ||
public int Id { get; set; } | ||
public string Symbol { get; set; } | ||
public string Name { get; set; } | ||
public string DisplayName { get; set; } | ||
} | ||
|
||
public class FileGroup | ||
{ | ||
public string Name { get; set; } | ||
public List<Directory> Directories { get; set; } | ||
public List<File> Files { get; set; } | ||
} | ||
|
||
public class Directory | ||
{ | ||
public string Name { get; set; } | ||
public List<Directory> Directories { get; set; } | ||
public List<File> Files { get; set; } | ||
} | ||
|
||
public class File | ||
{ | ||
public string Name { get; set; } | ||
public int Id { get; set; } | ||
public bool Downloadable { get; set; } | ||
public string Category { get; set; } | ||
public bool Zip { get; set; } | ||
public FileStats FileStats { get; set; } | ||
} | ||
|
||
public class FileStats | ||
{ | ||
public int CharactersWithSpaces { get; set; } | ||
public int CharactersWithoutSpaces { get; set; } | ||
public int Words { get; set; } | ||
public int Lines { get; set; } | ||
public int Pages { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Apps.XtrfCustomerPortal/Models/Responses/Projects/DownloadProjectFilesResponse.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,8 @@ | ||
using Blackbird.Applications.Sdk.Common.Files; | ||
|
||
namespace Apps.XtrfCustomerPortal.Models.Responses.Projects; | ||
|
||
public class DownloadProjectFilesResponse | ||
{ | ||
public List<FileReference> Files { get; set; } = new(); | ||
} |