On 02/10/2014 07:41 AM, Daniel Bevenius wrote:
Hi,
I've done some work on [1] in regards to coming up with a common sync
data format for our clients, but I and messed it up [2]. Long story
short is that I did not take into account some of client languages
features. So here is a new suggestion that will hopefully work with
all our client languages:
public interface SyncObject<T, ID> {
ID objectId();
String revision();
T content();
}
What do people think about this?
One of the things I'm wondering about is, in
the far far future when our
code is told we have the server push^H^H^H^H asynchronously notifying
the device of data changes, how will Java know what type the data coming
in is? It MAY be useful to have a name space feature in the message.