C# 클래스 OnlineVideos.Sites.Updater

파일 보기 프로젝트 열기: offbyoneBB/mp-onlinevideos2

공개 메소드들

메소드 설명
GetRemoteOverviews ( bool force = false ) : bool

Refreshes the OnlineSites and OnlineDlls from the webservice every ten minutes.

GetRemoteSite ( string siteName, OnlineVideosService ws = null ) : SiteSettings
UpdateSites ( ProgressReport progressCallback = null, List onlineSitesToUpdate = null, bool onlyUpdateNoAdd = true, bool skipCategories = false ) : bool?

This method will update the local xml with sites retrieved from the global webservice. It will also download icons, banner and updated dlls. Make sure the local sites are loaded and all paths (OnlineVideoSettings.DllsDir, OnlineVideoSettings.ConfigDir, OnlineVideoSettings.ThumbsDir) are set before calling.

비공개 메소드들

메소드 설명
CopyDlls ( string sourceDir, string targetDir ) : void
DownloadDll ( string dllName, string localPath ) : bool

메소드 상세

GetRemoteOverviews() 공개 정적인 메소드

Refreshes the OnlineSites and OnlineDlls from the webservice every ten minutes.
public static GetRemoteOverviews ( bool force = false ) : bool
force bool forces the refresh, ignoring the ten minutes refresh interval
리턴 bool

GetRemoteSite() 공개 정적인 메소드

public static GetRemoteSite ( string siteName, OnlineVideosService ws = null ) : SiteSettings
siteName string
ws OnlineVideosService
리턴 SiteSettings

UpdateSites() 공개 정적인 메소드

This method will update the local xml with sites retrieved from the global webservice. It will also download icons, banner and updated dlls. Make sure the local sites are loaded and all paths (OnlineVideoSettings.DllsDir, OnlineVideoSettings.ConfigDir, OnlineVideoSettings.ThumbsDir) are set before calling.
public static UpdateSites ( ProgressReport progressCallback = null, List onlineSitesToUpdate = null, bool onlyUpdateNoAdd = true, bool skipCategories = false ) : bool?
progressCallback ProgressReport pointer to the delegate that will receive progress information
onlineSitesToUpdate List update the local sites from this list of online sites, if null (default) the complete global list is retrieved
onlyUpdateNoAdd bool true (default) -> only update already existing local sites, false -> update and add sites from the online list
skipCategories bool do not update the categories of existing local sites if true (default is false so categories will also be updated)
리턴 bool?