-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Produktpaket and Produktkonfiguration (#542)
* Add Produktpaket and Produktkonfiguration * Fix typos and add comments
- Loading branch information
1 parent
3dce2fe
commit 25c7f7b
Showing
5 changed files
with
421 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using BO4E.COM; | ||
using BO4E.meta; | ||
using Newtonsoft.Json; | ||
using ProtoBuf; | ||
|
||
namespace BO4E.BO; | ||
|
||
/// <summary> | ||
/// Sammlung von Produktkonfigurationen im Rahmen der Marktkommunikation. | ||
/// </summary> | ||
[ProtoContract] | ||
public class Produktpaket : BusinessObject | ||
{ | ||
/// <summary> | ||
/// Paket-Identifikation (Durchnummerierung). | ||
/// </summary> | ||
[JsonProperty(Required = Required.Always, Order = 8, PropertyName = "paketId")] | ||
[JsonPropertyName("paketId")] | ||
[ProtoMember(8)] | ||
[JsonPropertyOrder(8)] | ||
[BoKey] | ||
public int PaketId { get; set; } | ||
|
||
/// <summary> | ||
/// Liste an Produktkonfigurationen | ||
/// </summary> | ||
[JsonProperty(Required = Required.Default, Order = 9, PropertyName = "konfigurationen")] | ||
[JsonPropertyName("konfigurationen")] | ||
[ProtoMember(9)] | ||
[JsonPropertyOrder(9)] | ||
public List<Produktkonfiguration>? Konfigurationen { get; set; } | ||
|
||
/// <summary> | ||
/// Prioritaet des Pakets (1-5, 1 ist die hoechste Prioritaet) | ||
/// </summary> | ||
[JsonProperty(Required = Required.Default, Order = 10, PropertyName = "prioritaet")] | ||
[JsonPropertyName("prioritaet")] | ||
[ProtoMember(10)] | ||
[JsonPropertyOrder(10)] | ||
public int? Prioritaet { get; set; } | ||
|
||
/// <summary> | ||
/// Muss das Paket vollstaendig umgesetzt werden? | ||
/// </summary> | ||
[JsonProperty(Required = Required.Default, Order = 11, PropertyName = "mussVollstaendigSein")] | ||
[JsonPropertyName("mussVollstaendigSein")] | ||
[ProtoMember(11)] | ||
[JsonPropertyOrder(11)] | ||
public bool? MussVollstaendigSein { 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,34 @@ | ||
using System.Text.Json.Serialization; | ||
using BO4E.ENUM; | ||
using BO4E.meta; | ||
using Newtonsoft.Json; | ||
using ProtoBuf; | ||
|
||
namespace BO4E.COM; | ||
|
||
/// <summary>Einzelne Produktkonfiguration in einem Produktpaket.</summary> | ||
[ProtoContract] | ||
public class Produktkonfiguration : COM | ||
{ | ||
/// <summary>Eindeutiger Code der Konfiguration</summary> | ||
[JsonProperty(PropertyName = "code", Order = 3, Required = Required.Default)] | ||
[JsonPropertyName("code")] | ||
[ProtoMember(3)] | ||
[JsonPropertyOrder(3)] | ||
public Produktcode? Code { get; set; } | ||
|
||
/// <summary>Eigenschaftswert zur Konfiguration (als Code)</summary> | ||
[JsonProperty(PropertyName = "eigenschaft", Order = 4, Required = Required.Default)] | ||
[JsonPropertyName("eigenschaft")] | ||
[ProtoMember(4)] | ||
[JsonPropertyOrder(4)] | ||
public Produktcode? Eigenschaft { get; set; } | ||
|
||
/// <summary>Zusätzlicher Eigenschaftswert, z.B. Angabe der Jahresverbrauchsprognose (4000). | ||
/// Im Allgemeinen zur Angabe von Werten, die nicht als Produktcode definiert sind</summary> | ||
[JsonProperty(PropertyName = "zusatzeigenschaft", Order = 5, Required = Required.Default)] | ||
[JsonPropertyName("zusatzeigenschaft")] | ||
[ProtoMember(5)] | ||
[JsonPropertyOrder(5)] | ||
public string? Zusatzeigenschaft { get; set; } | ||
} |
Oops, something went wrong.