38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace YunDa.SOMS.DataTransferObject.GeneralInformation.EquipmentLiveDataDto
|
|
{
|
|
public class VoiceprintData
|
|
{
|
|
[JsonPropertyName("voiceprint_id")]
|
|
public string VoiceprintId { get; set; }
|
|
|
|
[JsonPropertyName("saved_path")]
|
|
public string SavedPath { get; set; }
|
|
|
|
[JsonPropertyName("image_saved")]
|
|
public bool ImageSaved { get; set; }
|
|
|
|
[JsonPropertyName("timestamp")]
|
|
public DateTime Timestamp { get; set; }
|
|
|
|
[JsonPropertyName("frequency_peak")]
|
|
public int FrequencyPeak { get; set; }
|
|
|
|
[JsonPropertyName("amplitude_range")]
|
|
public double[] AmplitudeRange { get; set; }
|
|
|
|
[JsonPropertyName("metadata")]
|
|
public VoiceprintMetadata Metadata { get; set; }
|
|
}
|
|
|
|
public class VoiceprintMetadata
|
|
{
|
|
[JsonPropertyName("device_id")]
|
|
public string DeviceId { get; set; }
|
|
|
|
[JsonPropertyName("sample_rate")]
|
|
public int SampleRate { get; set; }
|
|
}
|
|
} |