mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 10:15:01 +00:00
Additional fix to top next meeting warning popups when room is on
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
<Compile Include="Streaming\Roku.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\BookingsDataClasses.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\CallHistoryDataClasses.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\CameraConverter.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\CiscoSparkCodec.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\CiscoSparkCodecPropertiesConfig.cs" />
|
||||
<Compile Include="VideoCodec\CiscoCodec\xStatusSparkPlus.cs" />
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
|
||||
//namespace PepperDash.Essentials.Devices.Common.VideoCodec.CiscoCodec
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// This helps convert the camera section differences between Spark and Spark+
|
||||
// /// One of them returns an object. One returns an array.
|
||||
// /// </summary>
|
||||
// public class CameraConverter : JsonConverter
|
||||
// {
|
||||
|
||||
// public override bool CanConvert(System.Type objectType)
|
||||
// {
|
||||
// return objectType == typeof(Camera) || objectType == typeof(List<Camera>);
|
||||
// }
|
||||
|
||||
// public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
|
||||
// {
|
||||
// if (reader.TokenType == JsonToken.StartArray)
|
||||
// {
|
||||
// var l = new List<Camera>();
|
||||
// reader.Read();
|
||||
// while (reader.TokenType != JsonToken.EndArray)
|
||||
// {
|
||||
// l.Add(reader.Value as Camera);
|
||||
// reader.Read();
|
||||
// }
|
||||
// return l;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return new List<Camera> { reader.Value as Camera };
|
||||
// }
|
||||
// }
|
||||
|
||||
// public override bool CanWrite
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
// public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
// {
|
||||
// throw new NotImplementedException("SOD OFF HOSER");
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
@@ -2,8 +2,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
{
|
||||
/// <summary>
|
||||
@@ -239,7 +243,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
|
||||
public class Cameras
|
||||
{
|
||||
public List<Camera> Camera { get; set; }
|
||||
//[JsonConverter(typeof(CameraConverter))]
|
||||
//public List<Camera> Camera { get; set; }
|
||||
public SpeakerTrack SpeakerTrack { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharp.CrestronXml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
using PepperDash.Core;
|
||||
|
||||
@@ -313,12 +315,13 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
|
||||
public class Cameras
|
||||
{
|
||||
public List<Camera> Camera { get; set; }
|
||||
//[JsonConverter(typeof(CameraConverter))]
|
||||
//public List<Camera> Camera { get; set; }
|
||||
public SpeakerTrack SpeakerTrack { get; set; }
|
||||
|
||||
public Cameras()
|
||||
{
|
||||
Camera = new List<Camera>();
|
||||
//Camera = new List<Camera>();
|
||||
SpeakerTrack = new SpeakerTrack();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user