public static MyMessageDocument Map(MySNSMessage message)
        {
            var doc = new MyMessageDocument
            {
                Title   = message.Title,
                Content = message.Content
            };

            return(doc);
        }
Beispiel #2
0
        private static string CreateDummyMessageJson()
        {
            MySNSMessage message = new MySNSMessage()
            {
                Title = "Welcome", Content = "Hello World"
            };
            var json = JsonConvert.SerializeObject(message);

            return(json);
        }