AppendCommonUserInformationFromValueDictionary() public static method

public static AppendCommonUserInformationFromValueDictionary ( Object>.Dictionary userValueDictionary, GraphMLXmlDocument graphMLXmlDocument, TwitterUser twitterUser ) : void
userValueDictionary Object>.Dictionary
graphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
twitterUser TwitterUser
return void
        TryAppendVertexXmlNode
        (
            Dictionary <String, Object> userValueDictionary,
            Boolean userTweetedSearchTerm,
            GraphMLXmlDocument graphMLXmlDocument,
            Dictionary <String, TwitterUser> userIDDictionary,
            out TwitterUser twitterUser
        )
        {
            Debug.Assert(userValueDictionary != null);
            Debug.Assert(graphMLXmlDocument != null);
            Debug.Assert(userIDDictionary != null);

            twitterUser = null;

            String screenName, userID;

            if (
                !TwitterJsonUtil.TryGetJsonValueFromDictionary(userValueDictionary,
                                                               "screen_name", out screenName)
                ||
                !TwitterJsonUtil.TryGetJsonValueFromDictionary(userValueDictionary,
                                                               "id_str", out userID)
                )
            {
                return(false);
            }

            screenName = screenName.ToLower();

            Boolean isFirstTweetForAuthor =
                TwitterGraphMLUtil.TryAppendVertexXmlNode(
                    screenName, userID, graphMLXmlDocument, userIDDictionary,
                    out twitterUser);

            if (isFirstTweetForAuthor)
            {
                TwitterGraphMLUtil.AppendCommonUserInformationFromValueDictionary(
                    userValueDictionary, graphMLXmlDocument, twitterUser);

                TwitterGraphMLUtil.AppendUserStatisticsFromValueDictionary(
                    userValueDictionary, graphMLXmlDocument, twitterUser);

                AppendTweetedSearchTermGraphMLAttributeValue(
                    graphMLXmlDocument, twitterUser, userTweetedSearchTerm);
            }

            return(true);
        }