C# Class gp.Files.FactDB

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

Méthodes publiques

Méthode Description
GetRandomFact ( ) : string

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

ReLoadList ( ) : void

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

StoreFact ( string fullFilePath, int count ) : void

Get and Store n number of Random Facts from the factURL, 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
FactDB ( ) : System

Reads Words File

Method Details

GetRandomFact() public méthode

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

ReLoadList() public méthode

Reload the FactDB 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

StoreFact() public méthode

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