using
System;
using
System.Data;
using
System.Configuration;
using
System.Linq;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.HtmlControls;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Xml.Linq;
using
System.Web.UI.MobileControls;
using
System.Collections.Generic;
///
<summary>
///
Summary description for Articles
///
</summary>
public
class
Articles
{
public
Articles()
{
//
//
TODO: Add constructor logic here
//
}
public
static
List
<
Article
>
GetArticles()
{
return
new
List
<
Article
>
(){
new
Article(
234
,
"
blog
"
, DateTime.Now.AddDays(
-
23
), Freq.none,
0.8
,
"
asp.net seo
"
,
"
articles about SEO in asp.net
"
),
new
Article(
267
,
"
blog
"
, DateTime.Now.AddDays(
-
245
), Freq.daily,
0.6
,
"
ado.net pro
"
,
"
about the dataset usage
"
),
new
Article(
653
,
"
news
"
, DateTime.Now.AddDays(
-
45
), Freq.daily,
1
,
"
CLR via C#
"
,
"
notebook about this book
"
)
};
}
}
public
class
Article
{
public
int
ID;
public
string
Catelog;
public
DateTime LastMod;
public
double
Weight;
public
Freq Frequency;
public
string
Title;
public
string
Description;
public
Article(
int
id,
string
catelog, DateTime lastMod, Freq frequency,
double
weight,
string
title,
string
description)
{
ID
=
id;
Catelog
=
catelog;
LastMod
=
lastMod;
Weight
=
weight;
Frequency
=
frequency;
Title
=
title;
Description
=
description;
}
}
public
enum
Freq
{
none
=
1
,
daily
=
2
,
weekly
=
3
,
}