=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -13,6 +13,7 @@ namespace adas_core.Infrastructure.Utils;
|
||||
/// <remarks>
|
||||
/// Implements <see cref="IBsonSerializer"/> to provide BSON serialization and deserialization support for <see cref="PatientObservationAlarm"/> objects.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=a512928 -->
|
||||
public class PatientObservationAlarmConverter : JsonConverter<PatientObservationAlarm>, IBsonSerializer
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,6 +23,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// <param name="args">The deserialization arguments that influence how the value is read and converted.</param>
|
||||
/// <returns>The deserialized .NET object produced from the BSON input.</returns>
|
||||
/// <exception cref="NotImplementedException">Always thrown because the deserialization logic has not been implemented yet.</exception>
|
||||
/// <!-- aidoc:v1 sig=2a74dda body=bfa6f2f -->
|
||||
public object Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -34,6 +36,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// <param name="args">The BSON serialization arguments containing additional information that influences the serialization behavior.</param>
|
||||
/// <param name="value">The object to be serialized into BSON.</param>
|
||||
/// <exception cref="System.NotImplementedException">Thrown because the method has not yet been implemented.</exception>
|
||||
/// <!-- aidoc:v1 sig=bd1484e body=bfa6f2f -->
|
||||
public void Serialize(BsonSerializationContext context, BsonSerializationArgs args, object value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -50,6 +53,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// <param name="hasExistingValue">Indicates whether <paramref name="existingValue"/> contains a value to be used during deserialization.</param>
|
||||
/// <param name="serializer">The <see cref="JsonSerializer"/> used for nested object deserialization.</param>
|
||||
/// <returns>A <see cref="PatientObservationAlarm"/> populated from the JSON, or <c>null</c> if the JSON token is <see cref="JsonToken.Null"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=db7e773 body=9079bf3 -->
|
||||
public override PatientObservationAlarm? ReadJson(JsonReader reader, Type objectType,
|
||||
PatientObservationAlarm? existingValue,
|
||||
bool hasExistingValue, JsonSerializer serializer)
|
||||
@@ -77,6 +81,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// <param name="writer">The <see cref="JsonWriter"/> to which the JSON output is written.</param>
|
||||
/// <param name="value">The object to serialize; if <see langword="null"/>, the method performs no action.</param>
|
||||
/// <param name="serializer">The <see cref="JsonSerializer"/> used to assist with the conversion.</param>
|
||||
/// <!-- aidoc:v1 sig=9ef717f body=5f30748 -->
|
||||
public new void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||
{
|
||||
if (value != null)
|
||||
@@ -100,6 +105,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// </summary>
|
||||
/// <param name="value">The object instance whose type is inspected to locate the target property.</param>
|
||||
/// <param name="propertyName">The name of the property to which the <see cref="StringEnumConverter"/> attribute will be added.</param>
|
||||
/// <!-- aidoc:v1 sig=02b15d7 body=a196735 -->
|
||||
private static void AddStringEnumConverterAttribute(object value, string propertyName)
|
||||
{
|
||||
var prop = value.GetType().GetProperty(propertyName);
|
||||
@@ -132,6 +138,7 @@ public class PatientObservationAlarmConverter : JsonConverter<PatientObservation
|
||||
/// <param name="value">The PatientObservationAlarm value to serialize.</param>
|
||||
/// <param name="serializer">The JsonSerializer used during the serialization process.</param>
|
||||
/// <exception cref="NotImplementedException">The method has not been implemented.</exception>
|
||||
/// <!-- aidoc:v1 sig=1687013 body=bfa6f2f -->
|
||||
public override void WriteJson(JsonWriter writer, PatientObservationAlarm? value, JsonSerializer serializer)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in New Issue
Block a user