Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Jul 29, 2024
1 parent 2f04275 commit 707df0f
Show file tree
Hide file tree
Showing 10 changed files with 2,573 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public interface IDialogDbContext
DbSet<DialogApiAction> DialogApiActions { get; }
DbSet<DialogApiActionEndpoint> DialogApiActionEndpoints { get; }
DbSet<DialogGuiAction> DialogGuiActions { get; }
DbSet<Attachment> DialogAttachments { get; }
DbSet<AttachmentUrl> DialogAttachmentUrls { get; }
DbSet<DialogAttachment> DialogAttachments { get; }
DbSet<AttachmentUrl> AttachmentUrls { get; }
DbSet<DialogGuiActionPriority> DialogGuiActionTypes { get; }
DbSet<DialogActivityType> DialogActivityTypes { get; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Digdir.Domain.Dialogporten.Domain.Dialogs.Entities.Transmissions;
using Digdir.Domain.Dialogporten.Domain.Dialogs.Entities.Transmissions;
using Digdir.Domain.Dialogporten.Domain.Localizations;
using Digdir.Library.Entity.Abstractions;
using Digdir.Library.Entity.Abstractions.Features.Aggregate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Digdir.Library.Entity.Abstractions;
using Digdir.Library.Entity.Abstractions;

namespace Digdir.Domain.Dialogporten.Domain.Dialogs.Entities.Attachments;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public TransmissionContentType(Values id) : base(id) { }
public enum Values
{
Title = 1,
SenderName = 2
Summary = 2
}

public bool Required { get; private init; }
Expand All @@ -20,7 +20,7 @@ public enum Values
public static TransmissionContentType GetContentType(string contentType) => contentType switch
{
nameof(Values.Title) => GetValue(Values.Title),
nameof(Values.SenderName) => GetValue(Values.SenderName),
nameof(Values.Summary) => GetValue(Values.Summary),
_ => throw new ArgumentOutOfRangeException(nameof(contentType), contentType, null)
};

Expand All @@ -32,9 +32,9 @@ public enum Values
MaxLength = Constants.DefaultMaxStringLength,
AllowedMediaTypes = [MediaTypes.PlainText]
},
Values.SenderName => new(id)
Values.Summary => new(id)
{
Required = false,
Required = true,
MaxLength = Constants.DefaultMaxStringLength,
AllowedMediaTypes = [MediaTypes.PlainText]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@
<ProjectReference Include="..\Digdir.Library.Entity.Abstractions\Digdir.Library.Entity.Abstractions.csproj"/>
</ItemGroup>

<ItemGroup>
<Compile Remove="Dialogs\Entities\Attachments\AttachmentUrl.cs" />
<Compile Remove="Dialogs\Entities\Attachments\Attachment.cs" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
<InternalsVisibleTo Include="Digdir.Domain.Dialogporten.GraphQL"/>
</ItemGroup>

<ItemGroup>
<Compile Remove="Persistence\Migrations\20240726130640_AddTransmissions.cs" />
<Compile Remove="Persistence\Migrations\20240726130640_AddTransmissions.Designer.cs" />
<Compile Remove="Persistence\Migrations\20240729202519_AddTransmissions.cs" />
<Compile Remove="Persistence\Migrations\20240729202519_AddTransmissions.Designer.cs" />
</ItemGroup>


</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public DialogDbContext(DbContextOptions<DialogDbContext> options) : base(options
public DbSet<DialogApiAction> DialogApiActions => Set<DialogApiAction>();
public DbSet<DialogApiActionEndpoint> DialogApiActionEndpoints => Set<DialogApiActionEndpoint>();
public DbSet<DialogGuiAction> DialogGuiActions => Set<DialogGuiAction>();
public DbSet<Attachment> DialogAttachments => Set<Attachment>();
public DbSet<AttachmentUrl> DialogAttachmentUrls => Set<AttachmentUrl>();
public DbSet<DialogAttachment> DialogAttachments => Set<DialogAttachment>();
public DbSet<AttachmentUrl> AttachmentUrls => Set<AttachmentUrl>();
public DbSet<DialogGuiActionPriority> DialogGuiActionTypes => Set<DialogGuiActionPriority>();
public DbSet<DialogTransmission> DialogTransmissions => Set<DialogTransmission>();
public DbSet<DialogSeenLog> DialogSeenLog => Set<DialogSeenLog>();
Expand Down
Loading

0 comments on commit 707df0f

Please sign in to comment.