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
RenderLinks(List<GistLink>)
View Source
Declaration
public static string RenderLinks(List<GistLink> links)
Returns
System.String
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
System.String | md |
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
Type | Name |
---|---|
System.String | url |
System.String | gistId |
System.String | user |
System.String | repo |
Get(List<GistLink>, String)
View Source
Declaration
public static GistLink Get(List<GistLink> links, string gistAlias)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<ServiceStack.GistLink> | links |
System.String | gistAlias |
MatchesTag(String)
View Source
Declaration
public bool MatchesTag(string tagName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | tagName |