Source: remotemessage/RetrieveDeviceStatusResponseMessage.js

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */

var remotemessage_Method = require("../remotemessage/Method");
var remotemessage_ResultStatus = require("../remotemessage/ResultStatus");
var remotemessage_ExternalDeviceSubState = require("../remotemessage/ExternalDeviceSubState");
var remotemessage_ExternalDeviceState = require("../remotemessage/ExternalDeviceState");
var remotemessage_Message = require("../remotemessage/Message");
var remotemessage_ExternalDeviceStateData = require("../remotemessage/ExternalDeviceStateData");

/**
* @constructor
* @augments remotemessage.Message
* @memberof remotemessage
*/
var RetrieveDeviceStatusResponseMessage = function() {
  remotemessage_Message.call(this);
  this._superClass_ = remotemessage_Message;
  this._class_ = RetrieveDeviceStatusResponseMessage;
  this.setMethod(remotemessage_Method["RETRIEVE_DEVICE_STATUS_RESPONSE"]);
  this.reason = undefined;
  this.status = undefined;
  this.state = undefined;
  this.substate = undefined;
  this.data = undefined;
};

RetrieveDeviceStatusResponseMessage.prototype = Object.create(remotemessage_Message.prototype);
RetrieveDeviceStatusResponseMessage.prototype.constructor = RetrieveDeviceStatusResponseMessage;

/**
* Set the field value
* May be populated when the operation fails.
*
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @param {String} reason 
*/
RetrieveDeviceStatusResponseMessage.prototype.setReason = function(reason) {
  this.reason = reason;
};

/**
* Get the field value
* May be populated when the operation fails.
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @return {String} 
*/
RetrieveDeviceStatusResponseMessage.prototype.getReason = function() {
  return this.reason;
};

/**
* Set the field value
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @param {remotemessage.ResultStatus} status 
*/
RetrieveDeviceStatusResponseMessage.prototype.setStatus = function(status) {
  this.status = status;
};

/**
* Get the field value
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @return {remotemessage.ResultStatus} 
*/
RetrieveDeviceStatusResponseMessage.prototype.getStatus = function() {
  return this.status;
};

/**
* Set the field value
* High level state of the connected device.
*
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @param {remotemessage.ExternalDeviceState} state 
*/
RetrieveDeviceStatusResponseMessage.prototype.setState = function(state) {
  this.state = state;
};

/**
* Get the field value
* High level state of the connected device.
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @return {remotemessage.ExternalDeviceState} 
*/
RetrieveDeviceStatusResponseMessage.prototype.getState = function() {
  return this.state;
};

/**
* Set the field value
* Substate of the connected device.
*
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @param {remotemessage.ExternalDeviceSubState} substate 
*/
RetrieveDeviceStatusResponseMessage.prototype.setSubstate = function(substate) {
  this.substate = substate;
};

/**
* Get the field value
* Substate of the connected device.
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @return {remotemessage.ExternalDeviceSubState} 
*/
RetrieveDeviceStatusResponseMessage.prototype.getSubstate = function() {
  return this.substate;
};

/**
* Set the field value
* Additional data elements supplementing the state of the connected device.
*
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @param {remotemessage.ExternalDeviceStateData} data 
*/
RetrieveDeviceStatusResponseMessage.prototype.setData = function(data) {
  this.data = data;
};

/**
* Get the field value
* Additional data elements supplementing the state of the connected device.
* @memberof remotemessage.RetrieveDeviceStatusResponseMessage
* @return {remotemessage.ExternalDeviceStateData} 
*/
RetrieveDeviceStatusResponseMessage.prototype.getData = function() {
  return this.data;
};

RetrieveDeviceStatusResponseMessage._meta_ =  {fields:  {}};
RetrieveDeviceStatusResponseMessage._meta_._class_ =  RetrieveDeviceStatusResponseMessage;
RetrieveDeviceStatusResponseMessage._meta_._superMeta_ = remotemessage_Message._meta_;
RetrieveDeviceStatusResponseMessage._meta_.fields["reason"] = {};
RetrieveDeviceStatusResponseMessage._meta_.fields["reason"].type = String;
RetrieveDeviceStatusResponseMessage._meta_.fields["status"] = {};
RetrieveDeviceStatusResponseMessage._meta_.fields["status"].type = remotemessage_ResultStatus;
RetrieveDeviceStatusResponseMessage._meta_.fields["state"] = {};
RetrieveDeviceStatusResponseMessage._meta_.fields["state"].type = remotemessage_ExternalDeviceState;
RetrieveDeviceStatusResponseMessage._meta_.fields["substate"] = {};
RetrieveDeviceStatusResponseMessage._meta_.fields["substate"].type = remotemessage_ExternalDeviceSubState;
RetrieveDeviceStatusResponseMessage._meta_.fields["data"] = {};
RetrieveDeviceStatusResponseMessage._meta_.fields["data"].type = remotemessage_ExternalDeviceStateData;

//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = RetrieveDeviceStatusResponseMessage;
}