Files
juipnet/Infrastructure/WxApi/Notice/OpenMessage/MessageUpdateAuthorized.cs
“wanyongkang” ed3b2c653e 接口文件
2024-04-10 13:55:27 +08:00

37 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 授权更新通知
/// </summary>
public class MessageUpdateAuthorized : MessageOpenBase
{
public MessageUpdateAuthorized(XDocument doc) : base(doc)
{
this.AuthorizerAppid = doc.Root.Element("AuthorizerAppid").Value;
this.AuthorizationCode = doc.Root.Element("AuthorizationCode").Value;
this.AuthorizationCodeExpiredTime = DateTimeOffset.Parse(doc.Root.Element("AuthorizationCodeExpiredTime").Value);
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.updateauthorized; }
}
/// <summary>
/// 公众号appid
/// </summary>
public string AuthorizerAppid { get; set; }
/// <summary>
/// 授权码code
/// </summary>
public string AuthorizationCode { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public DateTimeOffset AuthorizationCodeExpiredTime { get; set; }
}
}