Esempio n. 1
0
 public WeChatData(HttpWeChat httpWeChat)
 {
     this.m_HttpWeChat = httpWeChat;
     R = new Random();
     httpWeChat.DeviceID = "e" + R.Next(10000000, 99999999).ToString() + R.Next(1000000, 9999999).ToString();
     baseRequest         = new BaseRequest
     {
         DeviceID = httpWeChat.DeviceID,
         Sid      = httpWeChat.AuthorizationInfo.Sid,
         Skey     = httpWeChat.AuthorizationInfo.Skey,
         Uin      = httpWeChat.AuthorizationInfo.Uin
     };
 }
Esempio n. 2
0
 public AuthorizationInfo(HttpWeChat httpWeChat)
 {
     m_httpWeChat = httpWeChat;
 }
Esempio n. 3
0
 public WeChatMessageMonitor(HttpWeChat httpWeChat, CancellationToken token)
 {
     m_token      = token;
     m_httpWeChat = httpWeChat;
 }