C# Class gp.Files.QuoteDB

Create and Maintain a List of Random Quotes.
Mostra file Open project: vatsal/getputs

Public Methods

Method 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

Method Description
QuoteDB ( ) : System

Reads Words File

Method Details

GetRandomQuote() public method

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
return string

ReLoadList() public method

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
return void

StoreQuote() public method

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.
return void