//读字段信息
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            this.sex = input.getBoolean("sex");
            this.age = input.getInt("age");
        }
Example #2
0
        //读字段信息
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            this.sex = input.getBoolean("sex");
            this.age = input.getInt("age");
        }
Example #3
0
    }                                           //分数

    //-----------------------------------------------------------------

    /// <summary>
    /// 重写读数据的方法
    /// </summary>
    public override void readFields(BmobInput input)
    {
        base.readFields(input);

        this.playerName = input.getString("playerName");
        this.score      = input.getInt("score");
    }
Example #4
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            pos_x   = input.getDouble("pos_x");
            pos_y   = input.getDouble("pos_y");
            pos_z   = input.getDouble("pos_z");
            rot_w   = input.getDouble("rot_w");
            rot_x   = input.getDouble("rot_x");
            rot_y   = input.getDouble("rot_y");
            rot_z   = input.getDouble("rot_z");
            scale_x = input.getDouble("scale_x");
            scale_y = input.getDouble("scale_y");
            scale_z = input.getDouble("scale_z");

            type    = input.getInt("type");
            text    = input.getString("text");
            texture = input.getFile("texture");
            video   = input.getFile("video");

            model = input.Get <BmobPointer <BmobModel> >("model");
            mark  = input.Get <BmobPointer <Mark> >("mark");

            version = input.getInt("version");
        }
Example #5
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            this.life   = input.getInt("life");
            this.attack = input.getInt("attack");
        }
Example #6
0
 //读字段信息
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     objectId = input.getString("objectId");
     price    = input.getDouble("price");
     count    = input.getInt("count");
 }
        //读字段信息
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            enabled = input.getBoolean("enabled");
            status  = input.getInt("status");
        }
Example #8
0
 //读字段信息
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     //读取属性值
     this.id       = input.getInt("id");
     this.name     = input.getString("name");
     this.courseId = input.getInt("courseId");
 }
Example #9
0
        public void BmobIntTest()
        {
            // set
            BmobInt i = new BmobInt(1);
            BmobInt i2 = 1; // 有隐士转换

            // get
            int iv = i.Get();
        }
Example #10
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            modelType = input.getInt("modelType");
            modelName = input.getString("modelName");
            preview   = input.getFile("preview");
            asset     = input.getFile("assetAndroid");
        }
Example #11
0
        public void BmobIntTest()
        {
            // set
            BmobInt i  = new BmobInt(1);
            BmobInt i2 = 1; // 有隐士转换

            // get
            int iv = i.Get();
        }
Example #12
0
 /// <summary>
 /// 成员函数
 /// </summary>
 /// <param name="input"></param>
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     //读取相应的字段
     this.objectId   = input.getString("objectId");
     this.playerName = input.getString("PlayerName");
     this.score      = input.getInt("PlayerScore");
     this.id         = input.getInt("Id");
 }
Example #13
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            coordinate = input.getGeoPoint("position");
            type       = input.getInt("type");
            userId     = input.getString("userId");
            upLoadTime = input.getString("createdAt");
            snapShot   = input.getFile("snapShot");
        }
Example #14
0
 //读字段信息
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     //读取属性值
     this.name         = input.getString("name");
     this.questionList = input.getString("questionList");
     this.id           = input.getInt("id");
     this.difficulty   = input.getDouble("difficulty");
     this.courseId     = input.getInt("courseId");
 }
Example #15
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            this.id          = input.getInt("id");
            this.file        = input.getFile("file");
            this.type        = input.getString("type");
            this.courseId    = input.getInt("courseId");
            this.unitId      = input.getInt("unitId");
            this.knowledgeId = input.getInt("knowledgeId");
        }
Example #16
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            MissionID   = input.getString("MissionID");
            Date        = input.getDate("Date");
            Context     = input.getString("Context");
            LogUrl      = input.getString("LogUrl");
            IsNeedTidy  = input.getBoolean("IsNeedTidy");
            ReViewCount = input.getInt("ReViewCount");
        }
Example #17
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            Name        = input.getString("Name");
            CatalogID   = input.getString("CatalogID");
            Description = input.getString("Description");
            Status      = input.getString("Status");
            CreateDate  = input.getDate("CreateDate");
            Interest    = input.getInt("Interest");
        }
Example #18
0
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     this.qiHaoObjectId   = input.getString("qiHaoObjectId");
     this.qiHao           = input.getInt("qiHao");
     this.userId          = input.getString("userId");
     this.jieE            = input.getDouble("jieE");
     this.type            = input.getInt("type");
     this.typeForKaiJiang = input.getInt("typeForKaiJiang");
     this.isLingQu        = input.getBoolean("isLingQu");
 }
Example #19
0
        // public string 详细介绍 { set; get; }
        //        public string 促销状态 { set; get; }
        //        public string 轮播广告状态 { set; get; }

        public CommodityPcShow(string objectId, string category, string categorySub, string name, BmobDouble price,
                               BmobInt count, string details, string promotion, string ad)
        {
            this.objectId = objectId;
            分类            = category;
            子类            = categorySub;
            称             = name;
            价格            = price;
            数量            = count;
            //  详细介绍 = details;
//            促销状态 = promotion;
//            轮播广告状态 = ad;
        }
Example #20
0
    public override void readFields(BmobInput input)
    {
        base.readFields(input);

        Content  = input.getString("Content");
        UserId   = input.getString("UserId");
        Level    = input.getInt("Level");
        X        = input.getDouble("X");
        Y        = input.getDouble("Y");
        Z        = input.getDouble("Z");
        ColorR   = input.getDouble("ColorR");
        ColorG   = input.getDouble("ColorG");
        ColorB   = input.getDouble("ColorB");
        FontSize = input.getInt("FontSize");
    }
Example #21
0
        //读字段信息
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            this.name              = input.getString("name");
            this.nickname          = input.getString("nickname");
            this.mobilePhoneNumber = input.getString("mobilePhoneNumber");
            this.email             = input.getString("email");
            this.classId           = input.getString("classId");

            this.identity  = input.getString("identity");
            this.username  = input.getString("username");
            this.password  = input.getString("password");
            this.firstTime = input.getInt("firstTime");
            this.courseId  = input.getInt("courseId");
        }
Example #22
0
        /// <summary>
        ///     获取代理总数
        /// </summary>
        /// <returns></returns>
        public int GetTotalProxyCount()
        {
            //创建一个BmobQuery查询对象
            BmobQuery query = new BmobQuery();
            //查询playerName的值为bmob的记录
            //query.WhereEqualTo("status", 1);

            BmobInt count = 0;

            try
            {
                query.Count();
                var future = Bmob.FindTaskAsync <ProxyServers>(ProxyServers.TABLE_NAME, query);
                count = future.Result.count;
            }
            catch
            {
            }
            return(count.Get());
        }
Example #23
0
    void findAllUser()
    {
        BmobQuery query = new BmobQuery();

        //query.WhereEqualTo ("playerName", "123");
        query.Count();
        Bmob.Find <MyBmobUser> (MyBmobUser.TABLE, query, (resp, exception) =>
        {
            if (exception != null)
            {
                print("查询失败, 失败原因为: " + exception.Message);
                return;
            }

            List <MyBmobUser> list = resp.results;
            BmobInt count          = resp.count;
            print("满足条件的对象个数为: " + count.Get());
            foreach (var game in list)
            {
                print("获取的对象为: " + toString(game));
            }
        });
    }
Example #24
0
    void FindQueryWithCount()
    {
        BmobQuery query = new BmobQuery();

        query.WhereEqualTo("playerName", "123");
        query.Count();
        Bmob.Find <BmobGameObject> (TABLENAME, query, (resp, exception) =>
        {
            if (exception != null)
            {
                print("查询失败, 失败原因为: " + exception.Message);
                return;
            }

            List <BmobGameObject> list = resp.results;
            BmobInt count = resp.count;
            print("满足条件的对象个数为: " + count.Get());
            foreach (var game in list)
            {
                print("获取的对象为: " + toString(game));
            }
        });
    }
Example #25
0
 //读字段信息
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     this.score = input.getInt("Score");
 }
Example #26
0
 public override void readFields(BmobInput input)
 {
     this.smsId = input.getInt("smsId");
 }
Example #27
0
 public override void readFields(BmobInput input)
 {
     this.smsId = input.getInt("smsId");
 }
Example #28
0
        public override void readFields(BmobInput input)
        {
            base.readFields (input);

                        this.life = input.getInt ("life");
                        this.attack = input.getInt ("attack");
        }
Example #29
0
        public override void readFields(BmobInput input)
        {
            base.readFields (input);

                        this.score = input.getInt ("score");
                        this.cheatMode = input.getBoolean ("cheatMode");
                        this.playerName = input.getString ("playerName");
        }
Example #30
0
 public override void readFields(BmobInput input)
 {
     this.count   = input.getInt("count");
     this.results = input.getList <T>("results");
 }
Example #31
0
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     this.SaveData = input.getString("SaveData");
     this.Level    = input.getInt("Level");
 }