123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LYFZ.WXLibrary
- {
-
-
-
- public class AuthorizationInfo
- {
-
- public AuthorizationInfo() {
-
- }
- string _AppId = "";
-
-
-
- public string AppId
- {
- get { return _AppId; }
- set { _AppId = value; }
- }
- string _CreateTime = "";
-
-
-
- public string CreateTime
- {
- get { return _CreateTime; }
- set { _CreateTime = value; }
- }
- AuthorizationInfoType _InfoType = AuthorizationInfoType.unauthorized;
-
-
-
- public AuthorizationInfoType InfoType
- {
- get { return _InfoType; }
- set { _InfoType = value; }
- }
- string _AuthorizerAppid = "";
-
-
-
- public string AuthorizerAppid
- {
- get { return _AuthorizerAppid; }
- set { _AuthorizerAppid = value; }
- }
- string _AuthorizationCode = "";
-
-
-
- public string AuthorizationCode
- {
- get { return _AuthorizationCode; }
- set { _AuthorizationCode = value; }
- }
- DateTime _AuthorizationCodeExpiredTime = DateTime.Now;
-
-
-
- public DateTime AuthorizationCodeExpiredTime
- {
- get { return _AuthorizationCodeExpiredTime; }
- set { _AuthorizationCodeExpiredTime = value; }
- }
- public override string ToString()
- {
- return "<xml>"
- + "<AppId>" + AppId + "</AppId>"
- + "<CreateTime>" + CreateTime + "</CreateTime>"
- + "<InfoType>" + InfoType + "</InfoType>"
- + "<AuthorizerAppid>" + AuthorizerAppid + "</AuthorizerAppid>"
- + "<AuthorizationCode>" + AuthorizationCode + "</AuthorizationCode>"
- + "<AuthorizationCodeExpiredTime>" + AuthorizationCodeExpiredTime.ToString("yyyy-MM-dd HH:mm:ss") + "</AuthorizationCodeExpiredTime>"
- +"</xml>";
- }
- }
-
-
-
- public enum AuthorizationInfoType
- {
-
-
-
- unauthorized,
-
-
-
- authorized,
-
-
-
- updateauthorized,
- }
- }
|