Skip to content

Commit

Permalink
feat: add building was merged contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Jun 29, 2023
1 parent f511904 commit 43422b2
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
namespace Be.Vlaanderen.Basisregisters.GrAr.Contracts.BuildingRegistry
{
using System.Collections.Generic;
using Common;

public sealed class BuildingMergerWasRealized : IQueueMessage
{
public int BuildingPersistentLocalId { get; }

public string ExtendedWkbGeometry { get; }

public List<int> MergedBuildingPersistentLocalIds { get; }

public Provenance Provenance { get; }

public BuildingMergerWasRealized(
int buildingPersistentLocalId,
string extendedWkbGeometry,
List<int> mergedBuildingPersistentLocalIds,
Provenance provenance)
{
BuildingPersistentLocalId = buildingPersistentLocalId;
ExtendedWkbGeometry = extendedWkbGeometry;
MergedBuildingPersistentLocalIds = mergedBuildingPersistentLocalIds;
Provenance = provenance;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace Be.Vlaanderen.Basisregisters.GrAr.Contracts.BuildingRegistry
{
using Common;

public sealed class BuildingUnitWasMoved : IQueueMessage
{
public int BuildingPersistentLocalId { get; }

public int BuildingUnitPersistentLocalId { get; }

public int DestinationBuildingPersistentLocalId { get; }

public Provenance Provenance { get; }

public BuildingUnitWasMoved(
int buildingPersistentLocalId,
int buildingUnitPersistentLocalId,
int destinationBuildingPersistentLocalId,
Provenance provenance)
{
BuildingPersistentLocalId = buildingPersistentLocalId;
BuildingUnitPersistentLocalId = buildingUnitPersistentLocalId;
DestinationBuildingPersistentLocalId = destinationBuildingPersistentLocalId;
Provenance = provenance;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
namespace Be.Vlaanderen.Basisregisters.GrAr.Contracts.BuildingRegistry
{
using System.Collections.Generic;
using Common;

public sealed class BuildingUnitWasTransferred : IQueueMessage
{
public int BuildingPersistentLocalId { get; }

public int BuildingUnitPersistentLocalId { get; }

public int SourceBuildingPersistentLocalId { get; }

public string Function { get; }

public string Status { get; }

public List<int> AddressPersistentLocalIds { get; }

public string GeometryMethod { get; }

public string ExtendedWkbGeometry { get; }

public bool HasDeviation { get; }

public Provenance Provenance { get; }

public BuildingUnitWasTransferred(
int buildingPersistentLocalId,
int buildingUnitPersistentLocalId,
int sourceBuildingPersistentLocalId,
string function,
string status,
List<int> addressPersistentLocalIds,
string geometryMethod,
string extendedWkbGeometry,
bool hasDeviation,
Provenance provenance)
{
BuildingPersistentLocalId = buildingPersistentLocalId;
BuildingUnitPersistentLocalId = buildingUnitPersistentLocalId;
SourceBuildingPersistentLocalId = sourceBuildingPersistentLocalId;
Function = function;
Status = status;
AddressPersistentLocalIds = addressPersistentLocalIds;
GeometryMethod = geometryMethod;
ExtendedWkbGeometry = extendedWkbGeometry;
HasDeviation = hasDeviation;
Provenance = provenance;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace Be.Vlaanderen.Basisregisters.GrAr.Contracts.BuildingRegistry
{
using Common;

public sealed class BuildingWasMerged : IQueueMessage
{
public int BuildingPersistentLocalId { get; }

public int DestinationBuildingPersistentLocalId { get; }

public Provenance Provenance { get; }

public BuildingWasMerged(
int buildingPersistentLocalId,
int destinationBuildingPersistentLocalId,
Provenance provenance)
{
BuildingPersistentLocalId = buildingPersistentLocalId;
DestinationBuildingPersistentLocalId = destinationBuildingPersistentLocalId;
Provenance = provenance;
}
}
}

0 comments on commit 43422b2

Please sign in to comment.