class RubyPushNotifications::WNS::WNSExpiredError

The device is in a disconnected state.

Attributes

device_connection_status[RW]

@return [String]. The connection status of the device.

notification_status[RW]

@return [String]. The status of the notification received by the Windows Notification Service.

status[RW]

@return [String]. Notification status.

Public Class Methods

new(device_url, headers) click to toggle source
# File lib/ruby-push-notifications/wns/wns_result.rb, line 168
def initialize(device_url, headers)
  @device_url = device_url
  @notification_status = headers[X_NOTIFICATION_STATUS]
  @device_connection_status = headers[X_DEVICE_CONNECTION_STATUS]
  @status = 'Expired'.freeze
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/ruby-push-notifications/wns/wns_result.rb, line 175
def ==(other)
  (other.is_a?(WNSExpiredError) &&
    device_url == other.device_url &&
    notification_status == other.notification_status &&
    device_connection_status == other.device_connection_status &&
    status == other.status) || super(other)
end