IGistGateway
Assembly: ServiceStack.Common.dll
View Source
Declaration
public interface IGistGateway
Methods
CreateGist(String, Boolean, Dictionary<String, Object>)
View Source
Declaration
Gist CreateGist(string description, bool isPublic, Dictionary<string, object> files)
Returns
Parameters
Type | Name |
---|---|
System.String | description |
System.Boolean | isPublic |
System.Collections.Generic.Dictionary<System.String,System.Object> | files |
CreateGist(String, Boolean, Dictionary<String, String>)
View Source
Declaration
Gist CreateGist(string description, bool isPublic, Dictionary<string, string> textFiles)
Returns
Parameters
Type | Name |
---|---|
System.String | description |
System.Boolean | isPublic |
System.Collections.Generic.Dictionary<System.String,System.String> | textFiles |
GetGist(String)
View Source
Declaration
Gist GetGist(string gistId)
Returns
Parameters
Type | Name |
---|---|
System.String | gistId |
GetGist(String, String)
View Source
Declaration
Gist GetGist(string gistId, string version)
Returns
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String | version |
GetGistAsync(String)
View Source
Declaration
Task<Gist> GetGistAsync(string gistId)
Returns
System.Threading.Tasks.Task<ServiceStack.Gist>
Parameters
Type | Name |
---|---|
System.String | gistId |
GetGistAsync(String, String)
View Source
Declaration
Task<Gist> GetGistAsync(string gistId, string version)
Returns
System.Threading.Tasks.Task<ServiceStack.Gist>
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String | version |
WriteGistFiles(String, Dictionary<String, Object>, String, Boolean)
View Source
Declaration
void WriteGistFiles(string gistId, Dictionary<string, object> files, string description = null, bool deleteMissing = false)
Parameters
Type | Name |
---|---|
System.String | gistId |
System.Collections.Generic.Dictionary<System.String,System.Object> | files |
System.String | description |
System.Boolean | deleteMissing |
WriteGistFiles(String, Dictionary<String, String>, String, Boolean)
View Source
Declaration
void WriteGistFiles(string gistId, Dictionary<string, string> textFiles, string description = null, bool deleteMissing = false)
Parameters
Type | Name |
---|---|
System.String | gistId |
System.Collections.Generic.Dictionary<System.String,System.String> | textFiles |
System.String | description |
System.Boolean | deleteMissing |
CreateGistFile(String, String, String)
View Source
Declaration
void CreateGistFile(string gistId, string filePath, string contents)
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String | filePath |
System.String | contents |
WriteGistFile(String, String, String)
View Source
Declaration
void WriteGistFile(string gistId, string filePath, string contents)
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String | filePath |
System.String | contents |
DeleteGistFiles(String, String[])
View Source
Declaration
void DeleteGistFiles(string gistId, params string[] filePaths)
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String[] | filePaths |