The URLShortenerHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
URLShortenerHelper |
Default constructor used to create default HelperObject.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAvailableURLShorteners |
Creates a collection of available URL shorteners, and returns it.
| |
GetAvailableURLShortenersInternal |
Creates a collection of available URL shorteners, and returns it.
| |
GetDefaultURLShortenerForSocialNetwork |
Retrieves the URL shortener for the specified social network posts, and returns it.
| |
GetDefaultURLShortenerForSocialNetworkInternal |
Retrieves the URL shortener for the specified social network posts, and returns it.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetShortenedURLInternal |
Shortens provided URL
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetURLForShortening |
Prepares any found URL for shortening.
| |
IsURLShortened |
Determines whether an URL is shortened or to be shortened.
| |
IsURLShortenerAvailable |
Provides information about availability of the URL shortener.
If specified shortener is configured for given site, true is returned. False otherwise.
If shortener is URLShortenerTypeEnum.None, true is returned as this shortener is always available.
| |
IsURLShortenerAvailableInternal |
Provides information about availability of the URL shortener.
If specified shortener is configured for given site, true is returned. False otherwise.
If shortener is URLShortenerTypeEnum.None, true is returned as this shortener is always available.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelper HelperType .) | |
ShortenURLsInText |
Shortens URLs in given text using selected URL shortener. Throws an exception if shortener is not available for the given site.
| |
ShortenURLsInTextInternal |
Shortens all URLs in provided text.
Returns the same text with all URLs shortened by the specified shortener.
If shortener is URLShortenerTypeEnum.None, original inputText is returned.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
See Also