-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageMapItem.cs
More file actions
53 lines (46 loc) · 1.63 KB
/
ImageMapItem.cs
File metadata and controls
53 lines (46 loc) · 1.63 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
44
45
46
47
48
49
50
51
52
53
using Newtonsoft.Json;
namespace com.shepherdchurch.CheckinMap
{
/// <summary>
/// Helper class for converting data into JSON syntax.
/// </summary>
public class ImageMapItem
{
/// <summary>
/// The unique identifier of this particular item.
/// </summary>
[JsonProperty( "id" )]
public string Identifier { get; set; }
/// <summary>
/// The additional CSS Class(es) to be applied to the imagemap-button item.
/// </summary>
[JsonProperty( "class" )]
public string CssClass { get; set; }
/// <summary>
/// The contents of the imagemap-title element;
/// </summary>
[JsonProperty( "title" )]
public string Title { get; set; }
/// <summary>
/// The contents of the imagemap-text element.
/// </summary>
[JsonProperty( "text" )]
public string Text { get; set; }
/// <summary>
/// The center-x position (usually as a percentage) of the imagemap-button element within it's parent.
/// </summary>
[JsonProperty( "x" )]
public string PositionX { get; set; }
/// <summary>
/// The center-y position (usually as a percentage) of the imagemap-button element within it's parent.
/// </summary>
[JsonProperty( "y" )]
public string PositionY { get; set; }
/// <summary>
/// The URL to apply to the href attribute of the imagemap-button element. If blank then no hyperlink
/// is setup.
/// </summary>
[JsonProperty( "url" )]
public string Url { get; set; }
}
}