Esempio n. 1
0
        public CrossladderManagerEntity Clone()
        {
            CrossladderManagerEntity entity = new CrossladderManagerEntity();

            entity.ManagerId        = this.ManagerId;
            entity.DomainId         = this.DomainId;
            entity.Name             = this.Name;
            entity.Logo             = this.Logo;
            entity.Kpi              = this.Kpi;
            entity.SiteId           = this.SiteId;
            entity.SiteName         = this.SiteName;
            entity.Score            = this.Score;
            entity.NewlyScore       = this.NewlyScore;
            entity.NewlyHonor       = this.NewlyHonor;
            entity.Honor            = this.Honor;
            entity.NewlyLadderCoin  = this.NewlyLadderCoin;
            entity.LadderCoin       = this.LadderCoin;
            entity.MaxScore         = this.MaxScore;
            entity.MatchTime        = this.MatchTime;
            entity.LastExchageTime  = this.LastExchageTime;
            entity.Status           = this.Status;
            entity.RowTime          = this.RowTime;
            entity.UpdateTime       = this.UpdateTime;
            entity.RowVersion       = this.RowVersion;
            entity.DailyMaxScore    = this.DailyMaxScore;
            entity.DailyMaxAddScore = this.DailyMaxAddScore;
            entity.Stamina          = this.Stamina;
            entity.StaminaBuy       = this.StaminaBuy;
            return(entity);
        }
Esempio n. 2
0
        public CrossladderMatchEntity(CrossladderManagerEntity home, CrossladderManagerEntity away, Guid idx, Guid ladderid, int groupindex)
        {
            this.Idx             = idx;
            this.LadderId        = ladderid;
            this.HomeId          = home.ManagerId;
            this.AwayId          = away.ManagerId;
            this.HomeName        = home.ShowName;
            this.AwayName        = away.ShowName;
            this.HomeLadderScore = home.Score;
            this.AwayLadderScore = away.Score;
            this.HomeSiteId      = home.SiteId;
            this.AwaySiteId      = away.SiteId;
            this.HomeLogo        = home.Logo;
            this.AwayLogo        = away.Logo;
            this.HomeScore       = 0;
            this.AwayScore       = 0;
            this.HomeIsBot       = home.IsBot;
            this.AwayIsBot       = away.IsBot;
            this.GroupIndex      = groupindex;
            this.PrizeHomeScore  = 0;
            this.PrizeAwayScore  = 0;
            this.Status          = -1;
            this.RowTime         = DateTime.Now;

            this.HomeIsHook = home.IsHook;
            this.AwayIsHook = away.IsHook;
        }