SMSData.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 class SMSData {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected SMSData(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(SMSData obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_SMSData(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public SMSData() {
  32. this(tinyWRAPJNI.new_SMSData(), true);
  33. }
  34. public twrap_sms_type_t getType() {
  35. return twrap_sms_type_t.swigToEnum(tinyWRAPJNI.SMSData_getType(swigCPtr, this));
  36. }
  37. public int getMR() {
  38. return tinyWRAPJNI.SMSData_getMR(swigCPtr, this);
  39. }
  40. public long getPayloadLength() {
  41. return tinyWRAPJNI.SMSData_getPayloadLength(swigCPtr, this);
  42. }
  43. public long getPayload(java.nio.ByteBuffer output, long maxsize) {
  44. return tinyWRAPJNI.SMSData_getPayload(swigCPtr, this, output, maxsize);
  45. }
  46. public String getOA() {
  47. return tinyWRAPJNI.SMSData_getOA(swigCPtr, this);
  48. }
  49. public String getDA() {
  50. return tinyWRAPJNI.SMSData_getDA(swigCPtr, this);
  51. }
  52. }