Source: device/AssociatedDeviceBundle.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. /**
  7. * @constructor
  8. * @memberof device
  9. */
  10. var AssociatedDeviceBundle = function() {
  11. this._class_ = AssociatedDeviceBundle;
  12. this.id = undefined;
  13. this.bundleIndicator = undefined;
  14. this.createdTime = undefined;
  15. this.deletedTime = undefined;
  16. this.associatedTime = undefined;
  17. this.disassociatedTime = undefined;
  18. };
  19. /**
  20. * Set the field value
  21. * Unique identifier
  22. *
  23. * @memberof device.AssociatedDeviceBundle
  24. * @param {String} id
  25. */
  26. AssociatedDeviceBundle.prototype.setId = function(id) {
  27. this.id = id;
  28. };
  29. /**
  30. * Get the field value
  31. * Unique identifier
  32. * @memberof device.AssociatedDeviceBundle
  33. * @return {String}
  34. */
  35. AssociatedDeviceBundle.prototype.getId = function() {
  36. return this.id;
  37. };
  38. /**
  39. * Set the field value
  40. * @memberof device.AssociatedDeviceBundle
  41. * @param {String} bundleIndicator
  42. */
  43. AssociatedDeviceBundle.prototype.setBundleIndicator = function(bundleIndicator) {
  44. this.bundleIndicator = bundleIndicator;
  45. };
  46. /**
  47. * Get the field value
  48. * @memberof device.AssociatedDeviceBundle
  49. * @return {String}
  50. */
  51. AssociatedDeviceBundle.prototype.getBundleIndicator = function() {
  52. return this.bundleIndicator;
  53. };
  54. /**
  55. * Set the field value
  56. * The time that the device bundle was created
  57. *
  58. * @memberof device.AssociatedDeviceBundle
  59. * @param {Number} createdTime must be a long integer
  60. */
  61. AssociatedDeviceBundle.prototype.setCreatedTime = function(createdTime) {
  62. this.createdTime = createdTime;
  63. };
  64. /**
  65. * Get the field value
  66. * The time that the device bundle was created
  67. * @memberof device.AssociatedDeviceBundle
  68. * @return {Number} must be a long integer
  69. */
  70. AssociatedDeviceBundle.prototype.getCreatedTime = function() {
  71. return this.createdTime;
  72. };
  73. /**
  74. * Set the field value
  75. * The time that the device bundle was deleted
  76. *
  77. * @memberof device.AssociatedDeviceBundle
  78. * @param {Number} deletedTime must be a long integer
  79. */
  80. AssociatedDeviceBundle.prototype.setDeletedTime = function(deletedTime) {
  81. this.deletedTime = deletedTime;
  82. };
  83. /**
  84. * Get the field value
  85. * The time that the device bundle was deleted
  86. * @memberof device.AssociatedDeviceBundle
  87. * @return {Number} must be a long integer
  88. */
  89. AssociatedDeviceBundle.prototype.getDeletedTime = function() {
  90. return this.deletedTime;
  91. };
  92. /**
  93. * Set the field value
  94. * The time that the device bundle was associated to a device
  95. *
  96. * @memberof device.AssociatedDeviceBundle
  97. * @param {Number} associatedTime must be a long integer
  98. */
  99. AssociatedDeviceBundle.prototype.setAssociatedTime = function(associatedTime) {
  100. this.associatedTime = associatedTime;
  101. };
  102. /**
  103. * Get the field value
  104. * The time that the device bundle was associated to a device
  105. * @memberof device.AssociatedDeviceBundle
  106. * @return {Number} must be a long integer
  107. */
  108. AssociatedDeviceBundle.prototype.getAssociatedTime = function() {
  109. return this.associatedTime;
  110. };
  111. /**
  112. * Set the field value
  113. * The time that the device bundle was disassociated from a device
  114. *
  115. * @memberof device.AssociatedDeviceBundle
  116. * @param {Number} disassociatedTime must be a long integer
  117. */
  118. AssociatedDeviceBundle.prototype.setDisassociatedTime = function(disassociatedTime) {
  119. this.disassociatedTime = disassociatedTime;
  120. };
  121. /**
  122. * Get the field value
  123. * The time that the device bundle was disassociated from a device
  124. * @memberof device.AssociatedDeviceBundle
  125. * @return {Number} must be a long integer
  126. */
  127. AssociatedDeviceBundle.prototype.getDisassociatedTime = function() {
  128. return this.disassociatedTime;
  129. };
  130. /**
  131. * @memberof device.AssociatedDeviceBundle
  132. * @private
  133. */
  134. AssociatedDeviceBundle.prototype.getMetaInfo = function(fieldName) {
  135. var curclass = this._class_;
  136. do {
  137. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  138. if(fieldMetaInfo) {
  139. return fieldMetaInfo;
  140. }
  141. if(curclass._meta_._superMeta_) {
  142. curclass = curclass._meta_._superMeta_._class_;
  143. } else {
  144. curclass = null;
  145. }
  146. } while(curclass);
  147. return null;
  148. };
  149. AssociatedDeviceBundle.prototype.toString = function() {
  150. return JSON.stringify(this);
  151. };
  152. AssociatedDeviceBundle._meta_ = {fields: {}};
  153. AssociatedDeviceBundle._meta_._class_ = AssociatedDeviceBundle;
  154. AssociatedDeviceBundle._meta_.fields["id"] = {};
  155. AssociatedDeviceBundle._meta_.fields["id"].type = String;
  156. AssociatedDeviceBundle._meta_.fields["bundleIndicator"] = {};
  157. AssociatedDeviceBundle._meta_.fields["bundleIndicator"].type = String;
  158. AssociatedDeviceBundle._meta_.fields["createdTime"] = {};
  159. AssociatedDeviceBundle._meta_.fields["createdTime"].type = Number;
  160. AssociatedDeviceBundle._meta_.fields["deletedTime"] = {};
  161. AssociatedDeviceBundle._meta_.fields["deletedTime"].type = Number;
  162. AssociatedDeviceBundle._meta_.fields["associatedTime"] = {};
  163. AssociatedDeviceBundle._meta_.fields["associatedTime"].type = Number;
  164. AssociatedDeviceBundle._meta_.fields["disassociatedTime"] = {};
  165. AssociatedDeviceBundle._meta_.fields["disassociatedTime"].type = Number;
  166. //
  167. // Expose the module.
  168. //
  169. if ('undefined' !== typeof module) {
  170. module.exports = AssociatedDeviceBundle;
  171. }