Remotely/Shared/Models/RemoteControlDtos/ScreenSizeDto.cs
2021-07-29 07:56:42 -07:00

28 lines
651 B
C#

using Remotely.Shared.Enums;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
namespace Remotely.Shared.Models.RemoteControlDtos
{
[DataContract]
public class ScreenSizeDto : BaseDto
{
public ScreenSizeDto(int width, int height)
{
Width = width;
Height = height;
}
[DataMember(Name = "Width")]
public int Width { get; }
[DataMember(Name = "Height")]
public int Height { get; }
[DataMember(Name = "DtoType")]
public new BaseDtoType DtoType { get; } = BaseDtoType.ScreenSize;
}
}