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
|
using System;
public class Comment
{
private string _id;
private string _html;
private string _username;
private string _photoid;
public Comment(string commentid, string commenthtml, string username) {
this._id = commentid;
this._html = commenthtml;
this._username = username;
}
public Comment(string photoid, string commentid, string commenthtml,
string username) : this(commentid, commenthtml, username) {
this._photoid = photoid;
}
public string CommentId {
get {
return _id;
}
}
public string CommentHtml {
get {
return _html;
}
}
public string UserName {
get {
return _username;
}
}
public string PhotoId {
get {
return _photoid;
}
}
}
|