Source: remotemessage/ResetDeviceResponseMessage.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var remotemessage_Method = require("../remotemessage/Method");
  7. var remotemessage_ResultStatus = require("../remotemessage/ResultStatus");
  8. var remotemessage_ExternalDeviceState = require("../remotemessage/ExternalDeviceState");
  9. var remotemessage_Message = require("../remotemessage/Message");
  10. /**
  11. * @constructor
  12. * @augments remotemessage.Message
  13. * @memberof remotemessage
  14. */
  15. var ResetDeviceResponseMessage = function() {
  16. remotemessage_Message.call(this);
  17. this._superClass_ = remotemessage_Message;
  18. this._class_ = ResetDeviceResponseMessage;
  19. this.setMethod(remotemessage_Method["RESET_DEVICE_RESPONSE"]);
  20. this.reason = undefined;
  21. this.status = undefined;
  22. this.state = undefined;
  23. };
  24. ResetDeviceResponseMessage.prototype = Object.create(remotemessage_Message.prototype);
  25. ResetDeviceResponseMessage.prototype.constructor = ResetDeviceResponseMessage;
  26. /**
  27. * Set the field value
  28. * May be populated when the operation fails.
  29. *
  30. * @memberof remotemessage.ResetDeviceResponseMessage
  31. * @param {String} reason
  32. */
  33. ResetDeviceResponseMessage.prototype.setReason = function(reason) {
  34. this.reason = reason;
  35. };
  36. /**
  37. * Get the field value
  38. * May be populated when the operation fails.
  39. * @memberof remotemessage.ResetDeviceResponseMessage
  40. * @return {String}
  41. */
  42. ResetDeviceResponseMessage.prototype.getReason = function() {
  43. return this.reason;
  44. };
  45. /**
  46. * Set the field value
  47. * @memberof remotemessage.ResetDeviceResponseMessage
  48. * @param {remotemessage.ResultStatus} status
  49. */
  50. ResetDeviceResponseMessage.prototype.setStatus = function(status) {
  51. this.status = status;
  52. };
  53. /**
  54. * Get the field value
  55. * @memberof remotemessage.ResetDeviceResponseMessage
  56. * @return {remotemessage.ResultStatus}
  57. */
  58. ResetDeviceResponseMessage.prototype.getStatus = function() {
  59. return this.status;
  60. };
  61. /**
  62. * Set the field value
  63. * High level state of the connected device.
  64. *
  65. * @memberof remotemessage.ResetDeviceResponseMessage
  66. * @param {remotemessage.ExternalDeviceState} state
  67. */
  68. ResetDeviceResponseMessage.prototype.setState = function(state) {
  69. this.state = state;
  70. };
  71. /**
  72. * Get the field value
  73. * High level state of the connected device.
  74. * @memberof remotemessage.ResetDeviceResponseMessage
  75. * @return {remotemessage.ExternalDeviceState}
  76. */
  77. ResetDeviceResponseMessage.prototype.getState = function() {
  78. return this.state;
  79. };
  80. ResetDeviceResponseMessage._meta_ = {fields: {}};
  81. ResetDeviceResponseMessage._meta_._class_ = ResetDeviceResponseMessage;
  82. ResetDeviceResponseMessage._meta_._superMeta_ = remotemessage_Message._meta_;
  83. ResetDeviceResponseMessage._meta_.fields["reason"] = {};
  84. ResetDeviceResponseMessage._meta_.fields["reason"].type = String;
  85. ResetDeviceResponseMessage._meta_.fields["status"] = {};
  86. ResetDeviceResponseMessage._meta_.fields["status"].type = remotemessage_ResultStatus;
  87. ResetDeviceResponseMessage._meta_.fields["state"] = {};
  88. ResetDeviceResponseMessage._meta_.fields["state"].type = remotemessage_ExternalDeviceState;
  89. //
  90. // Expose the module.
  91. //
  92. if ('undefined' !== typeof module) {
  93. module.exports = ResetDeviceResponseMessage;
  94. }