/Senparc.Weixin.MP/Senparc.Weixin.MP/Helpers/EventHelper.cs
https://github.com/mjhuangzk/WeiXinMPSDK · C# · 21 lines · 19 code · 2 blank · 0 comment · 0 complexity · 602f60695d595fe2ba4fdb157daa8f78 MD5 · raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Xml.Linq;
- namespace Senparc.Weixin.MP.Helpers
- {
- public class EventHelper
- {
- public static Event GetEventType(XDocument doc)
- {
- return GetEventType(doc.Root.Element("Event").Value);
- }
- public static Event GetEventType(string str)
- {
- return (Event)Enum.Parse(typeof(Event), str, true);
- }
- }
- }