Beispiel #1
0
        public playerPublicWr Migrate()
        {
            playerPublicWr newc = new playerPublicWr();

            newc.basic      = base.Migrate();
            newc.registered = DesktopHelper.GetTime(registered);
            newc.lastLogin  = DesktopHelper.GetTime(last_login);
            newc.lastLogout = DesktopHelper.GetTime(last_logout);
            return(newc);
        }
Beispiel #2
0
        public quizWr Migrate()
        {
            quizWr newc = new quizWr();

            newc.basic         = base.Migrate();
            newc.dateStart     = DesktopHelper.GetTime(date_start);
            newc.dateExpire    = DesktopHelper.GetTime(date_expire);
            newc.status        = status;
            newc.gradeArray    = DesktopHelper.MigrateList <gradeWr, _gradeWr>(grades);
            newc.deleted       = deleted;
            newc.totalMaxScore = total_max_score;
            newc.totalQuestion = total_questions;
            return(newc);
        }
        public goodsWr Migrate()
        {
            goodsWr newc = new goodsWr();

            newc.goodsId      = goods_id;
            newc.quantity     = quantity;
            newc.image        = image;
            newc.sortOrder    = sort_order;
            newc.name         = name;
            newc.description_ = description;
            newc.redeem       = redeem.Migrate();
            newc.code         = code;
            newc.dateStart    = DesktopHelper.GetTime(date_start);
            newc.dateExpire   = DesktopHelper.GetTime(date_expire);
            return(newc);
        }
Beispiel #4
0
        public questBasicWr Migrate()
        {
            questBasicWr newc = new questBasicWr();

            newc.questName    = quest_name;
            newc.description  = description;
            newc.hint         = hint;
            newc.image        = image;
            newc.missionOrder = mission_order;
            newc.status       = status;
            // issue #3
            newc.sortOrder         = (sort_order == null || sort_order == "") ? 0 : UInt32.Parse(sort_order);
            newc.rewardArray       = DesktopHelper.MigrateList <rewardWr, _rewardWr>(rewards);
            newc.missionBasicArray = DesktopHelper.MigrateList <missionBasicWr, _missionBasicWr>(missions);
            newc.dateAdded         = DesktopHelper.GetTime(date_added);
            newc.clientId          = client_id;
            newc.siteId            = site_id;
            newc.conditionArray    = DesktopHelper.MigrateList <conditionWr, _conditionWr>(condition);
            newc.dateModified      = DesktopHelper.GetTime(date_modified);
            newc.questId           = quest_id;
            return(newc);
        }