C# Класс Octgn.Core.GameFeedManager

Наследование: IGameFeedManager
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
FireOnUpdateFeedList void
VerifyPackage void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
FireOnUpdateMessage ( string obj ) : void

Приватные методы

Метод Описание
FireOnUpdateFeedList ( ) : void
VerifyPackage ( string filename ) : void

Описание методов

AddFeed() публичный Метод

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)
Результат void

AddToLocalFeed() публичный Метод

public AddToLocalFeed ( string file ) : void
file string
Результат void

CheckForUpdates() публичный Метод

public CheckForUpdates ( bool localOnly = false, int>.Action onProgressUpdate = null ) : void
localOnly bool
onProgressUpdate int>.Action
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

ExtractPackage() публичный Метод

public ExtractPackage ( string directory, IPackage package, int>.Action onProgressUpdate = null ) : void
directory string
package IPackage
onProgressUpdate int>.Action
Результат void

FireOnUpdateMessage() защищенный Метод

protected FireOnUpdateMessage ( string obj ) : void
obj string
Результат void

GameFeedManager() публичный Метод

public GameFeedManager ( ) : System
Результат System

Get() публичный статический Метод

public static Get ( ) : IGameFeedManager
Результат IGameFeedManager

GetFeeds() публичный Метод

Gets all saved game feeds
public GetFeeds ( bool localOnly = false ) : IEnumerable
localOnly bool Only retrieves items from the local feed
Результат IEnumerable

GetPackages() публичный Метод

public GetPackages ( Octgn.Library.Networking.NamedUrl url ) : IEnumerable
url Octgn.Library.Networking.NamedUrl
Результат IEnumerable

RemoveFeed() публичный Метод

Remove a feed url from the system.
public RemoveFeed ( string name ) : void
name string Feed name
Результат void

ValidateFeedUrl() публичный Метод

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
Результат FeedValidationResult