summaryrefslogtreecommitdiff
path: root/src/app/BloggerToDasBlog.Console/BloggerEntry.cs
blob: bb710c5be0483cd16ed022d7820b8ae02e8d9df7 (plain)
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
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;
	}
}