示例#1
0
        internal static ContentFormat Read(IUpdateDecoder decoder)
        {
            var key   = decoder.ReadKey();
            var value = decoder.ReadJson();

            return(new ContentFormat(key, value));
        }
示例#2
0
        internal static ContentEmbed Read(IUpdateDecoder decoder)
        {
            var content = decoder.ReadJson();

            return(new ContentEmbed(content));
        }