This commit is contained in:
“wanyongkang”
2020-12-28 14:55:48 +08:00
parent c2ec7392cb
commit 40a40b6d36
305 changed files with 20629 additions and 20629 deletions

View File

@@ -1,36 +1,36 @@
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; }
}
}
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; }
}
}