New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include a common interface to read/write from/to ADK #13

Closed
palazzem opened this Issue Dec 25, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@palazzem
Copy link
Owner

palazzem commented Dec 25, 2014

Create an IMessage interface for the AdkMessage class that exposes:

  • getString()
  • getFloat()
  • getByte()
  • getBytes()
  • getInt()
  • ...

In this way a developer can simply use mAdkManager.read().getInt() to read an Int value from the ADK.

Pros:

  • better abstraction
  • avoid developers to parse returned value

Cons:

  • lesser control and flexibility for returned result

@palazzem palazzem added the features label Dec 25, 2014

@palazzem palazzem added this to the 0.3.0 milestone Dec 25, 2014

@palazzem palazzem closed this in e3dbabc Jan 10, 2015

@palazzem

This comment has been minimized.

Copy link
Owner Author

palazzem commented Jan 10, 2015

It's just a first draft and may be improved according to common usages. Let me know if anyone needs something better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment