public CrosscrowdManagerEntity Clone()
        {
            CrosscrowdManagerEntity entity = new CrosscrowdManagerEntity();

            entity.ManagerId         = this.ManagerId;
            entity.DomainId          = this.DomainId;
            entity.SiteId            = this.SiteId;
            entity.SiteName          = this.SiteName;
            entity.Name              = this.Name;
            entity.Logo              = this.Logo;
            entity.CrossCrowdId      = this.CrossCrowdId;
            entity.Morale            = this.Morale;
            entity.Score             = this.Score;
            entity.ScoreUpdateTime   = this.ScoreUpdateTime;
            entity.KillNumber        = this.KillNumber;
            entity.ByKillNumber      = this.ByKillNumber;
            entity.NextMatchTime     = this.NextMatchTime;
            entity.ClearCdCount      = this.ClearCdCount;
            entity.ResurrectionTime  = this.ResurrectionTime;
            entity.ResurrectionCount = this.ResurrectionCount;
            entity.ResurrectionAuto  = this.ResurrectionAuto;
            entity.WinningCount      = this.WinningCount;
            entity.Kpi        = this.Kpi;
            entity.Status     = this.Status;
            entity.RowTime    = this.RowTime;
            entity.UpdateTime = this.UpdateTime;
            return(entity);
        }
예제 #2
0
 public CrosscrowdMatchEntity(CrosscrowdManagerEntity home, CrosscrowdManagerEntity away, Guid idx, int crowdId, int pairIndex)
 {
     this.Idx          = idx;
     this.CrossCrowdId = crowdId;
     this.HomeId       = home.ManagerId;
     this.AwayId       = away.ManagerId;
     HomeKpi           = home.Kpi;
     AwayKpi           = away.Kpi;
     this.HomeSiteId   = home.SiteId;
     this.AwaySiteId   = away.SiteId;
     this.HomeName     = home.ShowName;
     this.AwayName     = away.ShowName;
     this.HomeScore    = 0;
     this.AwayScore    = 0;
     this.PairIndex    = pairIndex;
     this.Status       = -1;
     this.RowTime      = DateTime.Now;
 }