コード例 #1
0
        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) => {
                }
            });
        }
コード例 #2
0
 public static void register(string username, string password, KinveyDelegate <User> delegates)
 {
     getClient().User().Create(username, password, delegates);
 }
コード例 #3
0
        public static void getUpdates(KinveyDelegate <UpdateEntity[]> entities)
        {
            AsyncAppData <UpdateEntity> appData = getClient().AppData <UpdateEntity> (update_collection, typeof(UpdateEntity));

            appData.Get(entities);
        }
コード例 #4
0
 public static void login(string username, string password, KinveyDelegate <User> delegates)
 {
     getClient().User().Login(username, password, delegates);
 }