Skip to content
Snippets Groups Projects
Commit 1f0de13d authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Added DTOs for Destination service

parent 1279382f
No related branches found
No related tags found
1 merge request!3Feature/440 mvp net sdk part 1
Showing
with 272 additions and 5 deletions
...@@ -10,6 +10,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E2ETests", "E2ETests\E2ETes ...@@ -10,6 +10,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E2ETests", "E2ETests\E2ETes
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EncryptionTests", "EncryptionTests\EncryptionTests.csproj", "{68F1EC39-B234-4422-9AA8-E55CFA15025D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EncryptionTests", "EncryptionTests\EncryptionTests.csproj", "{68F1EC39-B234-4422-9AA8-E55CFA15025D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Services", "Services\Services.csproj", "{1BB06AF4-492C-4041-A947-FE65F7A48698}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
...@@ -32,6 +34,10 @@ Global ...@@ -32,6 +34,10 @@ Global
{68F1EC39-B234-4422-9AA8-E55CFA15025D}.Debug|Any CPU.Build.0 = Debug|Any CPU {68F1EC39-B234-4422-9AA8-E55CFA15025D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{68F1EC39-B234-4422-9AA8-E55CFA15025D}.Release|Any CPU.ActiveCfg = Release|Any CPU {68F1EC39-B234-4422-9AA8-E55CFA15025D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{68F1EC39-B234-4422-9AA8-E55CFA15025D}.Release|Any CPU.Build.0 = Release|Any CPU {68F1EC39-B234-4422-9AA8-E55CFA15025D}.Release|Any CPU.Build.0 = Release|Any CPU
{1BB06AF4-492C-4041-A947-FE65F7A48698}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1BB06AF4-492C-4041-A947-FE65F7A48698}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1BB06AF4-492C-4041-A947-FE65F7A48698}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1BB06AF4-492C-4041-A947-FE65F7A48698}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{73CE5625-4C13-458E-B524-0DAA850F4041} = {D382641C-B027-411A-814C-C8C20A9505F3} {73CE5625-4C13-458E-B524-0DAA850F4041} = {D382641C-B027-411A-814C-C8C20A9505F3}
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<ItemGroup> <ItemGroup>
<Folder Include="Interfaces" /> <Folder Include="Interfaces" />
<Folder Include="Models\Api" />
</ItemGroup> </ItemGroup>
</Project> </Project>
namespace FitConnect.Services;
internal class DestinationService {
// @PostMapping("/destinations")
// @GetMapping("/destinations/{destinationId}")
// @DeleteMapping("/destinations/{destinationId}")
// @PatchMapping("/destinations/{destinationId}")
// @GetMapping("/destinations")
// @PutMapping("/destinations/{destinationId}")
}
\ No newline at end of file
namespace FitConnect.Services;
internal class InfoService {
// @GetMapping("/info")
internal string GetInfo() {
throw new NotImplementedException();
}
}
namespace FitConnect.Services.Models;
internal class ApiInfoDto {
}
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace FitConnect.Models.Api.Models; namespace FitConnect.Services.Models;
internal class CallbackDto { public class CallbackDto {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
} }
\ No newline at end of file
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace FitConnect.Models.Api.Models; namespace FitConnect.Services.Models;
internal class CreateCallbackDto { public class CreateCallbackDto {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
......
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace FitConnect.Models.Api.Models; namespace FitConnect.Services.Models;
internal class CreateSubmission { internal class CreateSubmission {
[JsonPropertyName("destinationId")] [JsonPropertyName("destinationId")]
......
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class ContactInformationDto {
[JsonPropertyName("legalName")]
public string LegalName;
[JsonPropertyName("address")]
public string Address;
[JsonPropertyName("phone")]
public string Phone;
[JsonPropertyName("email")]
public string Email;
[JsonPropertyName("unit")]
public string Unit;
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class CreateDestinationDto {
[JsonPropertyName("contactInformation")]
public ContactInformationDto ContactInformation;
[JsonPropertyName("services")]
public List<DestinationServiceDto> Services;
[JsonPropertyName("callback")]
public CreateCallbackDto Callback;
[JsonPropertyName("encryptionKid")]
public string EncryptionKid;
[JsonPropertyName("encryptionPublicKey")]
public string EncryptionPublicKey;
[JsonPropertyName("signingPublicKey")]
public string SigningPublicKey;
[JsonPropertyName("metadataVersions")]
public List<string> metadataVersions;
[JsonPropertyName("replyChannels")]
public DestinationReplyChannelsDto ReplyChannels;
}
namespace FitConnect.Services.Models;
public class DeMailDto {
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class DestinationListDto {
[JsonPropertyName("count")]
public int Count;
[JsonPropertyName("offset")]
public int Offset;
[JsonPropertyName("totalCount")]
public long TotalCount;
[JsonPropertyName("destinations")]
public List<PrivateDestinationDto> Destinations;
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class DestinationReplyChannelsDto {
public EmailDto? EMail;
public DeMailDto? DeMail;
public FinkDto? Fink;
public ElsterDto? Elster;
public DestinationReplyChannelsDto(
EmailDto eMail,
DeMailDto deMail,
FinkDto fink,
ElsterDto elster) {
this.EMail = EMail;
this.DeMail = DeMail;
this.Fink = Fink;
this.Elster = Elster;
}
public bool IsEmpty() {
return EMail == null && DeMail == null && Fink == null && Elster == null;
}
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class DestinationServiceDto {
[JsonPropertyName("identifier")]
public string Identifier;
[JsonPropertyName("submissionSchemas")]
public List<SubmissionSchemaDto> SubmissionSchemas;
[JsonPropertyName("regions")]
public List<string> Regions;
}
\ No newline at end of file
namespace FitConnect.Services.Models;
public class ElsterDto {
}
\ No newline at end of file
namespace FitConnect.Services.Models;
public class EmailDto {
}
\ No newline at end of file
namespace FitConnect.Services.Models;
public class FinkDto {
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class PatchDestinationDto {
[JsonPropertyName("status")]
public string Status;
[JsonPropertyName("contactInformation")]
public ContactInformationDto ContactInformation;
[JsonPropertyName("services")]
public List<DestinationServiceDto> Services;
[JsonPropertyName("callback")]
public CreateCallbackDto Callback;
[JsonPropertyName("encryptionKid")]
public string EncryptionKid;
[JsonPropertyName("metadataVersions")]
public List<string> metadataVersions;
[JsonPropertyName("replyChannels")]
public DestinationReplyChannelsDto ReplyChannels;
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class PrivateDestinationDto {
[JsonPropertyName("destinationId")]
public string DestinationId;
[JsonPropertyName("status")]
public string Status;
[JsonPropertyName("services")]
public List<DestinationServiceDto> Services;
[JsonPropertyName("encryptionKid")]
public string EncryptionKid;
[JsonPropertyName("contactInformation")]
public ContactInformationDto ContactInformation;
[JsonPropertyName("callback")]
public CallbackDto Callback;
[JsonPropertyName("metadataVersions")]
public List<string> MetadataVersions;
[JsonPropertyName("replyChannels")]
public DestinationReplyChannelsDto ReplyChannels;
}
\ No newline at end of file
using System.Text.Json.Serialization;
namespace FitConnect.Services.Models;
public class PublicDestinationDto {
[JsonPropertyName("destinationId")]
public string DestinationId;
[JsonPropertyName("status")]
public string Status;
[JsonPropertyName("services")]
public List<DestinationServiceDto> Services;
[JsonPropertyName("encryptionKid")]
public string EncryptionKid;
[JsonPropertyName("metadataVersions")]
public List<string> MetadataVersions;
[JsonPropertyName("replyChannels")]
public DestinationReplyChannelsDto ReplyChannels;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment