C# Class Smrf.NodeXL.GraphDataProviders.Twitter.TwitterNetworkAnalyzerBase

Base class for classes that analyze a Twitter network.
The derived class must call BeforeGetNetwork() before getting each network.
Inheritance: HttpNetworkAnalyzerBase
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
HttpStatusCodesToFailImmediately HttpStatusCode[]
m_oTwitterStatusTextParser Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser
m_oTwitterUtil Smrf.SocialNetworkLib.Twitter.TwitterUtil

Méthodes publiques

Méthode Description
AssertValid ( ) : void
ExceptionToMessage ( Exception oException ) : String
TwitterNetworkAnalyzerBase ( ) : System

Initializes a new instance of the class.

Méthodes protégées

Méthode Description
AppendFollowedOrFollowingEdgeXmlNode ( String sScreenName, String sOtherScreenName, System.Boolean bFollowed, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
AppendFollowedOrFollowingEdgeXmlNodes ( TwitterUser>.Dictionary oUserIDDictionary, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
AppendFollowedOrFollowingEdgeXmlNodes ( ICollection oScreenNames, TwitterUser>.Dictionary oUserIDDictionary, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
AppendLatestStatusInformationFromValueDictionary ( Object>.Dictionary oStatusValueDictionary, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser oTwitterUser, System.Boolean bIncludeLatestStatus, System.Boolean bExpandLatestStatusUrls ) : void
AppendRepliesToAndMentionsEdgeXmlNodes ( GraphMLXmlDocument oGraphMLXmlDocument, IEnumerable oTwitterUsers, HashSet oUniqueScreenNames, System.Boolean bIncludeRepliesToEdges, System.Boolean bIncludeMentionsEdges, System.Boolean bIncludeNonRepliesToNonMentionsEdges, System.Boolean bIncludeStatuses ) : void
AppendStartTimeRelationshipDateUtcGraphMLAttributeValue ( GraphMLXmlDocument oGraphMLXmlDocument, XmlNode oEdgeXmlNode, RequestStatistics oRequestStatistics ) : void
AppendUserInformationFromValueDictionary ( Object>.Dictionary oUserValueDictionary, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser oTwitterUser, System.Boolean bIncludeStatistics, System.Boolean bIncludeLatestStatus, System.Boolean bExpandLatestStatusUrls ) : void
BeforeGetNetwork ( ) : void
EnumerateFriendOrFollowerIDs ( String sScreenName, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, RequestStatistics oRequestStatistics ) : IEnumerable
EnumerateJsonValues ( String sUrl, String sJsonName, Int32 iMaximumValues, System.Boolean bSkipMostPage1Errors, RequestStatistics oRequestStatistics ) : IEnumerable
EnumerateUserValueDictionaries ( String asUserIDsOrScreenNames, System.Boolean bUserIDsSpecified, RequestStatistics oRequestStatistics ) : Object>>.IEnumerable
GetTwitterResponseAsString ( String sUrl, RequestStatistics oRequestStatistics ) : String
ReportProgressForFollowedOrFollowing ( String sScreenName, System.Boolean bFollowed ) : void
TryGetScreenNameFromDictionary ( Object>.Dictionary oUserValueDictionary, String &sScreenName ) : System.Boolean
TryGetUserIDFromDictionary ( Object>.Dictionary oUserValueDictionary, String &sUserID ) : System.Boolean
TryGetUserValueDictionary ( String sScreenName, RequestStatistics oRequestStatistics, System.Boolean bIgnoreWebAndJsonExceptions, Object>.Dictionary &oUserValueDictionary ) : System.Boolean

Method Details

AppendFollowedOrFollowingEdgeXmlNode() protected méthode

protected AppendFollowedOrFollowingEdgeXmlNode ( String sScreenName, String sOtherScreenName, System.Boolean bFollowed, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
sScreenName String
sOtherScreenName String
bFollowed System.Boolean
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat void

AppendFollowedOrFollowingEdgeXmlNodes() protected méthode

protected AppendFollowedOrFollowingEdgeXmlNodes ( TwitterUser>.Dictionary oUserIDDictionary, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
oUserIDDictionary TwitterUser>.Dictionary
bFollowed System.Boolean
iMaximumPeoplePerRequest System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat void

AppendFollowedOrFollowingEdgeXmlNodes() protected méthode

protected AppendFollowedOrFollowingEdgeXmlNodes ( ICollection oScreenNames, TwitterUser>.Dictionary oUserIDDictionary, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
oScreenNames ICollection
oUserIDDictionary TwitterUser>.Dictionary
bFollowed System.Boolean
iMaximumPeoplePerRequest System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat void

AppendLatestStatusInformationFromValueDictionary() protected méthode

protected AppendLatestStatusInformationFromValueDictionary ( Object>.Dictionary oStatusValueDictionary, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser oTwitterUser, System.Boolean bIncludeLatestStatus, System.Boolean bExpandLatestStatusUrls ) : void
oStatusValueDictionary Object>.Dictionary
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oTwitterUser Smrf.NodeXL.GraphMLLib.TwitterUser
bIncludeLatestStatus System.Boolean
bExpandLatestStatusUrls System.Boolean
Résultat void

AppendRepliesToAndMentionsEdgeXmlNodes() protected méthode

protected AppendRepliesToAndMentionsEdgeXmlNodes ( GraphMLXmlDocument oGraphMLXmlDocument, IEnumerable oTwitterUsers, HashSet oUniqueScreenNames, System.Boolean bIncludeRepliesToEdges, System.Boolean bIncludeMentionsEdges, System.Boolean bIncludeNonRepliesToNonMentionsEdges, System.Boolean bIncludeStatuses ) : void
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oTwitterUsers IEnumerable
oUniqueScreenNames HashSet
bIncludeRepliesToEdges System.Boolean
bIncludeMentionsEdges System.Boolean
bIncludeNonRepliesToNonMentionsEdges System.Boolean
bIncludeStatuses System.Boolean
Résultat void

AppendStartTimeRelationshipDateUtcGraphMLAttributeValue() protected méthode

protected AppendStartTimeRelationshipDateUtcGraphMLAttributeValue ( GraphMLXmlDocument oGraphMLXmlDocument, XmlNode oEdgeXmlNode, RequestStatistics oRequestStatistics ) : void
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oEdgeXmlNode System.Xml.XmlNode
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat void

AppendUserInformationFromValueDictionary() protected méthode

protected AppendUserInformationFromValueDictionary ( Object>.Dictionary oUserValueDictionary, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser oTwitterUser, System.Boolean bIncludeStatistics, System.Boolean bIncludeLatestStatus, System.Boolean bExpandLatestStatusUrls ) : void
oUserValueDictionary Object>.Dictionary
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oTwitterUser Smrf.NodeXL.GraphMLLib.TwitterUser
bIncludeStatistics System.Boolean
bIncludeLatestStatus System.Boolean
bExpandLatestStatusUrls System.Boolean
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

BeforeGetNetwork() protected méthode

protected BeforeGetNetwork ( ) : void
Résultat void

EnumerateFriendOrFollowerIDs() protected méthode

protected EnumerateFriendOrFollowerIDs ( String sScreenName, System.Boolean bFollowed, Int32 iMaximumPeoplePerRequest, RequestStatistics oRequestStatistics ) : IEnumerable
sScreenName String
bFollowed System.Boolean
iMaximumPeoplePerRequest System.Int32
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat IEnumerable

EnumerateJsonValues() protected méthode

protected EnumerateJsonValues ( String sUrl, String sJsonName, Int32 iMaximumValues, System.Boolean bSkipMostPage1Errors, RequestStatistics oRequestStatistics ) : IEnumerable
sUrl String
sJsonName String
iMaximumValues System.Int32
bSkipMostPage1Errors System.Boolean
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat IEnumerable

EnumerateUserValueDictionaries() protected méthode

protected EnumerateUserValueDictionaries ( String asUserIDsOrScreenNames, System.Boolean bUserIDsSpecified, RequestStatistics oRequestStatistics ) : Object>>.IEnumerable
asUserIDsOrScreenNames String
bUserIDsSpecified System.Boolean
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat Object>>.IEnumerable

ExceptionToMessage() public méthode

public ExceptionToMessage ( Exception oException ) : String
oException System.Exception
Résultat String

GetTwitterResponseAsString() protected méthode

protected GetTwitterResponseAsString ( String sUrl, RequestStatistics oRequestStatistics ) : String
sUrl String
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Résultat String

ReportProgressForFollowedOrFollowing() protected méthode

protected ReportProgressForFollowedOrFollowing ( String sScreenName, System.Boolean bFollowed ) : void
sScreenName String
bFollowed System.Boolean
Résultat void

TryGetScreenNameFromDictionary() protected méthode

protected TryGetScreenNameFromDictionary ( Object>.Dictionary oUserValueDictionary, String &sScreenName ) : System.Boolean
oUserValueDictionary Object>.Dictionary
sScreenName String
Résultat System.Boolean

TryGetUserIDFromDictionary() protected méthode

protected TryGetUserIDFromDictionary ( Object>.Dictionary oUserValueDictionary, String &sUserID ) : System.Boolean
oUserValueDictionary Object>.Dictionary
sUserID String
Résultat System.Boolean

TryGetUserValueDictionary() protected méthode

protected TryGetUserValueDictionary ( String sScreenName, RequestStatistics oRequestStatistics, System.Boolean bIgnoreWebAndJsonExceptions, Object>.Dictionary &oUserValueDictionary ) : System.Boolean
sScreenName String
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
bIgnoreWebAndJsonExceptions System.Boolean
oUserValueDictionary Object>.Dictionary
Résultat System.Boolean

TwitterNetworkAnalyzerBase() public méthode

Initializes a new instance of the class.
public TwitterNetworkAnalyzerBase ( ) : System
Résultat System

Property Details

HttpStatusCodesToFailImmediately protected_oe static_oe property

protected static HttpStatusCode[] HttpStatusCodesToFailImmediately
Résultat HttpStatusCode[]

m_oTwitterStatusTextParser protected_oe property

protected TwitterStatusTextParser,Smrf.SocialNetworkLib.Twitter m_oTwitterStatusTextParser
Résultat Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser

m_oTwitterUtil protected_oe property

protected TwitterUtil,Smrf.SocialNetworkLib.Twitter m_oTwitterUtil
Résultat Smrf.SocialNetworkLib.Twitter.TwitterUtil