RSS voogude värskete uudiste korjamise rakendus: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
<br />Koodi saab kätte SVN kliendi abil, näiteks [http://tortoisesvn.net/downloads tortoise SVN] | <br />Koodi saab kätte SVN kliendi abil, näiteks [http://tortoisesvn.net/downloads tortoise SVN] | ||
<br /> | <br /> | ||
<br />Huuvitavad kohad koodist | <br />Huuvitavad kohad koodist: | ||
<br />[[Rfc822DateTimeFormat csharp]] RSS aja standarti c# implementatsioon | |||
<source lang=csharp>public static string[] Rfc822DateTimePatterns { | <source lang=csharp>public static string[] Rfc822DateTimePatterns { | ||
get { | get { | ||
Line 23: | Line 23: | ||
// two-digit day, four-digit year patterns | // two-digit day, four-digit year patterns | ||
formats[0] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fffffff zzzz"; | formats[0] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fffffff zzzz"; | ||
</source> | |||
<br />[[RssFeed Retrieve]] RSS voogu uudiste nimekiri kätte saamine | |||
<source lang=csharp>/// <summary> | |||
/// Retrieves an RSS feed using the given Url, parses it and | |||
/// creates and new <see cref="RssFeed">RssFeed</see> object with the information. | |||
/// If an error occurs in the XML loading of the document, or parsing of | |||
/// the RSS feed, the error is trapped and stored inside the RssFeed's | |||
/// ErrorMessage property. | |||
/// </summary> | |||
/// <param name="Url">The url to retrieve the RSS feed from, this can | |||
/// be in the format of http:// and also file://.. (ftp?)</param> | |||
/// <returns>An <see cref="RssFeed">RssFeed</see> object with information | |||
/// retrieved from the feed.</returns> | |||
public RssFeed Retrieve(string Url) { | |||
</source> | </source> | ||
</p> | </p> |
Revision as of 14:00, 16 April 2010
Idee oli koostada webi teenus mis oskaks kasutajate RSS voogude nimekirjast koostada viimaste uudiste nimekiri.
Probleemide nimekiri oli teada:
1) RSS voogud on disaini poolest erinevad
2) RSS aja formaati standart on uurimata
3) Uudiste sünkrooniline uuendamine on aeglane
Pakkutav lahendus oli:
1) Rakenduses kasutakse ainult ühine osa RSS voogudest
2) Aja formaat uurida ja leida lahendust
3) Uudised uuendada asünkroonselt
Rakendus on paigaldatud siin siin (google code)
Koodi saab kätte SVN kliendi abil, näiteks tortoise SVN
Huuvitavad kohad koodist:
Rfc822DateTimeFormat csharp RSS aja standarti c# implementatsioon
public static string[] Rfc822DateTimePatterns {
get {
formats = new string[35];
// two-digit day, four-digit year patterns
formats[0] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fffffff zzzz";
RssFeed Retrieve RSS voogu uudiste nimekiri kätte saamine
/// <summary>
/// Retrieves an RSS feed using the given Url, parses it and
/// creates and new <see cref="RssFeed">RssFeed</see> object with the information.
/// If an error occurs in the XML loading of the document, or parsing of
/// the RSS feed, the error is trapped and stored inside the RssFeed's
/// ErrorMessage property.
/// </summary>
/// <param name="Url">The url to retrieve the RSS feed from, this can
/// be in the format of http:// and also file://.. (ftp?)</param>
/// <returns>An <see cref="RssFeed">RssFeed</see> object with information
/// retrieved from the feed.</returns>
public RssFeed Retrieve(string Url) {