public FeedMessage GetFeedMessages(string outputFileName)
        {
            FeedMessage feedMessages = null;

            using (var file = File.OpenRead(outputFileName))
            {
                feedMessages = Serializer.Deserialize <FeedMessage>(file);
            }
            return(feedMessages);
        }
Пример #2
0
        private void WriteFeedMessageToFile(FeedMessage feedMessage)
        {
            var text = JsonConvert.SerializeObject(feedMessage, Formatting.Indented);

            File.WriteAllText(JSONPATH, text);
        }