forked from valdisiljuconoks/optimizely-advanced-contentarea
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayModeFallback.cs
More file actions
43 lines (34 loc) · 1.02 KB
/
DisplayModeFallback.cs
File metadata and controls
43 lines (34 loc) · 1.02 KB
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
39
40
41
42
43
using System;
using System.ComponentModel.DataAnnotations;
using EPiServer.Data;
using EPiServer.Data.Dynamic;
namespace EPiBootstrapArea
{
[EPiServerDataStore(AutomaticallyCreateStore = true, AutomaticallyRemapStore = true)]
[Serializable]
public class DisplayModeFallback
{
public DisplayModeFallback()
{
Id = Identity.NewIdentity();
}
public Identity Id { get; internal set; }
[Required(AllowEmptyStrings = false)]
public string Name { get; set; }
[Required(AllowEmptyStrings = false)]
public string Tag { get; set; }
[Required]
[Range(1, 12)]
public int LargeScreenWidth { get; set; }
[Required]
[Range(1, 12)]
public int MediumScreenWidth { get; set; }
[Required]
[Range(1, 12)]
public int SmallScreenWidth { get; set; }
[Required]
[Range(1, 12)]
public int ExtraSmallScreenWidth { get; set; }
public string Icon { get; set; }
}
}