C# Class afung.MangaWeb3.Server.Manga

Afficher le fichier Open project: a-fung/MangaWeb3 Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CacheLimit ( ) : void
Résultat void

ChangePath() public méthode

public ChangePath ( string newPath, int newType ) : void
newPath string
newType int
Résultat void

CheckMangaPath() public static méthode

public static CheckMangaPath ( string path ) : string
path string
Résultat string

CheckMangaType() public static méthode

public static CheckMangaType ( string path ) : int
path string
Résultat int

CreateNewManga() public static méthode

public static CreateNewManga ( Collection collection, string path ) : Manga
collection Collection
path string
Résultat Manga

Delete() public méthode

public Delete ( ) : void
Résultat void

DeleteMangas() public static méthode

public static DeleteMangas ( Manga mangas ) : void
mangas Manga
Résultat void

DeleteMangasFromCollectionIds() public static méthode

public static DeleteMangasFromCollectionIds ( int cids ) : void
cids int
Résultat void

DeleteMangasFromIds() public static méthode

public static DeleteMangasFromIds ( int ids ) : void
ids int
Résultat void

GetAllMangas() public static méthode

public static GetAllMangas ( ) : afung.MangaWeb3.Server.Manga[]
Résultat afung.MangaWeb3.Server.Manga[]

GetAllTags() public static méthode

public static GetAllTags ( ) : string[]
Résultat string[]

GetById() public static méthode

public static GetById ( int id ) : Manga
id int
Résultat Manga

GetByPath() public static méthode

public static GetByPath ( string path ) : Manga
path string
Résultat Manga

GetCover() public méthode

public GetCover ( ) : string
Résultat string

GetDimensions() public méthode

public GetDimensions ( int page ) : int[]
page int
Résultat int[]

GetMangaList() public static méthode

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

GetMangasWithFilter() public static méthode

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

GetMetaJson() public méthode

public GetMetaJson ( ) : AdminMangaMetaJson
Résultat afung.MangaWeb3.Common.AdminMangaMetaJson

GetPage() public méthode

public GetPage ( int page, int width, int height, int part ) : string
page int
width int
height int
part int
Résultat string

GetTags() public méthode

public GetTags ( ) : string[]
Résultat string[]

IncreaseViewCount() public méthode

public IncreaseViewCount ( ) : void
Résultat void

IsFileMissing() public méthode

public IsFileMissing ( ) : bool
Résultat bool

ProcessFile() public méthode

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
Résultat void

RefreshContent() public méthode

public RefreshContent ( ) : void
Résultat void

RefreshMangasContent() public static méthode

public static RefreshMangasContent ( int ids ) : void
ids int
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

ToJson() public méthode

public ToJson ( ) : MangaJson
Résultat afung.MangaWeb3.Common.MangaJson

ToJsonArray() public static méthode

public static ToJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaJson[]
mangas Manga
Résultat afung.MangaWeb3.Common.MangaJson[]

ToListItemJsonArray() public static méthode

public static ToListItemJsonArray ( Manga mangas ) : afung.MangaWeb3.Common.MangaListItemJson[]
mangas Manga
Résultat afung.MangaWeb3.Common.MangaListItemJson[]

ToMangaListItemJson() public méthode

public ToMangaListItemJson ( ) : MangaListItemJson
Résultat afung.MangaWeb3.Common.MangaListItemJson

UpdateMeta() public méthode

public UpdateMeta ( AdminMangaMetaJson obj ) : void
obj afung.MangaWeb3.Common.AdminMangaMetaJson
Résultat void