C# Class afung.MangaWeb3.Server.Manga

Mostrar archivo Open project: a-fung/MangaWeb3 Class Usage Examples

Private Properties

Property Type Description
CheckLockFile bool
DeleteCache void
FromData Manga
GetMangas afung.MangaWeb3.Server.Manga[]
GetResizedDimensions int[]
GetSameFileName afung.MangaWeb3.Server.Manga[]
InnerRefreshContent void
Manga System
TryOutputFile string
UpdateTags void

Public Methods

Method Description
CacheLimit ( ) : void
ChangePath ( string newPath, int newType ) : void
CheckMangaPath ( string path ) : string
CheckMangaType ( string path ) : int
CreateNewManga ( Collection collection, string path ) : Manga
Delete ( ) : void
DeleteMangas ( Manga mangas ) : void
DeleteMangasFromCollectionIds ( int cids ) : void
DeleteMangasFromIds ( int ids ) : void
GetAllMangas ( ) : afung.MangaWeb3.Server.Manga[]
GetAllTags ( ) : string[]
GetById ( int id ) : Manga
GetByPath ( string path ) : Manga
GetCover ( ) : string
GetDimensions ( int page ) : int[]
GetMangaList ( AjaxBase ajax, MangaFilter filter ) : afung.MangaWeb3.Server.Manga[]
GetMangasWithFilter ( Collection collection, string tag, string author, int type ) : afung.MangaWeb3.Server.Manga[]
GetMetaJson ( ) : AdminMangaMetaJson
GetPage ( int page, int width, int height, int part ) : string
GetTags ( ) : string[]
IncreaseViewCount ( ) : void
IsFileMissing ( ) : bool
ProcessFile ( string content, int width, int height, int part, string outputPath, string lockPath ) : void
RefreshContent ( ) : void
RefreshMangasContent ( int ids ) : void
Save ( ) : void
ToJson ( ) : MangaJson
ToJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaJson[]
ToListItemJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaListItemJson[]
ToMangaListItemJson ( ) : MangaListItemJson
UpdateMeta ( AdminMangaMetaJson obj ) : void

Private Methods

Method Description
CheckLockFile ( string lockPath ) : bool
DeleteCache ( ) : void
FromData ( object>.Dictionary data ) : Manga
GetMangas ( string where ) : afung.MangaWeb3.Server.Manga[]
GetResizedDimensions ( int page, int width, int height ) : int[]
GetSameFileName ( int cid, string path ) : afung.MangaWeb3.Server.Manga[]
InnerRefreshContent ( ) : void
Manga ( ) : System
TryOutputFile ( string content ) : string
UpdateTags ( string tags ) : void

Method Details

CacheLimit() public static method

public static CacheLimit ( ) : void
return void

ChangePath() public method

public ChangePath ( string newPath, int newType ) : void
newPath string
newType int
return void

CheckMangaPath() public static method

public static CheckMangaPath ( string path ) : string
path string
return string

CheckMangaType() public static method

public static CheckMangaType ( string path ) : int
path string
return int

CreateNewManga() public static method

public static CreateNewManga ( Collection collection, string path ) : Manga
collection Collection
path string
return Manga

Delete() public method

public Delete ( ) : void
return void

DeleteMangas() public static method

public static DeleteMangas ( Manga mangas ) : void
mangas Manga
return void

DeleteMangasFromCollectionIds() public static method

public static DeleteMangasFromCollectionIds ( int cids ) : void
cids int
return void

DeleteMangasFromIds() public static method

public static DeleteMangasFromIds ( int ids ) : void
ids int
return void

GetAllMangas() public static method

public static GetAllMangas ( ) : afung.MangaWeb3.Server.Manga[]
return afung.MangaWeb3.Server.Manga[]

GetAllTags() public static method

public static GetAllTags ( ) : string[]
return string[]

GetById() public static method

public static GetById ( int id ) : Manga
id int
return Manga

GetByPath() public static method

public static GetByPath ( string path ) : Manga
path string
return Manga

GetCover() public method

public GetCover ( ) : string
return string

GetDimensions() public method

public GetDimensions ( int page ) : int[]
page int
return int[]

GetMangaList() public static method

public static GetMangaList ( AjaxBase ajax, MangaFilter filter ) : afung.MangaWeb3.Server.Manga[]
ajax AjaxBase
filter afung.MangaWeb3.Common.MangaFilter
return afung.MangaWeb3.Server.Manga[]

GetMangasWithFilter() public static method

public static GetMangasWithFilter ( Collection collection, string tag, string author, int type ) : afung.MangaWeb3.Server.Manga[]
collection Collection
tag string
author string
type int
return afung.MangaWeb3.Server.Manga[]

GetMetaJson() public method

public GetMetaJson ( ) : AdminMangaMetaJson
return afung.MangaWeb3.Common.AdminMangaMetaJson

GetPage() public method

public GetPage ( int page, int width, int height, int part ) : string
page int
width int
height int
part int
return string

GetTags() public method

public GetTags ( ) : string[]
return string[]

IncreaseViewCount() public method

public IncreaseViewCount ( ) : void
return void

IsFileMissing() public method

public IsFileMissing ( ) : bool
return bool

ProcessFile() public method

public ProcessFile ( string content, int width, int height, int part, string outputPath, string lockPath ) : void
content string
width int
height int
part int
outputPath string
lockPath string
return void

RefreshContent() public method

public RefreshContent ( ) : void
return void

RefreshMangasContent() public static method

public static RefreshMangasContent ( int ids ) : void
ids int
return void

Save() public method

public Save ( ) : void
return void

ToJson() public method

public ToJson ( ) : MangaJson
return afung.MangaWeb3.Common.MangaJson

ToJsonArray() public static method

public static ToJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaJson[]
mangas Manga
return afung.MangaWeb3.Common.MangaJson[]

ToListItemJsonArray() public static method

public static ToListItemJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaListItemJson[]
mangas Manga
return afung.MangaWeb3.Common.MangaListItemJson[]

ToMangaListItemJson() public method

public ToMangaListItemJson ( ) : MangaListItemJson
return afung.MangaWeb3.Common.MangaListItemJson

UpdateMeta() public method

public UpdateMeta ( AdminMangaMetaJson obj ) : void
obj afung.MangaWeb3.Common.AdminMangaMetaJson
return void