diff options
Diffstat (limited to 'src/app/BloggerToDasBlog.Console/BloggerEntry.cs')
| -rw-r--r-- | src/app/BloggerToDasBlog.Console/BloggerEntry.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/app/BloggerToDasBlog.Console/BloggerEntry.cs b/src/app/BloggerToDasBlog.Console/BloggerEntry.cs new file mode 100644 index 0000000..bb710c5 --- /dev/null +++ b/src/app/BloggerToDasBlog.Console/BloggerEntry.cs @@ -0,0 +1,55 @@ +using System;
+using System.Collections.Generic;
+
+namespace BloggerToDasBlog.Console {
+ public class BloggerEntry : IBloggerEntry {
+ public BloggerEntry( ) {
+ _comments = new List< IBloggerComment >( );
+ }
+
+ public BloggerEntry( Uri url, string title, string body, string author, DateTime date,
+ IList< IBloggerComment > comments ) {
+ _url = url;
+ _title = title;
+ _body = body;
+ _author = author;
+ _date = date;
+ _comments = comments;
+ }
+
+ public Uri Url {
+ get { return _url; }
+ }
+
+ public string Title {
+ get { return _title; }
+ set { _title = value; }
+ }
+
+ public string Body {
+ get { return _body; }
+ set { _body = value; }
+ }
+
+ public string Author {
+ get { return _author; }
+ set { _author = value; }
+ }
+
+ public DateTime Date {
+ get { return _date; }
+ set { _date = value; }
+ }
+
+ public IList< IBloggerComment > Comments {
+ get { return _comments; }
+ }
+
+ private Uri _url;
+ private String _title;
+ private String _body;
+ private String _author;
+ private DateTime _date;
+ private IList< IBloggerComment > _comments;
+ }
+}
\ No newline at end of file |
