getting things working

This commit is contained in:
Andrew Welker 2020-07-17 13:48:03 -06:00
parent aede5355b7
commit d6a6791e7b
5 changed files with 204 additions and 94 deletions

View file

@ -1,4 +1,5 @@
using PepperDash.Core;
using Newtonsoft.Json.Converters;
using PepperDash.Core;
using Newtonsoft.Json;
namespace PepperDash.Essentials.Core.Rooms.Config
@ -9,11 +10,15 @@ namespace PepperDash.Essentials.Core.Rooms.Config
public class EssentialsNDisplayRoomPropertiesConfig : EssentialsHuddleVtc1PropertiesConfig
{
[JsonProperty("defaultAudioBehavior")]
public string DefaultAudioBehavior { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public EAudioBehavior DefaultAudioBehavior { get; set; }
[JsonProperty("defaultVideoBehavior")]
public string DefaultVideoBehavior { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public EVideoBehavior DefaultVideoBehavior { get; set; }
[JsonProperty("destinationListKey")]
public string DestinationListKey { get; set; }
[JsonProperty("enableVideoBehaviorToggle")]
public bool EnableVideoBehaviorToggle { get; set; }
}
public class DisplayItem : IKeyName
@ -21,4 +26,17 @@ namespace PepperDash.Essentials.Core.Rooms.Config
public string Key { get; set; }
public string Name { get; set; }
}
public enum EVideoBehavior
{
Basic,
Advanced
}
public enum EAudioBehavior
{
AudioFollowVideo,
ChooseAudioFromDisplay,
AudioFollowVideoWithDeroute
}
}