C# Class Smrf.NodeXL.GraphDataProviders.YouTube.YouTubeUserNetworkAnalyzer

Gets a network of YouTube users.
Use GetNetworkAsync to asynchronously get a directed network of YouTube users.
Inheritance: YouTubeNetworkAnalyzerBase
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AssertValid ( ) : void
GetNetworkAsync ( String userNameToAnalyze, WhatToInclude whatToInclude, NetworkLevel networkLevel, Int32 maximumPeoplePerRequest ) : void
YouTubeUserNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
AppendAllStatisticGraphMLAttributeValues ( GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary, RequestStatistics oRequestStatistics ) : void
AppendAllStatisticGraphMLAttributeValues ( String sUserName, XmlNode oVertexXmlNode, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
AppendInt32GraphMLAttributeValue ( String sUrl, String sXPath, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics, XmlNode oVertexXmlNode, String sGraphMLAttributeID ) : void
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( System.Boolean bIncludeAllStatistics ) : GraphMLXmlDocument
GetFriendsOrSubscriptionsUrl ( String sUserName, System.Boolean bFriends ) : String
GetNetworkDescription ( String sUserNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : String
GetUserNetworkInternal ( String sUserNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest ) : XmlDocument
GetUserNetworkInternal ( String sUserNameToAnalyze, WhatToInclude eWhatToInclude, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest, RequestStatistics oRequestStatistics, GraphMLXmlDocument oGraphMLXmlDocument ) : void
GetUserNetworkRecursive ( String sUserName, WhatToInclude eWhatToInclude, System.Boolean bIncludeFriendsThisCall, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest, Int32 iRecursionLevel, GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary, RequestStatistics oRequestStatistics ) : void
ReportProgressForFriendsOrSubscriptions ( String sUserName, System.Boolean bFriends ) : void
TryAppendVertexXmlNode ( String sUserName, XmlNode oEntryXmlNode, GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary ) : System.Boolean
WhatToIncludeFlagIsSet ( WhatToInclude eORedEnumFlags, WhatToInclude eORedEnumFlagsToCheck ) : System.Boolean

Method Details

AppendAllStatisticGraphMLAttributeValues() protected method

protected AppendAllStatisticGraphMLAttributeValues ( GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary, RequestStatistics oRequestStatistics ) : void
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUserNameDictionary XmlNode>.Dictionary
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AppendAllStatisticGraphMLAttributeValues() protected method

protected AppendAllStatisticGraphMLAttributeValues ( String sUserName, XmlNode oVertexXmlNode, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics ) : void
sUserName String
oVertexXmlNode System.Xml.XmlNode
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AppendInt32GraphMLAttributeValue() protected method

protected AppendInt32GraphMLAttributeValue ( String sUrl, String sXPath, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics, XmlNode oVertexXmlNode, String sGraphMLAttributeID ) : void
sUrl String
sXPath String
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
oVertexXmlNode System.Xml.XmlNode
sGraphMLAttributeID String
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 bIncludeAllStatistics ) : GraphMLXmlDocument
bIncludeAllStatistics System.Boolean
return Smrf.XmlLib.GraphMLXmlDocument

GetFriendsOrSubscriptionsUrl() protected method

protected GetFriendsOrSubscriptionsUrl ( String sUserName, System.Boolean bFriends ) : String
sUserName String
bFriends System.Boolean
return String

GetNetworkAsync() public method

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

GetNetworkDescription() protected method

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

GetUserNetworkInternal() protected method

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

GetUserNetworkInternal() protected method

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

GetUserNetworkRecursive() protected method

protected GetUserNetworkRecursive ( String sUserName, WhatToInclude eWhatToInclude, System.Boolean bIncludeFriendsThisCall, NetworkLevel eNetworkLevel, Int32 iMaximumPeoplePerRequest, Int32 iRecursionLevel, GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary, RequestStatistics oRequestStatistics ) : void
sUserName String
eWhatToInclude WhatToInclude
bIncludeFriendsThisCall System.Boolean
eNetworkLevel NetworkLevel
iMaximumPeoplePerRequest System.Int32
iRecursionLevel System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUserNameDictionary XmlNode>.Dictionary
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

ReportProgressForFriendsOrSubscriptions() protected method

protected ReportProgressForFriendsOrSubscriptions ( String sUserName, System.Boolean bFriends ) : void
sUserName String
bFriends System.Boolean
return void

TryAppendVertexXmlNode() protected method

protected TryAppendVertexXmlNode ( String sUserName, XmlNode oEntryXmlNode, GraphMLXmlDocument oGraphMLXmlDocument, XmlNode>.Dictionary oUserNameDictionary ) : System.Boolean
sUserName String
oEntryXmlNode System.Xml.XmlNode
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUserNameDictionary XmlNode>.Dictionary
return System.Boolean

WhatToIncludeFlagIsSet() protected method

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

YouTubeUserNetworkAnalyzer() public method

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