Example #1
0
        private FeedItemNode(Microsoft.Samples.FeedSync.Feed i_Feed, System.Xml.XmlElement i_FeedItemXmlElement, string i_SyncNodeID, int i_Sequence, System.DateTime? i_WhenDateTime, string i_By, bool i_Deleted, bool i_NoConflicts, int i_Updates)
        {
            m_Feed = i_Feed;

            this.GetFeedItemDataFromXmlElement(i_FeedItemXmlElement);

            m_XmlElement = i_FeedItemXmlElement;

            m_SyncNode = Microsoft.Samples.FeedSync.SyncNode.CreateNew
                (
                m_Feed, 
                this,
                i_SyncNodeID,
                i_Sequence,
                i_WhenDateTime,
                i_By,
                i_Deleted,
                i_NoConflicts,
                i_Updates
                );

            if (m_XmlElement.ChildNodes.Count > 0)
                m_XmlElement.InsertBefore(m_SyncNode.XmlElement, m_XmlElement.ChildNodes[0]);
            else
                m_XmlElement.AppendChild(m_SyncNode.XmlElement);
            if (m_Feed.FeedType == Microsoft.Samples.FeedSync.Feed.FeedTypes.Atom)
                this.AddUpdatedElement();
        }
Example #2
0
        private FeedItemNode(Microsoft.Samples.FeedSync.Feed i_Feed, System.Xml.XmlElement i_FeedItemXmlElement, string i_SyncNodeID)
        {
            m_Feed = i_Feed;

            this.GetFeedItemDataFromXmlElement(i_FeedItemXmlElement);

            m_XmlElement = i_FeedItemXmlElement;

            m_SyncNode = Microsoft.Samples.FeedSync.SyncNode.CreateNew
                (
                m_Feed,
                this,
                i_SyncNodeID
                );

            if (m_XmlElement.ChildNodes.Count > 0)
                m_XmlElement.InsertBefore(m_SyncNode.XmlElement, m_XmlElement.ChildNodes[0]);
            else
                m_XmlElement.AppendChild(m_SyncNode.XmlElement);
        }