Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

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

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

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

palazzem opened this issue Dec 25, 2014 · 1 comment
Labels
Milestone

Comments

@palazzem
Copy link
Owner

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 this to the 0.3.0 milestone Dec 25, 2014
@palazzem
Copy link
Owner Author

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant