Server/Actions/ActionCecDeviceType.cs
author StephaneLenclud
Thu, 18 Aug 2016 18:49:03 +0200
changeset 241 3b5a94f31400
parent 222 0e8c6c2f4777
permissions -rw-r--r--
Adding support for HID Keyboard events.
StephaneLenclud@222
     1
using CecSharp;
StephaneLenclud@222
     2
using SharpLib.Ear;
StephaneLenclud@222
     3
using System;
StephaneLenclud@222
     4
using System.Collections.Generic;
StephaneLenclud@222
     5
using System.Linq;
StephaneLenclud@222
     6
using System.Runtime.InteropServices;
StephaneLenclud@222
     7
using System.Runtime.Serialization;
StephaneLenclud@222
     8
using System.Text;
StephaneLenclud@222
     9
using System.Threading.Tasks;
StephaneLenclud@222
    10
StephaneLenclud@222
    11
namespace SharpDisplayManager
StephaneLenclud@222
    12
{
StephaneLenclud@222
    13
    /// <summary>
StephaneLenclud@222
    14
    /// Abstract CEC action using a device type.
StephaneLenclud@222
    15
    /// </summary>
StephaneLenclud@222
    16
    [DataContract]
StephaneLenclud@222
    17
    public abstract class ActionCecDeviceType : SharpLib.Ear.Action
StephaneLenclud@222
    18
    {
StephaneLenclud@222
    19
        [DataMember]
StephaneLenclud@231
    20
        [AttributeObjectProperty
StephaneLenclud@222
    21
            (
StephaneLenclud@222
    22
            Id = "CEC.DeviceType",
StephaneLenclud@222
    23
            Name = "Device Type",
StephaneLenclud@222
    24
            Description = "The device type used by this action."
StephaneLenclud@222
    25
            )
StephaneLenclud@222
    26
        ]
StephaneLenclud@222
    27
        public CecDeviceType DeviceType { get; set; }
StephaneLenclud@222
    28
    }
StephaneLenclud@222
    29
}