Example #1
0
        public async Task <bool> Delete()
        {
            NCMBRequest r = new NCMBRequest();

            r.Method   = "DELETE";
            r.Name     = Name;
            r.ObjectId = ObjectId();
            var response = await r.Exec();

            return(response.Count == 0);
        }
Example #2
0
        public async Task <bool> Fetch()
        {
            NCMBRequest r = new NCMBRequest();

            r.Method   = "GET";
            r.Name     = Name;
            r.ObjectId = ObjectId();
            var response = await r.Exec();

            Sets(response);
            return(true);
        }
Example #3
0
        new async public Task <bool> Save()
        {
            NCMBRequest r = new NCMBRequest();

            r.Name     = Name;
            r.Method   = "POST";
            r.Data     = data;
            r.Fields   = GetData();
            r.MimeType = MimeType;
            r.ObjectId = GetString("fileName");
            var response = await r.Exec();

            Sets(response);
            return(true);
        }