C# Class gp.Files.QuoteDB

Create and Maintain a List of Random Quotes.
Afficher le fichier Open project: vatsal/getputs

Méthodes publiques

Méthode Description
GetRandomQuote ( ) : string

Get a RandomQuote from the QuoteDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

ReLoadList ( ) : void

Reload the QuoteDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

StoreQuote ( string fullFilePath, int count ) : void

Get and Store n number of Random Quotes from the quoteLink, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

Private Methods

Méthode Description
QuoteDB ( ) : System

Reads Words File

Method Details

GetRandomQuote() public méthode

Get a RandomQuote from the QuoteDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public GetRandomQuote ( ) : string
Résultat string

ReLoadList() public méthode

Reload the QuoteDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public ReLoadList ( ) : void
Résultat void

StoreQuote() public méthode

Get and Store n number of Random Quotes from the quoteLink, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public StoreQuote ( string fullFilePath, int count ) : void
fullFilePath string The Path and the FileName.
count int The number of quotes to be returned.
Résultat void