main
1using System;
2using System.Collections.Generic;
3
4namespace BloggerToDasBlog.Console {
5 public class BloggerEntry : IBloggerEntry {
6 public BloggerEntry( ) {
7 _comments = new List< IBloggerComment >( );
8 }
9
10 public BloggerEntry( Uri url, string title, string body, string author, DateTime date,
11 IList< IBloggerComment > comments ) {
12 _url = url;
13 _title = title;
14 _body = body;
15 _author = author;
16 _date = date;
17 _comments = comments;
18 }
19
20 public Uri Url {
21 get { return _url; }
22 }
23
24 public string Title {
25 get { return _title; }
26 set { _title = value; }
27 }
28
29 public string Body {
30 get { return _body; }
31 set { _body = value; }
32 }
33
34 public string Author {
35 get { return _author; }
36 set { _author = value; }
37 }
38
39 public DateTime Date {
40 get { return _date; }
41 set { _date = value; }
42 }
43
44 public IList< IBloggerComment > Comments {
45 get { return _comments; }
46 }
47
48 private Uri _url;
49 private String _title;
50 private String _body;
51 private String _author;
52 private DateTime _date;
53 private IList< IBloggerComment > _comments;
54 }
55}