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

Gets a network of related YouTube videos.
Use GetNetworkAsync to asynchronously get an undirected network of related YouTube videos.
Inheritance: YouTubeNetworkAnalyzerBase
Show file Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
GetNetworkAsync ( String searchTerm, WhatToInclude whatToInclude, Int32 maximumVideos ) : void
YouTubeVideoNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
AddVideoIDToDictionary ( String sKey, String sVideoID, Dictionary oDictionary ) : void
AppendEdgesFromDictionary ( Dictionary oDictionary, GraphMLXmlDocument oGraphMLXmlDocument, String sRelationship, String sKeyAttributeID ) : void
AppendSharedResponderEdges ( GraphMLXmlDocument oGraphMLXmlDocument, HashSet oVideoIDs, Int32 iMaximumResponses, String sUrlPattern, String sResponderTitle, String sKeyAttributeID, RequestStatistics oRequestStatistics ) : void
AppendVertexXmlNodes ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics, HashSet &oVideoIDs, Dictionary &oCategoryDictionary ) : void
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CollectCategories ( XmlNode oEntryXmlNode, String sVideoID, XmlNamespaceManager oXmlNamespaceManager, Dictionary oCategoryDictionary ) : void
CreateGraphMLXmlDocument ( WhatToInclude eWhatToInclude ) : GraphMLXmlDocument
GetNetworkDescription ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos ) : String
GetVideoNetworkInternal ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos ) : XmlDocument
GetVideoNetworkInternal ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos, RequestStatistics oRequestStatistics, GraphMLXmlDocument oGraphMLXmlDocument ) : void
WhatToIncludeFlagIsSet ( WhatToInclude eORedEnumFlags, WhatToInclude eORedEnumFlagsToCheck ) : System.Boolean

Method Details

AddVideoIDToDictionary() protected method

protected AddVideoIDToDictionary ( String sKey, String sVideoID, Dictionary oDictionary ) : void
sKey String
sVideoID String
oDictionary Dictionary
return void

AppendEdgesFromDictionary() protected method

protected AppendEdgesFromDictionary ( Dictionary oDictionary, GraphMLXmlDocument oGraphMLXmlDocument, String sRelationship, String sKeyAttributeID ) : void
oDictionary Dictionary
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
sRelationship String
sKeyAttributeID String
return void

AppendSharedResponderEdges() protected method

protected AppendSharedResponderEdges ( GraphMLXmlDocument oGraphMLXmlDocument, HashSet oVideoIDs, Int32 iMaximumResponses, String sUrlPattern, String sResponderTitle, String sKeyAttributeID, RequestStatistics oRequestStatistics ) : void
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oVideoIDs HashSet
iMaximumResponses System.Int32
sUrlPattern String
sResponderTitle String
sKeyAttributeID String
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return void

AppendVertexXmlNodes() protected method

protected AppendVertexXmlNodes ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos, GraphMLXmlDocument oGraphMLXmlDocument, RequestStatistics oRequestStatistics, HashSet &oVideoIDs, Dictionary &oCategoryDictionary ) : void
sSearchTerm String
eWhatToInclude WhatToInclude
iMaximumVideos System.Int32
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
oVideoIDs HashSet
oCategoryDictionary Dictionary
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

CollectCategories() protected method

protected CollectCategories ( XmlNode oEntryXmlNode, String sVideoID, XmlNamespaceManager oXmlNamespaceManager, Dictionary oCategoryDictionary ) : void
oEntryXmlNode System.Xml.XmlNode
sVideoID String
oXmlNamespaceManager System.Xml.XmlNamespaceManager
oCategoryDictionary Dictionary
return void

CreateGraphMLXmlDocument() protected method

protected CreateGraphMLXmlDocument ( WhatToInclude eWhatToInclude ) : GraphMLXmlDocument
eWhatToInclude WhatToInclude
return Smrf.XmlLib.GraphMLXmlDocument

GetNetworkAsync() public method

public GetNetworkAsync ( String searchTerm, WhatToInclude whatToInclude, Int32 maximumVideos ) : void
searchTerm String
whatToInclude WhatToInclude
maximumVideos System.Int32
return void

GetNetworkDescription() protected method

protected GetNetworkDescription ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos ) : String
sSearchTerm String
eWhatToInclude WhatToInclude
iMaximumVideos System.Int32
return String

GetVideoNetworkInternal() protected method

protected GetVideoNetworkInternal ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos ) : XmlDocument
sSearchTerm String
eWhatToInclude WhatToInclude
iMaximumVideos System.Int32
return System.Xml.XmlDocument

GetVideoNetworkInternal() protected method

protected GetVideoNetworkInternal ( String sSearchTerm, WhatToInclude eWhatToInclude, Int32 iMaximumVideos, RequestStatistics oRequestStatistics, GraphMLXmlDocument oGraphMLXmlDocument ) : void
sSearchTerm String
eWhatToInclude WhatToInclude
iMaximumVideos System.Int32
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
return void

WhatToIncludeFlagIsSet() protected method

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

YouTubeVideoNetworkAnalyzer() public method

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