Table of Contents

Class UriWebServices

Namespace
SunamoUriWebServices
Assembly
SunamoUriWebServices.dll

Provides URI building methods for various web services.

public class UriWebServices
Inheritance
UriWebServices
Inherited Members
Extension Methods

Fields

AmateriComCs

Amateri.com Czech search URL template.

public const string AmateriComCs = "https://www.amateri.com/cs/lide/search?search=%s"

Field Value

string

AmateriComEn

Amateri.com English search URL template.

public const string AmateriComEn = "https://www.amateri.com/en/lide/search?search=%s"

Field Value

string

ChromeSearchstringReplacement

Chrome search string replacement placeholder.

public const string ChromeSearchstringReplacement = "%s"

Field Value

string

GeocachingLog

Geocaching log URL template.

public const string GeocachingLog = "https://www.geocaching.com/play/geocache/%s/log"

Field Value

string

GithubCom

GitHub base URL.

public const string GithubCom = "https://github.com/"

Field Value

string

Heureka

Heureka search URL template.

public const string Heureka = "https://www.heureka.cz/?h[fraze]=%s&ss=1"

Field Value

string

InstagramProfile

Instagram profile URL template.

public const string InstagramProfile = "https://www.instagram.com/{0}/"

Field Value

string

KaraokeTexty

Karaoke texty search URL template.

public const string KaraokeTexty = "http://www.karaoketexty.cz/search?q=%s&sid=bbrpp&x=36&y=9"

Field Value

string

WikipediaEn

Wikipedia English search URL template.

public static string WikipediaEn

Field Value

string

Methods

AzureRepoWebUI(string, AzureBuildUriArgs?)

Gets Azure Repo Web UI URL for the specified solution name.

public static string AzureRepoWebUI(string solutionName, AzureBuildUriArgs? args = null)

Parameters

solutionName string

The solution name.

args AzureBuildUriArgs

Optional Azure build URI arguments.

Returns

string

The Azure Repo Web UI URL.

AzureRepoWebUIDomain(AzureBuildUriArgs?)

Gets Azure Repo Web UI domain URL.

public static string AzureRepoWebUIDomain(AzureBuildUriArgs? args = null)

Parameters

args AzureBuildUriArgs

Optional Azure build URI arguments.

Returns

string

The Azure Repo Web UI domain URL.

AzureRepoWebUIFull(string, AzureBuildUriArgs?)

Gets Azure Repo Web UI full URL (currently shows gray screen).

public static string AzureRepoWebUIFull(string solutionName, AzureBuildUriArgs? args = null)

Parameters

solutionName string

The solution name.

args AzureBuildUriArgs

Optional Azure build URI arguments.

Returns

string

The Azure Repo Web UI full URL.

AzureRepoWebUIFull2(string)

Gets Azure Repo Web UI full URL (alternative format, currently shows gray screen).

public static string? AzureRepoWebUIFull2(string solutionName)

Parameters

solutionName string

The solution name.

Returns

string

The Azure Repo Web UI URL.

AzureRepoWebUIFullOrGithub(string, AzureBuildUriArgs?)

Gets the Azure Repo Web UI URL or GitHub clone URL based on repository type.

public static string AzureRepoWebUIFullOrGithub(string repositoryName, AzureBuildUriArgs? args = null)

Parameters

repositoryName string

The repository name.

args AzureBuildUriArgs

Optional Azure build URI arguments.

Returns

string

The repository URL.

AzureRepoWebUISettings(string)

Gets Azure Repo Web UI settings URL for the specified solution name.

public static string AzureRepoWebUISettings(string solutionName)

Parameters

solutionName string

The solution name.

Returns

string

The Azure Repo Web UI settings URL.

FromChromeReplacement(string, string)

Replaces Chrome search placeholder in a URI with the specified term.

public static string FromChromeReplacement(string uri, string term)

Parameters

uri string

The URI template containing %s placeholder.

term string

The search term to insert.

Returns

string

The URI with the placeholder replaced.

GitClone(string)

Gets the Git clone URL for the specified solution name.

public static string GitClone(string solutionName)

Parameters

solutionName string

The solution name.

Returns

string

The Git clone URL.

GitRepoInVsts(string)

Gets VSTS Git repository URL for the specified solution name.

public static string GitRepoInVsts(string solutionName)

Parameters

solutionName string

The solution name.

Returns

string

The VSTS Git repository URL.

GoogleImFeelingLucky(string)

Gets Google "I'm Feeling Lucky" URL for the specified search query.

public static string GoogleImFeelingLucky(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted Google search URL.

GoogleMaps(List<string>)

Opens Google Maps for each location in the list.

public static void GoogleMaps(List<string> list)

Parameters

list List<string>

The list of locations to open.

GoogleMaps(string, string, string)

Gets Google Maps URL for the specified coordinates or address.

public static string GoogleMaps(string coordsOrAddress, string center, string zoom)

Parameters

coordsOrAddress string

The coordinates or address to search for.

center string

The map center coordinates.

zoom string

The map zoom level.

Returns

string

The formatted Google Maps URL.

GooglePlusProfile(string)

Gets Google Plus profile URL for the specified nickname.

public static string GooglePlusProfile(string nickname)

Parameters

nickname string

The Google Plus username.

Returns

string

The Google Plus profile URL.

GoogleSearch(List<string>)

Opens Google search for each item in the list.

public static void GoogleSearch(List<string> list)

Parameters

list List<string>

The list of search queries.

GoogleSearch(string)

Gets Google search URL for the specified text.

public static string GoogleSearch(string text)

Parameters

text string

The search text.

Returns

string

The formatted Google search URL.

GoogleSearchImages(string)

Gets Google Images search URL for the specified text.

public static string GoogleSearchImages(string text)

Parameters

text string

The search text.

Returns

string

The formatted Google Images search URL.

GoogleSearchInAllSite(List<string>, string)

Searches Google for a query across all provided sites.

public static void GoogleSearchInAllSite(List<string> list, string searchQuery)

Parameters

list List<string>

The list of sites to search.

searchQuery string

The search query.

GoogleSearchSite(string, string)

Gets Google site-specific search URL.

public static string GoogleSearchSite(string site, string searchQuery)

Parameters

site string

The site to search within.

searchQuery string

The search query.

Returns

string

The formatted Google site-specific search URL.

IsGithubRepo(string)

Checks if the specified repository name is a known GitHub repository.

public static bool IsGithubRepo(string repositoryName)

Parameters

repositoryName string

The repository name to check.

Returns

bool

True if the repository is a known GitHub repository.

IsToOpen(string)

Checks if the specified text represents a value that should not be opened.

public static bool IsToOpen(string text)

Parameters

text string

The text to check.

Returns

bool

True if the text is "N/A" or "n/a".

KmoAV(string)

Gets KMO library search URL for AV branch.

public static string KmoAV(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted KMO AV search URL.

KmoAll(string)

Gets KMO library search URL for all branches.

public static string KmoAll(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted KMO search URL.

KmoMP(string)

Gets KMO library search URL for MP branch.

public static string KmoMP(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted KMO MP search URL.

MapyCz(string)

Gets Mapy.cz URL for the specified search query.

public static string MapyCz(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted Mapy.cz URL.

OpenUri(string)

Opens a URI in the default browser, handling cross-platform differences.

public static void OpenUri(string url)

Parameters

url string

The URL to open.

SearchAll(Func<string, string>, List<string>)

Searches using a URL builder function across all items in the list.

public static void SearchAll(Func<string, string> urlBuilder, List<string> list)

Parameters

urlBuilder Func<string, string>

The function that builds a URL from a search term.

list List<string>

The list of search terms.

SearchAll(string, List<string>)

Searches for a term across all provided Chrome replacement URL templates.

public static void SearchAll(string searchTerm, List<string> list)

Parameters

searchTerm string

The search term to insert.

list List<string>

The list of Chrome replacement URL templates.

SearchGitHub(string)

Gets GitHub search URL for the specified search query.

public static string SearchGitHub(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted GitHub search URL.

SearchInAll(IList, string)

Searches in all provided Chrome replacement URL templates for the specified query.

public static void SearchInAll(IList list, string searchQuery)

Parameters

list IList

The list of Chrome replacement URL templates.

searchQuery string

The search query.

SpritMonitor(string)

Gets SpritMonitor search URL for the specified search query.

public static string SpritMonitor(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted SpritMonitor search URL.

TopRecepty(string)

Gets TopRecepty.cz URL for the specified search query.

public static string TopRecepty(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted TopRecepty.cz URL.

TwitterProfile(string)

Gets Twitter profile URL for the specified nickname.

public static string TwitterProfile(string nickname)

Parameters

nickname string

The Twitter username.

Returns

string

The Twitter profile URL.

UrlEncode(string)

URL-encodes the specified text.

public static string UrlEncode(string text)

Parameters

text string

The text to encode.

Returns

string

The URL-encoded text.

WebShare(string)

Gets WebShare search URL for the specified search query.

public static string WebShare(string searchQuery)

Parameters

searchQuery string

The search query.

Returns

string

The formatted WebShare search URL.

YouTubeProfile(string)

Gets YouTube profile URL for the specified nickname.

public static string YouTubeProfile(string nickname)

Parameters

nickname string

The YouTube username.

Returns

string

The YouTube profile URL.