-
Notifications
You must be signed in to change notification settings - Fork 1
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
730f37d
commit 047c056
Showing
8 changed files
with
212 additions
and
8 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
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,40 @@ | ||
using Crowdin.Api.SourceFiles; | ||
using Newtonsoft.Json; | ||
|
||
namespace Apps.Crowdin.Models.Dtos; | ||
|
||
public class AddFileRequestDto | ||
{ | ||
[JsonProperty("storageId")] | ||
public long StorageId { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("branchId")] | ||
public int? BranchId { get; set; } | ||
|
||
[JsonProperty("directoryId")] | ||
public int? DirectoryId { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string? Title { get; set; } | ||
|
||
[JsonProperty("context")] | ||
public string? Context { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public ProjectFileType? Type { get; set; } | ||
|
||
[JsonProperty("importOptions")] | ||
public FileImportOptions? ImportOptions { get; set; } | ||
|
||
[JsonProperty("exportOptions")] | ||
public FileExportOptions? ExportOptions { get; set; } | ||
|
||
[JsonProperty("excludedTargetLanguages")] | ||
public List<string>? ExcludedTargetLanguages { get; set; } | ||
|
||
[JsonProperty("attachLabelIds")] | ||
public ICollection<int>? AttachLabelIds { 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,9 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Apps.Crowdin.Models.Dtos; | ||
|
||
public class DataWrapper<T> | ||
{ | ||
[JsonProperty("data")] | ||
public T Data { 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,59 @@ | ||
using Crowdin.Api; | ||
using Crowdin.Api.SourceFiles; | ||
using Newtonsoft.Json; | ||
|
||
namespace Apps.Crowdin.Models.Dtos; | ||
|
||
public class FileDto | ||
{ | ||
[JsonProperty("id")] | ||
public long Id { get; set; } | ||
|
||
[JsonProperty("projectId")] | ||
public int ProjectId { get; set; } | ||
|
||
[JsonProperty("branchId")] | ||
public int? BranchId { get; set; } | ||
|
||
[JsonProperty("directoryId")] | ||
public int? DirectoryId { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string? Title { get; set; } | ||
|
||
[JsonProperty("context")] | ||
public string? Context { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("path")] | ||
public string Path { get; set; } | ||
|
||
[JsonProperty("status")] | ||
public FileStatus Status { get; set; } | ||
|
||
[JsonProperty("revisionId")] | ||
public int RevisionId { get; set; } | ||
|
||
[JsonProperty("priority")] | ||
public Priority Priority { get; set; } | ||
|
||
[JsonProperty("importOptions")] | ||
public FileImportOptions? ImportOptions { get; set; } | ||
|
||
[JsonProperty("exportOptions")] | ||
public FileExportOptions? ExportOptions { get; set; } | ||
|
||
[JsonProperty("excludedTargetLanguages")] | ||
public string[]? ExcludedTargetLanguages { get; set; } | ||
|
||
[JsonProperty("createdAt")] | ||
public DateTimeOffset CreatedAt { get; set; } | ||
|
||
[JsonProperty("updatedAt")] | ||
public DateTimeOffset? UpdatedAt { 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 Newtonsoft.Json; | ||
|
||
namespace Apps.Crowdin.Models.Dtos; | ||
|
||
public class StorageResourceDto | ||
{ | ||
[JsonProperty("id")] | ||
public long Id { get; set; } | ||
|
||
[JsonProperty("fileName")] | ||
public string FileName { get; set; } = string.Empty; | ||
} |
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