C# Class CoreTweet.CoreTweetSupplement

Provides extensions for objects of CoreTweet.
Mostra file Open project: CoreTweet/CoreTweetSupplement

Public Methods

Method Description
EnumerateTextParts ( string text, Entities entities ) : IEnumerable

Enumerates parts split into Tweet Entities.

EnumerateTextParts ( string text, Entities entities, int startIndex, int endIndex ) : IEnumerable

Enumerates parts split into Tweet Entities.

EnumerateTextParts ( this status ) : IEnumerable

Enumerates parts split into Tweet Entities.

GetExtendedTweetElements ( this status ) : ExtendedTweetInfo

Enumerates parts split into Tweet Entities.

GetProfileImageUrl ( this user, string size = "normal" ) : Uri

Gets a HTTP-based URL pointing to the user's avatar image with given size. See User Profile Images and Banners.

GetProfileImageUrlHttps ( this user, string size = "normal" ) : Uri

Gets a HTTPS-based URL pointing to the user's avatar image with given size. See User Profile Images and Banners.

ParseSource ( string html ) : Source

Parse source field.

ParseSource ( this status ) : Source

Parse the html of Status.Source.

Private Methods

Method Description
CharFromInt ( uint code ) : string
EnumerateTextParts ( IList chars, Entities entities, int startIndex, int endIndex ) : IEnumerable
GetAlternativeProfileImageUri ( string uri, string size ) : Uri

Returns the URI for given profile image URI and alternative size. See User Profile Images and Banners.

GetAlternativeProfileImageUriSuffix ( string size ) : string

Returns the URI suffix for given profile size image variant. See User Profile Images and Banners.

GetCodePoints ( string str ) : List
HtmlDecode ( string source ) : string
ToString ( IList source, int start, int count ) : string

Method Details

EnumerateTextParts() public static method

Enumerates parts split into Tweet Entities.
public static EnumerateTextParts ( string text, Entities entities ) : IEnumerable
text string The text such as , and .
entities Entities The instance.
return IEnumerable

EnumerateTextParts() public static method

Enumerates parts split into Tweet Entities.
public static EnumerateTextParts ( string text, Entities entities, int startIndex, int endIndex ) : IEnumerable
text string The text such as , and .
entities Entities The instance.
startIndex int The starting character position in code point.
endIndex int The ending character position in code point.
return IEnumerable

EnumerateTextParts() public static method

Enumerates parts split into Tweet Entities.
public static EnumerateTextParts ( this status ) : IEnumerable
status this The instance.
return IEnumerable

GetExtendedTweetElements() public static method

Enumerates parts split into Tweet Entities.
public static GetExtendedTweetElements ( this status ) : ExtendedTweetInfo
status this The instance.
return ExtendedTweetInfo

GetProfileImageUrl() public static method

Gets a HTTP-based URL pointing to the user's avatar image with given size. See User Profile Images and Banners.
public static GetProfileImageUrl ( this user, string size = "normal" ) : Uri
user this A instance.
size string Size of the image to obtain ("orig" to obtain the original size).
return System.Uri

GetProfileImageUrlHttps() public static method

Gets a HTTPS-based URL pointing to the user's avatar image with given size. See User Profile Images and Banners.
public static GetProfileImageUrlHttps ( this user, string size = "normal" ) : Uri
user this A instance.
size string Size of the image to obtain ("orig" to obtain the original size).
return System.Uri

ParseSource() public static method

Parse source field.
public static ParseSource ( string html ) : Source
html string The content of source field.
return Source

ParseSource() public static method

Parse the html of Status.Source.
public static ParseSource ( this status ) : Source
status this The instance.
return Source