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

Gets a network of Facebook friends.
Use GetNetworkAsync to asynchronously get a directed network of Facebook freinds.
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
FacebookUserNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

GetNetwork ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
GetNetworkAsync ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : void
oTimer_Elapsed ( object sender, System e ) : void
oTimer_Tick ( object sender, EventArgs e ) : void

Méthodes protégées

Méthode Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( AttributesDictionary attributes ) : GraphMLXmlDocument
GetFriendsNetworkInternal ( string sAccessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
GetNetworkDescription ( List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, GraphMLXmlDocument oGraphMLXmlDocument ) : String

Private Methods

Méthode Description
AddEdgeAttributes ( XmlNode oEdgeXmlNode, Edge oEdge ) : void
AddEdges ( ) : void
AddVertexAttributes ( XmlNode oVertexXmlNode, Vertex oVertex ) : void
AddVertices ( ) : void
CreateAuthorEdges ( ) : void
CreateCommenterEdges ( ) : void
CreateEdges ( bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers, bool bGetAuthorPosts, bool bIncludeMe ) : void
CreateIncludeMeEdges ( ) : void
CreateLikerEdges ( ) : void
CreateUserTaggedEdges ( ) : void
DownloadAttributes ( AttributesDictionary attributes ) : void

Gets the selected attributes for all the friends

DownloadEgo ( ) : Facebook.JSONObject
DownloadFriendConnections ( ) : void
DownloadFriends ( ) : void
DownloadFromPostToPost ( int iFromPost, int iToPost, string sFirstPartQuery ) : List
DownloadPosts ( bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers ) : void
DownloadPostsBetweenDates ( System.DateTime oStartDate, System.DateTime oEndDate, string sFirsPartQuery, bool bEgoTimeline, bool bFriendsTimeline ) : void
DownloadVertices ( bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers, bool bGetPosts, bool bLimitCommentsLikes, int iNrLimit ) : void
ExecuteFQLMultiqueryWithRetry ( string>.Dictionary oQueries, string sProgress ) : Facebook.JSONObject
FQLBatchRequest ( Facebook.FacebookAPI fb, List oQueries ) : List
GetCommenters ( bool bLimitCommentsLikes, int iNrLimit ) : void
GetEgo ( ) : void
GetHashtags ( string txt, char concatenator ) : string

Returns the hashtags found in a string

GetInfo ( string sTableName, string sPostId, int iLimit, int iNrOfLikesComments, int iCallNr ) : List
GetLikers ( bool bLimitCommentsLikes, int iNrLimit ) : void
GetLoggedInUsername ( ) : string
GetPostAuthors ( ) : void
GetTooltips ( ) : void
GetURLs ( string txt, char concatenator ) : string

Returns the URLs found in a string

GetUsersTagged ( ) : void
ManageDuplicateNames ( string sName ) : string
VerticesToQuery ( bool bEgoTimeline, bool bFriendsTimeline ) : VertexCollection

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 ( AttributesDictionary attributes ) : GraphMLXmlDocument
attributes AttributesDictionary
Résultat Smrf.XmlLib.GraphMLXmlDocument

FacebookUserNetworkAnalyzer() public méthode

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

GetFriendsNetworkInternal() protected méthode

protected GetFriendsNetworkInternal ( string sAccessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
sAccessToken string
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
Résultat System.Xml.XmlDocument

GetNetwork() public méthode

public GetNetwork ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
s_accessToken String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
Résultat System.Xml.XmlDocument

GetNetworkAsync() public méthode

public GetNetworkAsync ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : void
s_accessToken String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
Résultat void

GetNetworkDescription() protected méthode

protected GetNetworkDescription ( List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, GraphMLXmlDocument oGraphMLXmlDocument ) : String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
Résultat String

oTimer_Elapsed() public méthode

public oTimer_Elapsed ( object sender, System e ) : void
sender object
e System
Résultat void

oTimer_Tick() public méthode

public oTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

txt public_oe property

public String txt
Résultat String