Source: remotepay/QueryStatusEnum.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var remotepay_QueryStatus = require("../remotepay/QueryStatus");
  7. /**
  8. * @constructor
  9. * @memberof remotepay
  10. */
  11. var QueryStatusEnum = function() {
  12. this._class_ = QueryStatusEnum;
  13. this.queryStatus = undefined;
  14. };
  15. /**
  16. * Set the field value
  17. * @memberof remotepay.QueryStatusEnum
  18. * @param {remotepay.QueryStatus} queryStatus
  19. */
  20. QueryStatusEnum.prototype.setQueryStatus = function(queryStatus) {
  21. this.queryStatus = queryStatus;
  22. };
  23. /**
  24. * Get the field value
  25. * @memberof remotepay.QueryStatusEnum
  26. * @return {remotepay.QueryStatus}
  27. */
  28. QueryStatusEnum.prototype.getQueryStatus = function() {
  29. return this.queryStatus;
  30. };
  31. /**
  32. * @memberof remotepay.QueryStatusEnum
  33. * @private
  34. */
  35. QueryStatusEnum.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. QueryStatusEnum.prototype.toString = function() {
  51. return JSON.stringify(this);
  52. };
  53. QueryStatusEnum._meta_ = {fields: {}};
  54. QueryStatusEnum._meta_._class_ = QueryStatusEnum;
  55. QueryStatusEnum._meta_.fields["queryStatus"] = {};
  56. QueryStatusEnum._meta_.fields["queryStatus"].type = remotepay_QueryStatus;
  57. //
  58. // Expose the module.
  59. //
  60. if ('undefined' !== typeof module) {
  61. module.exports = QueryStatusEnum;
  62. }