C# Class Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser

Parses the text of a Twitter status (tweet).
A tweet is known as a "status" in the Twitter API, so "status" is the term used in this class's methods.
Inheritance: Object
Exibir arquivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oMentionedRegex System.Text.RegularExpressions.Regex
m_oRepliedToRegex System.Text.RegularExpressions.Regex

Public Methods

Method Description
GetScreenNames ( String statusText, String &repliedToScreenName, String &uniqueMentionedScreenNames ) : void
TwitterStatusTextParser ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
ReplacePunctuationWithSpaces ( String sStatusText ) : String

Private Methods

Method Description
AssertValid ( ) : void

Method Details

GetScreenNames() public method

public GetScreenNames ( String statusText, String &repliedToScreenName, String &uniqueMentionedScreenNames ) : void
statusText String
repliedToScreenName String
uniqueMentionedScreenNames String
return void

ReplacePunctuationWithSpaces() protected method

protected ReplacePunctuationWithSpaces ( String sStatusText ) : String
sStatusText String
return String

TwitterStatusTextParser() public method

Initializes a new instance of the class.
public TwitterStatusTextParser ( ) : System
return System

Property Details

m_oMentionedRegex protected_oe property

protected Regex,System.Text.RegularExpressions m_oMentionedRegex
return System.Text.RegularExpressions.Regex

m_oRepliedToRegex protected_oe property

protected Regex,System.Text.RegularExpressions m_oRepliedToRegex
return System.Text.RegularExpressions.Regex