public Recv_Emoji_MsgEntity ParseRecvEmoji(object data) { try { Recv_Emoji_MsgEntity emojiInfoEntity = ConvertObjToModel <Recv_Emoji_MsgEntity>(data); XmlAttribute xmlAttribute = XMLHelper.ResolveXML(emojiInfoEntity.raw_msg, "msg/emoji", false).Attributes["cdnurl"]; if (xmlAttribute.IsEmpty()) { return(null); } emojiInfoEntity.ImageUrl = xmlAttribute.Value; return(emojiInfoEntity); } catch (Exception) { throw; } }