C# Class Rest4Net.Ghost.GhostProvider

Inheritance: RestApiProvider
Mostra file Open project: acropolium/Rest4Net

Public Methods

Method 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

Protected Methods

Method Description
Cmd ( string path, RequestType requestType = RequestType.Get ) : Command

Method Details

Cmd() protected method

protected Cmd ( string path, RequestType requestType = RequestType.Get ) : Command
path string
requestType RequestType
return Command

CreatePost() public method

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

DbClean() public method

public DbClean ( ) : void
return void

DbExport() public method

public DbExport ( ) : string
return string

DbImport() public method

public DbImport ( string data ) : void
data string
return void

DeletePost() public method

public DeletePost ( int id ) : IPost
id int
return IPost

GenerateSlug() public method

public GenerateSlug ( string title ) : string
title string
return string

GetPost() public method

public GetPost ( int id ) : IPost
id int
return IPost

GetPosts() public method

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

GetTags() public method

public GetTags ( ) : IEnumerable
return IEnumerable

GhostProvider() public method

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
return System

GhostProvider() public method

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
return System

SavePost() public method

public SavePost ( IPost post ) : IPost
post IPost
return IPost