public static void saveUpdate(UpdateEntity entity, Stream bytes, KinveyDelegate <UpdateEntity> delegates)
        {
            AsyncAppData <UpdateEntity> appData = getClient().AppData <UpdateEntity> (update_collection, typeof(UpdateEntity));

            FileMetaData fm = new FileMetaData();

            fm.acl = new AccessControlList();
            fm.acl.globallyReadable = true;
            fm._public = true;

            getClient().File().upload(fm, bytes, new KinveyDelegate <FileMetaData> {
                onSuccess = (meta) => {
                    entity.attachement = new KinveyFile(meta.id);
                    appData.Save(entity, delegates);
                },
                onError = (error) => {
                }
            });
        }
 public static void register(string username, string password, KinveyDelegate <User> delegates)
 {
     getClient().User().Create(username, password, delegates);
 }
        public static void getUpdates(KinveyDelegate <UpdateEntity[]> entities)
        {
            AsyncAppData <UpdateEntity> appData = getClient().AppData <UpdateEntity> (update_collection, typeof(UpdateEntity));

            appData.Get(entities);
        }
 public static void login(string username, string password, KinveyDelegate <User> delegates)
 {
     getClient().User().Login(username, password, delegates);
 }