Exemplo n.º 1
0
 /// <summary>
 /// Gets the Subscription Status code as <see cref="NotificationStatus"/> enumeration.
 /// </summary>
 /// <param name="response">The http web response instance.</param>
 /// <returns>Correlate enumeration value.</returns>
 public static SubscriptionStatus GetSubscriptionStatus(this HttpWebResponse response)
 {
     return(response.GetStatus(
                SubscriptionStatus.NotApplicable,
                PushNotificationMessage.Headers.SubscriptionStatus));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the Device Connection Status code as <see cref="NotificationStatus"/> enumeration.
 /// </summary>
 /// <param name="response">The http web response instance.</param>
 /// <returns>Correlate enumeration value.</returns>
 public static DeviceConnectionStatus GetDeviceConnectionStatus(this HttpWebResponse response)
 {
     return(response.GetStatus(
                DeviceConnectionStatus.NotApplicable,
                PushNotificationMessage.Headers.DeviceConnectionStatus));
 }