mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
Merge pull request #1417 from PepperDash/maintenance/add-deprecations
This commit is contained in:
commit
17adac639e
9 changed files with 137 additions and 124 deletions
|
|
@ -11,6 +11,7 @@ namespace PepperDash.Core
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a debugging context
|
/// Represents a debugging context
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("DebugContext is no longer supported and will be removed in a future release.")]
|
||||||
public class DebugContext
|
public class DebugContext
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ namespace PepperDash.Core.WebApi.Presets
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Passcode client for the WebApi
|
/// Passcode client for the WebApi
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("WebApiPasscodeClient is no longer supported and will be removed in a future release.")]
|
||||||
public class WebApiPasscodeClient : IKeyed
|
public class WebApiPasscodeClient : IKeyed
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -106,11 +107,11 @@ namespace PepperDash.Core.WebApi.Presets
|
||||||
var user = JsonConvert.DeserializeObject<User>(resp.ContentString);
|
var user = JsonConvert.DeserializeObject<User>(resp.ContentString);
|
||||||
CurrentUser = user;
|
CurrentUser = user;
|
||||||
if (handler != null)
|
if (handler != null)
|
||||||
UserReceived(this, new UserReceivedEventArgs(user, true));
|
handler(this, new UserReceivedEventArgs(user, true));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (handler != null)
|
if (handler != null)
|
||||||
UserReceived(this, new UserReceivedEventArgs(null, false));
|
handler(this, new UserReceivedEventArgs(null, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -170,14 +171,14 @@ namespace PepperDash.Core.WebApi.Presets
|
||||||
|
|
||||||
J2SMaster.LoadWithJson(preset.Data);
|
J2SMaster.LoadWithJson(preset.Data);
|
||||||
if (handler != null)
|
if (handler != null)
|
||||||
PresetReceived(this, new PresetReceivedEventArgs(preset, true));
|
handler(this, new PresetReceivedEventArgs(preset, true));
|
||||||
}
|
}
|
||||||
else // no existing preset
|
else // no existing preset
|
||||||
{
|
{
|
||||||
CurrentPreset = new Preset();
|
CurrentPreset = new Preset();
|
||||||
LoadDefaultPresetData();
|
LoadDefaultPresetData();
|
||||||
if (handler != null)
|
if (handler != null)
|
||||||
PresetReceived(this, new PresetReceivedEventArgs(null, false));
|
handler(this, new PresetReceivedEventArgs(null, false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (HttpException e)
|
catch (HttpException e)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ namespace PepperDash.Essentials.Core.Config
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ConfigUpdater class
|
/// ConfigUpdater class
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("ConfigUpdater is no longer supported and will be removed in a future release.")]
|
||||||
public static class ConfigUpdater
|
public static class ConfigUpdater
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -149,7 +150,7 @@ namespace PepperDash.Essentials.Core.Config
|
||||||
// Directory exists, first clear any contents
|
// Directory exists, first clear any contents
|
||||||
var archivedConfigFiles = ConfigReader.GetConfigFiles(archiveDirectoryPath + Global.DirectorySeparator + Global.ConfigFileName + ".bak");
|
var archivedConfigFiles = ConfigReader.GetConfigFiles(archiveDirectoryPath + Global.DirectorySeparator + Global.ConfigFileName + ".bak");
|
||||||
|
|
||||||
if(archivedConfigFiles != null || archivedConfigFiles.Length > 0)
|
if (archivedConfigFiles != null && archivedConfigFiles.Length > 0)
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Information, "{0} Existing files found in archive folder. Deleting.", archivedConfigFiles.Length);
|
Debug.LogMessage(LogEventLevel.Information, "{0} Existing files found in archive folder. Deleting.", archivedConfigFiles.Length);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ namespace PepperDash.Essentials.Core.Interfaces
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the contract for ILogStrings
|
/// Defines the contract for ILogStrings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("ILogStrings is no longer supported and will be removed in a future release.")]
|
||||||
public interface ILogStrings : IKeyed
|
public interface ILogStrings : IKeyed
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ namespace PepperDash.Essentials.Core.Interfaces
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the contract for ILogStringsWithLevel
|
/// Defines the contract for ILogStringsWithLevel
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("ILogStringsWithLevel is no longer supported and will be removed in a future release.")]
|
||||||
public interface ILogStringsWithLevel : IKeyed
|
public interface ILogStringsWithLevel : IKeyed
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -27,16 +27,19 @@ namespace PepperDash.Essentials.Core
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Control signal type
|
/// Control signal type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("UsbOutput is no longer supported and will be removed in a future release.")]
|
||||||
UsbOutput = 8,
|
UsbOutput = 8,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Control signal type
|
/// Control signal type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("UsbInput is no longer supported and will be removed in a future release.")]
|
||||||
UsbInput = 16,
|
UsbInput = 16,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Secondary audio signal type
|
/// Secondary audio signal type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("SecondaryAudio is no longer supported and will be removed in a future release.")]
|
||||||
SecondaryAudio = 32
|
SecondaryAudio = 32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -17,6 +17,8 @@ namespace PepperDash.Essentials.Devices.Common.Cameras
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a CameraVisca
|
/// Represents a CameraVisca
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("CameraVisca is no longer supported and will be removed in a future release. Use the CameraVisca plugin instead.")]
|
||||||
|
|
||||||
public class CameraVisca : CameraBase, IHasCameraPtzControl, ICommunicationMonitor, IHasCameraPresets, IHasPowerControlWithFeedback, IBridgeAdvanced, IHasCameraFocusControl, IHasAutoFocusMode
|
public class CameraVisca : CameraBase, IHasCameraPtzControl, ICommunicationMonitor, IHasCameraPresets, IHasPowerControlWithFeedback, IBridgeAdvanced, IHasCameraFocusControl, IHasAutoFocusMode
|
||||||
{
|
{
|
||||||
private readonly CameraViscaPropertiesConfig PropertiesConfig;
|
private readonly CameraViscaPropertiesConfig PropertiesConfig;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
|
@ -18,6 +19,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
||||||
/// Sets the interfaces implemented by the device sending the message
|
/// Sets the interfaces implemented by the device sending the message
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="interfaces"></param>
|
/// <param name="interfaces"></param>
|
||||||
|
[Obsolete("SetInterfaces is no longer supported and will be removed in a future release. Interfaces for all devices are now retrieved via the /joinroom endpoint in the MobileControlWebsocketServer")]
|
||||||
public void SetInterfaces(List<string> interfaces)
|
public void SetInterfaces(List<string> interfaces)
|
||||||
{
|
{
|
||||||
Interfaces = interfaces;
|
Interfaces = interfaces;
|
||||||
|
|
|
||||||
|
|
@ -801,6 +801,7 @@ namespace PepperDash.Essentials
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fires up a logo server if not already running
|
/// Fires up a logo server if not already running
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Logo server is no longer supported and will be removed in a future release.")]
|
||||||
void LoadLogoServer()
|
void LoadLogoServer()
|
||||||
{
|
{
|
||||||
if (ConfigReader.ConfigObject?.Rooms == null)
|
if (ConfigReader.ConfigObject?.Rooms == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue