-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMediaFieldType.cs
38 lines (34 loc) · 1.04 KB
/
MediaFieldType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
namespace TheAppsPajamas.Shared.Types
{
public class MediaFieldType : FieldType
{
public virtual int Width { get; }
public virtual int Height { get; }
public MediaFieldType(string value
, string displayName
, ProjectType projectType
, FieldHolderType fieldHolderType
, int order
, bool isForClient
, bool isProdReady
, bool defaultToDisabled
, MediaFieldType inheritsFromDefault
, Dictionary<string, string> metadata
, int width
, int height = 0) : base(value, displayName, projectType, fieldHolderType, order, isForClient, isProdReady, defaultToDisabled, inheritsFromDefault, metadata)
{
Width = width;
if (height == 0)
{
Height = width;
}
else
{
Height = height;
}
}
}
}