예제 #1
0
        public static string GroupMessageExtractor(string part, string source)
        {
            if (string.IsNullOrEmpty(part) || string.IsNullOrEmpty(source))
            {
                return(null);
            }
            ReceiveJSON json = JsonConvert.DeserializeObject <ReceiveJSON>(source);

            return(typeof(ReceiveJSON).GetProperty(part).GetValue(json).ToString());
        }
예제 #2
0
        public static ReceiveJSON GroupMessageAllExtractor(string source)
        {
            ReceiveJSON json = JsonConvert.DeserializeObject <ReceiveJSON>(source);

            return(json);
        }