Class: RubyPushNotifications::MPNS::MPNSPreConditionError
- Inherits:
-
MPNSResult
- Object
- MPNSResult
- RubyPushNotifications::MPNS::MPNSPreConditionError
- Defined in:
- lib/ruby-push-notifications/mpns/mpns_result.rb
Overview
The device is in a disconnected state.
Constant Summary
Constants inherited from MPNSResult
RubyPushNotifications::MPNS::MPNSResult::X_DEVICE_CONNECTION_STATUS, RubyPushNotifications::MPNS::MPNSResult::X_NOTIFICATION_STATUS, RubyPushNotifications::MPNS::MPNSResult::X_SUBSCRIPTION_STATUS
Instance Attribute Summary collapse
-
#device_connection_status ⇒ String
. The connection status of the device..
-
#notification_status ⇒ String
by the Microsoft Push Notification Service.
Attributes inherited from MPNSResult
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(device_url, headers) ⇒ MPNSPreConditionError
constructor
A new instance of MPNSPreConditionError.
Constructor Details
#initialize(device_url, headers) ⇒ MPNSPreConditionError
Returns a new instance of MPNSPreConditionError.
144 145 146 147 148 |
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 144 def initialize(device_url, headers) @device_url = device_url @notification_status = headers[X_NOTIFICATION_STATUS] @device_connection_status = headers[X_DEVICE_CONNECTION_STATUS] end |
Instance Attribute Details
#device_connection_status ⇒ String
Returns . The connection status of the device.
142 143 144 |
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 142 def device_connection_status @device_connection_status end |
#notification_status ⇒ String
by the Microsoft Push Notification Service.
139 140 141 |
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 139 def notification_status @notification_status end |
Instance Method Details
#==(other) ⇒ Object
150 151 152 153 154 155 |
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 150 def ==(other) (other.is_a?(MPNSPreConditionError) && device_url == other.device_url && notification_status == other.notification_status && device_connection_status == other.device_connection_status) || super(other) end |