Class: Toybox::Communications::OAuthMessage

Inherits:
Message show all

Overview

An OAuthMessage received by the callback registered in registerForOAuthMessages().

Unlike the data in the Message parent class, data in an OAuthMessage should always be a Dictionary.

Since:

  • 1.3.0

Instance Attribute Summary collapse

Attributes inherited from Message

data

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initializeOAuthMessage

Constructor

Since:

  • 1.3.0


4276
4277
# File 'Monkeybrains.rb', line 4276

def initialize()
end

Instance Attribute Details

responseCodeToybox::Lang::Number

Note:

The value in this field is unreliable and should not be referenced. It is generally safer to examine the message payload to check the status of the response.

An HTTP response code (positive value) or BLE error code (negative value).

Returns:

Since:

  • 1.3.0


4285
4286
4287
# File 'Monkeybrains.rb', line 4285

def responseCode
  @responseCode
end