using ProtoBuf;

namespace Quasar.Common.Messages
{
    [ProtoContract]
    public class GetDesktop : IMessage
    {
        [ProtoMember(1)]
        public bool CreateNew { get; set; }

        [ProtoMember(2)]
        public int Quality { get; set; }

        [ProtoMember(3)]
        public int DisplayIndex { get; set; }

        [ProtoMember(4)]
        public bool StopStreaming { get; set; }

        [ProtoMember(5)]
        public int FpsCap { get; set; }

        /// <summary>
        /// UDP port on the server to send frame data to. 0 = use TCP fallback.
        /// </summary>
        [ProtoMember(6)]
        public int UdpPort { get; set; }

        /// <summary>
        /// Server IP/hostname the client should send UDP frames to.
        /// </summary>
        [ProtoMember(7)]
        public string UdpHost { get; set; }
    }
}
