C# Class Smrf.NodeXL.GraphDataProviders.Facebook.FacebookFanPageNetworkAnalyzer

Gets networks of Facebook fan page.
Use GetNetworkAsync to asynchronously get a undirected network of a Facebook fan page.
Inheritance: FacebookNetworkAnalyzerBase
Afficher le fichier Open project: 2014-sed-team3/term-project

Méthodes publiques

Свойство Type Description
txt String

Méthodes publiques

Méthode Description
AssertValid ( ) : void
FacebookFanPageNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

GetNetwork ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
GetNetworkAsync ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : void

Méthodes protégées

Méthode Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( bool>.Dictionary attributes, List netTypes ) : GraphMLXmlDocument
GetFanPageNetworkInternal ( string sAccessToken, string fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
GetNetworkDescription ( Facebook.JSONObject streamPosts, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, System.DateTime fromDate, System.DateTime endDate, GraphMLXmlDocument oGraphMLXmlDocument ) : String

Private Methods

Méthode Description
AddAttributes ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, JSONObject>.Dictionary attributeValues ) : void
AddCommenterVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, JSONObject>.Dictionary attributeValues, object>.Dictionary statusUpdates, object>.Dictionary wallPosts ) : void
AddEdges ( GraphMLXmlDocument &oGraphMlXmlDocument, List netTypes, Dictionary commentersComments, Dictionary likersPosts, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddLikerVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPost, JSONObject>.Dictionary attributeValues, object>.Dictionary statusUpdates, object>.Dictionary wallPosts ) : void
AddPostDateRangeToNetworkDescription ( Facebook.JSONObject streamPosts, NetworkDescriber oNetworkDescriber ) : void
AddPostPostCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments ) : void
AddPostPostLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts ) : void
AddPostVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Facebook.JSONObject streamPosts ) : void
AddStatusUpdates ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, string userID, object>.Dictionary statusUpdates ) : void
AddUserPostCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, JSONObject>.Dictionary attributeValues ) : void
AddUserPostLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts, JSONObject>.Dictionary attributeValues ) : void
AddUserUserCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddUserUserLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, JSONObject>.Dictionary &attributeValues, bool>.Dictionary attributes, List netTypes, Dictionary commentersComments, Dictionary likersPosts, Facebook.JSONObject streamPosts ) : void
AddWallPosts ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, string userID, object>.Dictionary wallPosts ) : void
CallGraphAPIWithRelogin ( string sRelativePath ) : Facebook.JSONObject
ConcatenateNetworkTypes ( List netTypes ) : string
DownloadComments ( Facebook.JSONObject streamPosts, int iLimit ) : Dictionary>>
DownloadLikes ( Facebook.JSONObject streamPosts, int iLimit ) : List>.Dictionary
DownloadPosts ( string fanPageUsernameID, int iFromPost, int iToPost, System.Boolean includeOthers, System.DateTime startDate, System.DateTime endDate ) : Facebook.JSONObject
ExecuteFQLMultiqueryWithRetryRelogin ( string>.Dictionary oQueries, string sProgress, bool bForcePrevent ) : Facebook.JSONObject
ExecuteFQLWithRelogin ( string sQuery, bool bForcePrevent ) : Facebook.JSONObject
GetHashtags ( string txt, char concatenator ) : string

Returns the hashtags found in a string

GetStatusUpdates ( List userUIDs ) : Dictionary>>
GetURLs ( string txt, char concatenator ) : string

Returns the URLs found in a string

GetWallPosts ( List userUIDs ) : Dictionary>>
ManageDisplayNames ( string usersName, string usersID ) : string
ManageDisplayNames ( JSONObject>.Dictionary &attributes ) : void
ManageDuplicateNames2 ( JSONObject>.Dictionary &attributes ) : void
Relogin ( ) : void
ReloginMethod ( ) : void
getAttributes ( bool>.Dictionary attributes, List users ) : Dictionary>

Gets the selected attributes for all the friends

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

BackgroundWorker_DoWork() protected méthode

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
Résultat void

CreateGraphMLXmlDocument() protected méthode

protected CreateGraphMLXmlDocument ( bool>.Dictionary attributes, List netTypes ) : GraphMLXmlDocument
attributes bool>.Dictionary
netTypes List
Résultat Smrf.XmlLib.GraphMLXmlDocument

FacebookFanPageNetworkAnalyzer() public méthode

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

GetFanPageNetworkInternal() protected méthode

protected GetFanPageNetworkInternal ( string sAccessToken, string fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
sAccessToken string
fanPageUsernameID string
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
Résultat System.Xml.XmlDocument

GetNetwork() public méthode

public GetNetwork ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
s_accessToken String
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
Résultat System.Xml.XmlDocument

GetNetworkAsync() public méthode

public GetNetworkAsync ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : void
s_accessToken String
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
Résultat void

GetNetworkDescription() protected méthode

protected GetNetworkDescription ( Facebook.JSONObject streamPosts, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, System.DateTime fromDate, System.DateTime endDate, GraphMLXmlDocument oGraphMLXmlDocument ) : String
streamPosts Facebook.JSONObject
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
fromDate System.DateTime
endDate System.DateTime
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
Résultat String

Property Details

txt public_oe property

public String txt
Résultat String