Server/Actions/ActionCecDeviceType.cs
author StephaneLenclud
Wed, 27 Jul 2016 11:07:35 +0200
changeset 222 0e8c6c2f4777
child 231 4c706feaf706
permissions -rw-r--r--
Adding send and release CEC key actions.
Edit action ComboBox now sorted and selecting proper item.
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@222
    20
        [AttributeActionProperty
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
}