C# Class Rest4Net.Ghost.GhostProvider

Inheritance: RestApiProvider
Afficher le fichier Open project: acropolium/Rest4Net

Méthodes publiques

Méthode Description
CreatePost ( string title, string textMarkdown, System.DateTime publishDate = null ) : IPost
DbClean ( ) : void
DbExport ( ) : string
DbImport ( string data ) : void
DeletePost ( int id ) : IPost
GenerateSlug ( string title ) : string
GetPost ( int id ) : IPost
GetPosts ( uint page = 1, uint limit = 15, ContentStatus status = ContentStatus.All, bool withStaticPages = false ) : IPosts
GetTags ( ) : IEnumerable
GhostProvider ( string domain, string login, string password, bool useHttps = false, string urlPath = null, int port = -1 ) : System
GhostProvider ( string domain, string urlPath, string login, string password, bool useHttps = false, int port = -1 ) : System
SavePost ( IPost post ) : IPost

Méthodes protégées

Méthode Description
Cmd ( string path, RequestType requestType = RequestType.Get ) : Command

Method Details

Cmd() protected méthode

protected Cmd ( string path, RequestType requestType = RequestType.Get ) : Command
path string
requestType RequestType
Résultat Command

CreatePost() public méthode

public CreatePost ( string title, string textMarkdown, System.DateTime publishDate = null ) : IPost
title string
textMarkdown string
publishDate System.DateTime
Résultat IPost

DbClean() public méthode

public DbClean ( ) : void
Résultat void

DbExport() public méthode

public DbExport ( ) : string
Résultat string

DbImport() public méthode

public DbImport ( string data ) : void
data string
Résultat void

DeletePost() public méthode

public DeletePost ( int id ) : IPost
id int
Résultat IPost

GenerateSlug() public méthode

public GenerateSlug ( string title ) : string
title string
Résultat string

GetPost() public méthode

public GetPost ( int id ) : IPost
id int
Résultat IPost

GetPosts() public méthode

public GetPosts ( uint page = 1, uint limit = 15, ContentStatus status = ContentStatus.All, bool withStaticPages = false ) : IPosts
page uint
limit uint
status ContentStatus
withStaticPages bool
Résultat IPosts

GetTags() public méthode

public GetTags ( ) : IEnumerable
Résultat IEnumerable

GhostProvider() public méthode

public GhostProvider ( string domain, string login, string password, bool useHttps = false, string urlPath = null, int port = -1 ) : System
domain string
login string
password string
useHttps bool
urlPath string
port int
Résultat System

GhostProvider() public méthode

public GhostProvider ( string domain, string urlPath, string login, string password, bool useHttps = false, int port = -1 ) : System
domain string
urlPath string
login string
password string
useHttps bool
port int
Résultat System

SavePost() public méthode

public SavePost ( IPost post ) : IPost
post IPost
Résultat IPost