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()); }
public static ReceiveJSON GroupMessageAllExtractor(string source) { ReceiveJSON json = JsonConvert.DeserializeObject <ReceiveJSON>(source); return(json); }