-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathComment.cs
104 lines (85 loc) · 3.36 KB
/
Comment.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//Copyright (c) 2004-2007
//by Engage Software ( http://www.engagesoftware.com )
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
//TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
//THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
//CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
//DEALINGS IN THE SOFTWARE.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using Engage.Dnn.Locator.Data;
namespace Engage.Dnn.Locator
{
public class Comment
{
#region Properties
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
private int _commentId;
public int CommentId
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
get { return _commentId; }
[System.Diagnostics.DebuggerStepThroughAttribute()]
set { _commentId = value; }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
private string _text;
public string Text
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
get { return _text; }
[System.Diagnostics.DebuggerStepThroughAttribute()]
set { _text = value; }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
private string _submittedBy;
public string SubmittedBy
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
get { return _submittedBy; }
[System.Diagnostics.DebuggerStepThroughAttribute()]
set { _submittedBy = value; }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
private bool _approved;
public bool Approved
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
get { return _approved; }
[System.Diagnostics.DebuggerStepThroughAttribute()]
set { _approved = value; }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
private string _locationName;
public string LocationName
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
get { return _locationName; }
[System.Diagnostics.DebuggerStepThroughAttribute()]
set { _locationName = value; }
}
#endregion
#region Methods
public void Update()
{
DataProvider.Instance().SaveComment(this);
}
public void SaveComment()
{
DataProvider.Instance().SaveComment(this);
}
#endregion
#region Static Methods
public static Comment GetComment(int commentId)
{
return DataProvider.Instance().GetComment(commentId);
}
public static void DeleteComment(int commentId)
{
DataProvider.Instance().DeleteComment(commentId);
}
#endregion
}
}