thttp_event_type_t.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 thttp_event_type_t {
  10. thttp_event_dialog_started,
  11. thttp_event_message,
  12. thttp_event_auth_failed,
  13. thttp_event_closed,
  14. thttp_event_transport_error,
  15. thttp_event_dialog_terminated;
  16. public final int swigValue() {
  17. return swigValue;
  18. }
  19. public static thttp_event_type_t swigToEnum(int swigValue) {
  20. thttp_event_type_t[] swigValues = thttp_event_type_t.class.getEnumConstants();
  21. if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
  22. return swigValues[swigValue];
  23. for (thttp_event_type_t swigEnum : swigValues)
  24. if (swigEnum.swigValue == swigValue)
  25. return swigEnum;
  26. throw new IllegalArgumentException("No enum " + thttp_event_type_t.class + " with value " + swigValue);
  27. }
  28. @SuppressWarnings("unused")
  29. private thttp_event_type_t() {
  30. this.swigValue = SwigNext.next++;
  31. }
  32. @SuppressWarnings("unused")
  33. private thttp_event_type_t(int swigValue) {
  34. this.swigValue = swigValue;
  35. SwigNext.next = swigValue+1;
  36. }
  37. @SuppressWarnings("unused")
  38. private thttp_event_type_t(thttp_event_type_t swigEnum) {
  39. this.swigValue = swigEnum.swigValue;
  40. SwigNext.next = this.swigValue+1;
  41. }
  42. private final int swigValue;
  43. private static class SwigNext {
  44. private static int next = 0;
  45. }
  46. }