CGEchoMessage.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /******************************************************************
  2. *
  3. * uEcho for ObjC
  4. *
  5. * Copyright (C) Satoshi Konno 2015
  6. *
  7. * This is licensed under BSD-style license, see file COPYING.
  8. *
  9. ******************************************************************/
  10. #import <Foundation/NSArray.h>
  11. #import <Foundation/NSString.h>
  12. typedef NS_ENUM(Byte, CGEchoESV) {
  13. CGEchoESVWriteRequest = 0x60,
  14. CGEchoESVWriteRequestResponseRequired = 0x61,
  15. CGEchoESVReadRequest = 0x62,
  16. CGEchoESVNotificationRequest = 0x63,
  17. CGEchoESVWriteReadRequest = 0x6E,
  18. CGEchoESVWriteResponse = 0x71,
  19. CGEchoESVReadResponse = 0x72,
  20. CGEchoESVNotification = 0x73,
  21. CGEchoESVNotificationResponseRequired = 0x74,
  22. CGEchoESVNotificationResponse = 0x7A,
  23. CGEchoESVWriteReadResponse = 0x7E,
  24. CGEchoESVWriteRequestError = 0x50,
  25. CGEchoESVWriteRequestResponseRequiredError = 0x51,
  26. CGEchoESVReadRequestError = 0x52,
  27. CGEchoESVNotificationRequestError = 0x53,
  28. CGEchoESVWriteReadRequestError = 0x5E,
  29. };
  30. typedef void uEchoMessage;
  31. @interface CGEchoMessage : NSObject {
  32. }
  33. @property (assign) uEchoMessage* cObject;
  34. - (id)init;
  35. - (id)initWithCObject:(uEchoMessage*)cobj;
  36. - (NSArray*)properties;
  37. - (NSArray*)setproperties;
  38. - (NSArray*)getproperties;
  39. - (BOOL)setESV:(CGEchoESV)esv;
  40. - (CGEchoESV)ESV;
  41. - (BOOL)addProperty:(Byte)code data:(Byte*)data size:(size_t)size;
  42. - (BOOL)addGetProperty:(Byte)code data:(Byte*)data size:(size_t)size;
  43. - (BOOL)addSetProperty:(Byte)code data:(Byte*)data size:(size_t)size;
  44. @end