Source: remotepay/ResponseCodeEnum.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var remotepay_ResponseCode = require("../remotepay/ResponseCode");
  7. /**
  8. * @constructor
  9. * @memberof remotepay
  10. */
  11. var ResponseCodeEnum = function() {
  12. this._class_ = ResponseCodeEnum;
  13. this.status = undefined;
  14. };
  15. /**
  16. * Set the field value
  17. * @memberof remotepay.ResponseCodeEnum
  18. * @param {remotepay.ResponseCode} status
  19. */
  20. ResponseCodeEnum.prototype.setStatus = function(status) {
  21. this.status = status;
  22. };
  23. /**
  24. * Get the field value
  25. * @memberof remotepay.ResponseCodeEnum
  26. * @return {remotepay.ResponseCode}
  27. */
  28. ResponseCodeEnum.prototype.getStatus = function() {
  29. return this.status;
  30. };
  31. /**
  32. * @memberof remotepay.ResponseCodeEnum
  33. * @private
  34. */
  35. ResponseCodeEnum.prototype.getMetaInfo = function(fieldName) {
  36. var curclass = this._class_;
  37. do {
  38. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  39. if(fieldMetaInfo) {
  40. return fieldMetaInfo;
  41. }
  42. if(curclass._meta_._superMeta_) {
  43. curclass = curclass._meta_._superMeta_._class_;
  44. } else {
  45. curclass = null;
  46. }
  47. } while(curclass);
  48. return null;
  49. };
  50. ResponseCodeEnum.prototype.toString = function() {
  51. return JSON.stringify(this);
  52. };
  53. ResponseCodeEnum._meta_ = {fields: {}};
  54. ResponseCodeEnum._meta_._class_ = ResponseCodeEnum;
  55. ResponseCodeEnum._meta_.fields["status"] = {};
  56. ResponseCodeEnum._meta_.fields["status"].type = remotepay_ResponseCode;
  57. //
  58. // Expose the module.
  59. //
  60. if ('undefined' !== typeof module) {
  61. module.exports = ResponseCodeEnum;
  62. }