Smrf.NodeXL.GraphDataProviders.Twitter.TwitterSearchNetworkAnalyzer.AppendVertexXmlNodesForMentionsAndRepliesTo C# (CSharp) Метод

AppendVertexXmlNodesForMentionsAndRepliesTo() защищенный Метод

protected AppendVertexXmlNodesForMentionsAndRepliesTo ( WhatToInclude eWhatToInclude, GraphMLXmlDocument oGraphMLXmlDocument, TwitterUser>.Dictionary oUserIDDictionary, RequestStatistics oRequestStatistics ) : void
eWhatToInclude WhatToInclude
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
oUserIDDictionary TwitterUser>.Dictionary
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
Результат void
    AppendVertexXmlNodesForMentionsAndRepliesTo
    (
        WhatToInclude eWhatToInclude,
        GraphMLXmlDocument oGraphMLXmlDocument,
        Dictionary<String, TwitterUser> oUserIDDictionary,
        RequestStatistics oRequestStatistics
    )
    {
        Debug.Assert(oGraphMLXmlDocument != null);
        Debug.Assert(oUserIDDictionary != null);
        Debug.Assert(oRequestStatistics != null);
        AssertValid();

        ReportProgress("Getting replied to and mentioned users.");

        // Get the screen names that were mentioned or replied to by the people
        // who tweeted the search term.

        String[] asUniqueMentionsAndRepliesToScreenNames =
            TwitterSearchNetworkGraphMLUtil.GetMentionsAndRepliesToScreenNames(
                oUserIDDictionary);

        Boolean bIncludeStatistics = WhatToIncludeFlagIsSet(
            eWhatToInclude, WhatToInclude.Statistics);

        // Get information about each of those screen names and append vertex
        // XML nodes for them if necessary.

        foreach ( Dictionary<String, Object> oUserValueDictionary in
            EnumerateUserValueDictionaries(
                asUniqueMentionsAndRepliesToScreenNames, false,
                oRequestStatistics) )
        {
            TwitterUser oTwitterUser;

            TwitterSearchNetworkGraphMLUtil.TryAppendVertexXmlNode(
                oUserValueDictionary, bIncludeStatistics, false,
                oGraphMLXmlDocument, oUserIDDictionary, out oTwitterUser);
        }
    }