コード例 #1
0
 private void InitializeStatusCodes(HttpWebResponse response)
 {
     if (response == null)
     {
         StatusCode = HttpStatusCode.InternalServerError;
         NotificationStatus = NotificationStatus.NotApplicable;
         DeviceConnectionStatus = DeviceConnectionStatus.NotApplicable;
         SubscriptionStatus = SubscriptionStatus.NotApplicable;
     }
     else
     {
         StatusCode = response.StatusCode;
         NotificationStatus = response.GetNotificationStatus();
         DeviceConnectionStatus = response.GetDeviceConnectionStatus();
         SubscriptionStatus = response.GetSubscriptionStatus();
     }
 }