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

Gets a network of Twitter users related to a specified user.
Use GetNetworkAsync to asynchronously get the network, or GetNetwork to get it synchronously.
Inheritance: TwitterNetworkAnalyzerBase
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AppendOneDegreeNetwork ( String sScreenName, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, HashSet oUniqueScreenNames, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
AssertValid ( ) : void
GetNetwork ( String screenNameToAnalyze, WhatToInclude whatToInclude, NetworkLevel networkLevel, Int32 maximumPeoplePerRequest ) : XmlDocument
GetNetworkAsync ( String screenNameToAnalyze, WhatToInclude whatToInclude, NetworkLevel networkLevel, Int32 maximumPeoplePerRequest ) : void
TwitterUserNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
AppendOnePointFiveDegreeNetwork ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
AppendTwoDegreeNetwork ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, HashSet oUniqueScreenNames, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( System.Boolean bIncludeLatestStatuses ) : GraphMLXmlDocument
GetNetworkDescription ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : String
GetNetworkInternal ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : XmlDocument
GetNetworkInternal ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest, RequestStatistics oRequestStatistics, GraphMLXmlDocument oGraphMLXmlDocument ) : void
WhatToIncludeFlagIsSet ( WhatToInclude eORedEnumFlags, WhatToInclude eORedEnumFlagsToCheck ) : System.Boolean

Method Details

AppendOneDegreeNetwork() public method

public AppendOneDegreeNetwork ( String sScreenName, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, HashSet oUniqueScreenNames, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
sScreenName String
eWhatToInclude WhatToInclude
bIncludeFollowedThisCall System.Boolean
iMaximumPeoplePerRequest System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUniqueScreenNames HashSet
oUserIDDictionary TwitterUser>.Dictionary
oOneDegreeOtherScreenNames HashSet
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AppendOnePointFiveDegreeNetwork() protected method

protected AppendOnePointFiveDegreeNetwork ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
sScreenNameToAnalyze String
eWhatToInclude WhatToInclude
bIncludeFollowedThisCall System.Boolean
iMaximumPeoplePerRequest System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUserIDDictionary TwitterUser>.Dictionary
oOneDegreeOtherScreenNames HashSet
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AppendTwoDegreeNetwork() protected method

protected AppendTwoDegreeNetwork ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, System.Boolean bIncludeFollowedThisCall, Int32 iMaximumPeoplePerRequest, GraphMLXmlDocument oGraphMLXmlDocument, HashSet oUniqueScreenNames, TwitterUser>.Dictionary oUserIDDictionary, HashSet oOneDegreeOtherScreenNames, RequestStatistics oRequestStatistics ) : void
sScreenNameToAnalyze String
eWhatToInclude WhatToInclude
bIncludeFollowedThisCall System.Boolean
iMaximumPeoplePerRequest System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUniqueScreenNames HashSet
oUserIDDictionary TwitterUser>.Dictionary
oOneDegreeOtherScreenNames HashSet
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AssertValid() public method

public AssertValid ( ) : void
return void

BackgroundWorker_DoWork() protected method

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
return void

CreateGraphMLXmlDocument() protected method

protected CreateGraphMLXmlDocument ( System.Boolean bIncludeLatestStatuses ) : GraphMLXmlDocument
bIncludeLatestStatuses System.Boolean
return Smrf.XmlLib.GraphMLXmlDocument

GetNetwork() public method

public GetNetwork ( String screenNameToAnalyze, WhatToInclude whatToInclude, NetworkLevel networkLevel, Int32 maximumPeoplePerRequest ) : XmlDocument
screenNameToAnalyze String
whatToInclude WhatToInclude
networkLevel NetworkLevel
maximumPeoplePerRequest System.Int32
return System.Xml.XmlDocument

GetNetworkAsync() public method

public GetNetworkAsync ( String screenNameToAnalyze, WhatToInclude whatToInclude, NetworkLevel networkLevel, Int32 maximumPeoplePerRequest ) : void
screenNameToAnalyze String
whatToInclude WhatToInclude
networkLevel NetworkLevel
maximumPeoplePerRequest System.Int32
return void

GetNetworkDescription() protected method

protected GetNetworkDescription ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : String
sScreenNameToAnalyze String
eWhatToInclude WhatToInclude
eNetworkLevel NetworkLevel
iMaximumPeoplePerRequest System.Int32
return String

GetNetworkInternal() protected method

protected GetNetworkInternal ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : XmlDocument
sScreenNameToAnalyze String
eWhatToInclude WhatToInclude
eNetworkLevel NetworkLevel
iMaximumPeoplePerRequest System.Int32
return System.Xml.XmlDocument

GetNetworkInternal() protected method

protected GetNetworkInternal ( String sScreenNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest, RequestStatistics oRequestStatistics, GraphMLXmlDocument oGraphMLXmlDocument ) : void
sScreenNameToAnalyze String
eWhatToInclude WhatToInclude
eNetworkLevel NetworkLevel
iMaximumPeoplePerRequest System.Int32
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
return void

TwitterUserNetworkAnalyzer() public method

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

WhatToIncludeFlagIsSet() protected method

protected WhatToIncludeFlagIsSet ( WhatToInclude eORedEnumFlags, WhatToInclude eORedEnumFlagsToCheck ) : System.Boolean
eORedEnumFlags WhatToInclude
eORedEnumFlagsToCheck WhatToInclude
return System.Boolean