C# Class Octgn.Core.GameFeedManager

Inheritance: IGameFeedManager
显示文件 Open project: octgn/OCTGN

Private Properties

Property Type Description
FireOnUpdateFeedList void
VerifyPackage void

Public Methods

Method Description
AddFeed ( string name, string feed, string username, string password ) : void

Add a feed url to the system.

AddToLocalFeed ( string file ) : void
CheckForUpdates ( bool localOnly = false, int>.Action onProgressUpdate = null ) : void
Dispose ( ) : void
ExtractPackage ( string directory, IPackage package, int>.Action onProgressUpdate = null ) : void
GameFeedManager ( ) : System
Get ( ) : IGameFeedManager
GetFeeds ( bool localOnly = false ) : IEnumerable

Gets all saved game feeds

GetPackages ( Octgn.Library.Networking.NamedUrl url ) : IEnumerable
RemoveFeed ( string name ) : void

Remove a feed url from the system.

ValidateFeedUrl ( string feed, string username, string password ) : FeedValidationResult

Make sure a feed url is valid. This doesn't check to make sure it has octgn games on it, it only checks to make sure it's a valid nuget feed, and sometimes it's even wrong when it check that, so don't 100% rely on this for validation.

Protected Methods

Method Description
FireOnUpdateMessage ( string obj ) : void

Private Methods

Method Description
FireOnUpdateFeedList ( ) : void
VerifyPackage ( string filename ) : void

Method Details

AddFeed() public method

Add a feed url to the system.
If the feed name already exists or the feed is invalid.
public AddFeed ( string name, string feed, string username, string password ) : void
name string Feed name
feed string Feed url
username string Feed Username(Null if none)
password string Feed Password(Null if none)
return void

AddToLocalFeed() public method

public AddToLocalFeed ( string file ) : void
file string
return void

CheckForUpdates() public method

public CheckForUpdates ( bool localOnly = false, int>.Action onProgressUpdate = null ) : void
localOnly bool
onProgressUpdate int>.Action
return void

Dispose() public method

public Dispose ( ) : void
return void

ExtractPackage() public method

public ExtractPackage ( string directory, IPackage package, int>.Action onProgressUpdate = null ) : void
directory string
package IPackage
onProgressUpdate int>.Action
return void

FireOnUpdateMessage() protected method

protected FireOnUpdateMessage ( string obj ) : void
obj string
return void

GameFeedManager() public method

public GameFeedManager ( ) : System
return System

Get() public static method

public static Get ( ) : IGameFeedManager
return IGameFeedManager

GetFeeds() public method

Gets all saved game feeds
public GetFeeds ( bool localOnly = false ) : IEnumerable
localOnly bool Only retrieves items from the local feed
return IEnumerable

GetPackages() public method

public GetPackages ( Octgn.Library.Networking.NamedUrl url ) : IEnumerable
url Octgn.Library.Networking.NamedUrl
return IEnumerable

RemoveFeed() public method

Remove a feed url from the system.
public RemoveFeed ( string name ) : void
name string Feed name
return void

ValidateFeedUrl() public method

Make sure a feed url is valid. This doesn't check to make sure it has octgn games on it, it only checks to make sure it's a valid nuget feed, and sometimes it's even wrong when it check that, so don't 100% rely on this for validation.
public ValidateFeedUrl ( string feed, string username, string password ) : FeedValidationResult
feed string Feed url
username string Feed Username
password string Feed Password
return FeedValidationResult