C# Class CoreTweet.CoreTweetSupplement

Provides extensions for objects of CoreTweet.
Afficher le fichier Open project: CoreTweet/CoreTweetSupplement

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat IEnumerable

EnumerateTextParts() public static méthode

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.
Résultat IEnumerable

EnumerateTextParts() public static méthode

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

GetExtendedTweetElements() public static méthode

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

GetProfileImageUrl() public static méthode

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).
Résultat System.Uri

GetProfileImageUrlHttps() public static méthode

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).
Résultat System.Uri

ParseSource() public static méthode

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

ParseSource() public static méthode

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