Re-organize all projects (#4166)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Content.Server.DeviceNetwork.Connections
|
||||
{
|
||||
public interface IDeviceNetworkConnection
|
||||
{
|
||||
public int Frequency { get; }
|
||||
/// <summary>
|
||||
/// Sends a package to a specific device
|
||||
/// </summary>
|
||||
/// <param name="frequency">The frequency the package should be send on</param>
|
||||
/// <param name="address">The target devices address</param>
|
||||
/// <param name="payload"></param>
|
||||
/// <returns></returns>
|
||||
public bool Send(int frequency, string address, Dictionary<string, string> payload);
|
||||
/// <see cref="Send(int, string, Dictionary{string, string})"/>
|
||||
public bool Send(string address, Dictionary<string, string> payload);
|
||||
/// <summary>
|
||||
/// Sends a package to all devices
|
||||
/// </summary>
|
||||
/// <param name="frequency">The frequency the package should be send on</param>
|
||||
/// <param name="payload"></param>
|
||||
/// <returns></returns>
|
||||
public bool Broadcast(int frequency, Dictionary<string, string> payload);
|
||||
/// <see cref="Broadcast(int, Dictionary{string, string})"/>
|
||||
public bool Broadcast(Dictionary<string, string> payload);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user