-
Notifications
You must be signed in to change notification settings - Fork 2
/
IMediaTemplate.cs
84 lines (76 loc) · 2.6 KB
/
IMediaTemplate.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
namespace GalleryServerPro.Business.Interfaces
{
/// <summary>
/// Represents a media template within Gallery Server Pro. A media template describes the HTML and javascript that is used
/// to render a media object in a particular browser.
/// </summary>
public interface IMediaTemplate
{
/// <summary>
/// Gets or sets the value that uniquely identifies this media template.
/// </summary>
/// <value>The media template ID.</value>
int MediaTemplateId
{
get;
set;
}
/// <summary>
/// Gets a value indicating whether this object is new and has not yet been persisted to the data store.
/// </summary>
/// <value><c>true</c> if this instance is new; otherwise, <c>false</c>.</value>
bool IsNew { get; }
/// <summary>
/// Gets or sets the identifier of a browser as specified in the .Net Framework's browser definition file. Every MIME type must
/// have one media template where <see cref="BrowserId" /> = "default". Additional <see cref="IMediaTemplate" /> objects
/// may represent a more specific browser or browser family, such as Internet Explorer (<see cref="BrowserId" /> = "ie").
/// </summary>
/// <value>The identifier of a browser as specified in the .Net Framework's browser definition file.</value>
string BrowserId
{
get;
set;
}
/// <summary>
/// Gets or sets the HTML template to use to render a media object in a web browser.
/// </summary>
/// <value>The HTML template to use to render a media object in a web browser.</value>
string HtmlTemplate
{
get;
set;
}
/// <summary>
/// Gets or sets the javascript template to use when rendering a media object in a web browser.
/// </summary>
/// <value>The javascript template to use when rendering a media object in a web browser.</value>
string ScriptTemplate
{
get;
set;
}
/// <summary>
/// Gets or sets the MIME type this media template applies to. Examples: image/*, video/*, video/quicktime, application/pdf.
/// Notice that an asterisk (*) can be used to represent all subtypes within a type (e.g. "video/*" matches all videos).
/// </summary>
/// <value>The MIME type this media template applies to.</value>
string MimeType
{
get;
set;
}
/// <summary>
/// Creates a deep copy of this instance.
/// </summary>
/// <returns>Returns a deep copy of this instance.</returns>
IMediaTemplate Copy();
/// <summary>
/// Persist this template object to the data store.
/// </summary>
void Save();
/// <summary>
/// Permanently delete the current template from the data store. This action cannot be undone.
/// </summary>
void Delete();
}
}