Skip to main content

GistLink

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class GistLink

Properties

Name

View Source
Declaration
public string Name { get; set; }

Url

View Source
Declaration
public string Url { get; set; }

User

View Source
Declaration
public string User { get; set; }

To

View Source
Declaration
public string To { get; set; }

Description

View Source
Declaration
public string Description { get; set; }

Tags

View Source
Declaration
public string[] Tags { get; set; }

GistId

View Source
Declaration
public string GistId { get; set; }

Repo

View Source
Declaration
public string Repo { get; set; }

Modifiers

View Source
Declaration
public Dictionary<string, object> Modifiers { get; set; }

Methods

ToTagsString()

View Source
Declaration
public string ToTagsString()
Returns

System.String

ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

ToListItem()

View Source
Declaration
public string ToListItem()
Returns

System.String

View Source
Declaration
public static string RenderLinks(List<GistLink> links)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.List<ServiceStack.GistLink>links

Parse(String)

View Source
Declaration
public static List<GistLink> Parse(string md)
Returns

System.Collections.Generic.List<ServiceStack.GistLink>

Parameters
TypeName
System.Stringmd

TryParseGitHubUrl(String, out String, out String, out String)

View Source
Declaration
public static bool TryParseGitHubUrl(string url, out string gistId, out string user, out string repo)
Returns

System.Boolean

Parameters
TypeName
System.Stringurl
System.StringgistId
System.Stringuser
System.Stringrepo
View Source
Declaration
public static GistLink Get(List<GistLink> links, string gistAlias)
Returns

ServiceStack.GistLink

Parameters
TypeName
System.Collections.Generic.List<ServiceStack.GistLink>links
System.StringgistAlias

MatchesTag(String)

View Source
Declaration
public bool MatchesTag(string tagName)
Returns

System.Boolean

Parameters
TypeName
System.StringtagName