tmsrp_event_type_t.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public enum tmsrp_event_type_t {
  10. tmsrp_event_type_none,
  11. tmsrp_event_type_connected,
  12. tmsrp_event_type_disconnected,
  13. tmsrp_event_type_message;
  14. public final int swigValue() {
  15. return swigValue;
  16. }
  17. public static tmsrp_event_type_t swigToEnum(int swigValue) {
  18. tmsrp_event_type_t[] swigValues = tmsrp_event_type_t.class.getEnumConstants();
  19. if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
  20. return swigValues[swigValue];
  21. for (tmsrp_event_type_t swigEnum : swigValues)
  22. if (swigEnum.swigValue == swigValue)
  23. return swigEnum;
  24. throw new IllegalArgumentException("No enum " + tmsrp_event_type_t.class + " with value " + swigValue);
  25. }
  26. @SuppressWarnings("unused")
  27. private tmsrp_event_type_t() {
  28. this.swigValue = SwigNext.next++;
  29. }
  30. @SuppressWarnings("unused")
  31. private tmsrp_event_type_t(int swigValue) {
  32. this.swigValue = swigValue;
  33. SwigNext.next = swigValue+1;
  34. }
  35. @SuppressWarnings("unused")
  36. private tmsrp_event_type_t(tmsrp_event_type_t swigEnum) {
  37. this.swigValue = swigEnum.swigValue;
  38. SwigNext.next = this.swigValue+1;
  39. }
  40. private final int swigValue;
  41. private static class SwigNext {
  42. private static int next = 0;
  43. }
  44. }