=== 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:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -12,6 +12,7 @@ namespace adas_core.Infrastructure.Utils;
/// <summary>
/// Provides JSON conversion for <see cref="PumpObservation"/> instances and supports BSON serialization through the <see cref="IBsonSerializer"/> interface.
/// </summary>
/// <!-- aidoc:v1 sig=8967a45 -->
public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, IBsonSerializer
{
/// <summary>
@@ -21,6 +22,7 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// <param name="args">The deserialization arguments containing additional settings for the operation.</param>
/// <returns>The deserialized object.</returns>
/// <exception cref="NotImplementedException">Thrown when the method is invoked, as the deserialization logic has not been implemented.</exception>
/// <!-- aidoc:v1 sig=2a74dda body=bfa6f2f -->
public object Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
{
throw new NotImplementedException();
@@ -34,6 +36,7 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// <param name="args">The BSON serialization arguments that influence the serialization behavior.</param>
/// <param name="value">The object to be serialized into BSON.</param>
/// <exception cref="NotImplementedException">Thrown because the method has not been implemented.</exception>
/// <!-- aidoc:v1 sig=bd1484e body=bfa6f2f -->
public void Serialize(BsonSerializationContext context, BsonSerializationArgs args, object value)
{
throw new NotImplementedException();
@@ -52,6 +55,7 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// <param name="serializer">The <see cref="JsonSerializer"/> used for deserialization.</param>
/// <returns>A <see cref="PumpObservation"/> instance reconstructed from the JSON data.</returns>
/// <exception cref="NotImplementedException">Thrown because the method has not been implemented yet.</exception>
/// <!-- aidoc:v1 sig=5a89314 body=bfa6f2f -->
public override PumpObservation ReadJson(JsonReader reader, Type objectType,
PumpObservation? existingValue,
bool hasExistingValue, JsonSerializer serializer)
@@ -65,6 +69,8 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// <param name="writer">The JSON writer to which the serialized object is written.</param>
/// <param name="value">The object to serialize; if null, the method does nothing.</param>
/// <param name="serializer">The JSON serializer used as context for the conversion.</param>
/// <!-- aidoc-review:v1 severity=medium kind=wrong_param_role
/// "The 'serializer' parameter is documented as 'The JSON serializer used as context for the conversion', but it is never referenced anywhere in the method body (the JSON is written via JObject.FromObject and jo.WriteTo, neither of which uses this argument)." -->
public new void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
{
if (value != null)
@@ -89,6 +95,7 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// <param name="value">The <see cref="PumpObservation"/> to serialize, or <see langword="null"/> if no value is available.</param>
/// <param name="serializer">The <see cref="JsonSerializer"/> providing serialization context and options.</param>
/// <exception cref="NotImplementedException">Always thrown because the method has not been implemented.</exception>
/// <!-- aidoc:v1 sig=6f585c5 body=bfa6f2f -->
public override void WriteJson(JsonWriter writer, PumpObservation? value, JsonSerializer serializer)
{
throw new NotImplementedException();
@@ -99,6 +106,7 @@ public class PatientPumpObservationConverter : JsonConverter<PumpObservation>, I
/// </summary>
/// <param name="value">The object instance whose property will be inspected for the attribute.</param>
/// <param name="propertyName">The name of the property to which the converter 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);