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
AmateriComEn
Amateri.com English search URL template.
public const string AmateriComEn = "https://www.amateri.com/en/lide/search?search=%s"
Field Value
ChromeSearchstringReplacement
Chrome search string replacement placeholder.
public const string ChromeSearchstringReplacement = "%s"
Field Value
GeocachingLog
Geocaching log URL template.
public const string GeocachingLog = "https://www.geocaching.com/play/geocache/%s/log"
Field Value
GithubCom
GitHub base URL.
public const string GithubCom = "https://github.com/"
Field Value
Heureka
Heureka search URL template.
public const string Heureka = "https://www.heureka.cz/?h[fraze]=%s&ss=1"
Field Value
InstagramProfile
Instagram profile URL template.
public const string InstagramProfile = "https://www.instagram.com/{0}/"
Field Value
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
WikipediaEn
Wikipedia English search URL template.
public static string WikipediaEn
Field Value
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
solutionNamestringThe solution name.
argsAzureBuildUriArgsOptional 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
argsAzureBuildUriArgsOptional 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
solutionNamestringThe solution name.
argsAzureBuildUriArgsOptional 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
solutionNamestringThe 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
repositoryNamestringThe repository name.
argsAzureBuildUriArgsOptional 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
solutionNamestringThe 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
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
solutionNamestringThe 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
solutionNamestringThe 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
searchQuerystringThe 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
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
coordsOrAddressstringThe coordinates or address to search for.
centerstringThe map center coordinates.
zoomstringThe 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
nicknamestringThe 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
GoogleSearch(string)
Gets Google search URL for the specified text.
public static string GoogleSearch(string text)
Parameters
textstringThe 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
textstringThe 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
GoogleSearchSite(string, string)
Gets Google site-specific search URL.
public static string GoogleSearchSite(string site, string searchQuery)
Parameters
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
repositoryNamestringThe 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
textstringThe 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
searchQuerystringThe 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
searchQuerystringThe 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
searchQuerystringThe 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
searchQuerystringThe 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
urlstringThe 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
urlBuilderFunc<string, string>The function that builds a URL from a search term.
listList<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
searchTermstringThe search term to insert.
listList<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
searchQuerystringThe 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
SpritMonitor(string)
Gets SpritMonitor search URL for the specified search query.
public static string SpritMonitor(string searchQuery)
Parameters
searchQuerystringThe 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
searchQuerystringThe 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
nicknamestringThe Twitter username.
Returns
- string
The Twitter profile URL.
UrlEncode(string)
URL-encodes the specified text.
public static string UrlEncode(string text)
Parameters
textstringThe 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
searchQuerystringThe 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
nicknamestringThe YouTube username.
Returns
- string
The YouTube profile URL.