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

Updated method signatures

parent d4e03dc8
No related branches found
No related tags found
2 merge requests!58Issue/release preparation,!42Issue/872 check submission data schema
...@@ -5,6 +5,8 @@ namespace FitConnect; ...@@ -5,6 +5,8 @@ namespace FitConnect;
public class EncryptedSubmissionBuilder : IEncryptedBuilderWithData, public class EncryptedSubmissionBuilder : IEncryptedBuilderWithData,
IEncryptedBuilderWithMetadata, IEncryptedBuilderWithAttachments, IEncryptedBuilderWithMetadata, IEncryptedBuilderWithAttachments,
IEncryptedBuilderWithDestination, IEncryptedBuilderWithService { IEncryptedBuilderWithDestination, IEncryptedBuilderWithService {
private Uri? SchemaUri { get; set; }
private readonly SendableEncryptedSubmission _submission; private readonly SendableEncryptedSubmission _submission;
internal EncryptedSubmissionBuilder() { internal EncryptedSubmissionBuilder() {
...@@ -36,11 +38,13 @@ public class EncryptedSubmissionBuilder : IEncryptedBuilderWithData, ...@@ -36,11 +38,13 @@ public class EncryptedSubmissionBuilder : IEncryptedBuilderWithData,
return this; return this;
} }
public IEncryptedBuilderWithData SetEncryptedData(string data) { public IEncryptedBuilderWithData SetEncryptedData(string data, Uri? schemaUri = null) {
SchemaUri = schemaUri;
_submission.Data = data; _submission.Data = data;
return this; return this;
} }
public IEncryptedBuilderWithMetadata SetEncryptedMetadata(string metadata) { public IEncryptedBuilderWithMetadata SetEncryptedMetadata(string metadata) {
_submission.Metadata = metadata; _submission.Metadata = metadata;
return this; return this;
...@@ -61,7 +65,7 @@ public interface IEncryptedBuilderWithService { ...@@ -61,7 +65,7 @@ public interface IEncryptedBuilderWithService {
} }
public interface IEncryptedBuilderWithMetadata { public interface IEncryptedBuilderWithMetadata {
IEncryptedBuilderWithData SetEncryptedData(string data); IEncryptedBuilderWithData SetEncryptedData(string data, Uri? schemaUri = null);
} }
public interface IEncryptedBuilderWithData { public interface IEncryptedBuilderWithData {
......
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