22 lines
581 B
C#
22 lines
581 B
C#
namespace IntegrationGateway.Core.Abstractions;
|
|
|
|
public interface IAcceptsMetadataPush : IIntegrationAdapter
|
|
{
|
|
Task<MetadataPushResult> PushMetadataAsync(string sourceDeviceId, MetadataChangeSet changes);
|
|
}
|
|
|
|
public class MetadataChangeSet
|
|
{
|
|
public string? Name { get; set; }
|
|
public string? IpAddress { get; set; }
|
|
public int? Port { get; set; }
|
|
public int? StreamMode { get; set; }
|
|
}
|
|
|
|
public class MetadataPushResult
|
|
{
|
|
public bool Success { get; set; }
|
|
public List<string> RejectedFields { get; set; } = new();
|
|
public string? Reason { get; set; }
|
|
}
|