예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasClubId)
            {
                hash ^= ClubId.GetHashCode();
            }
            if (HasStreamId)
            {
                hash ^= StreamId.GetHashCode();
            }
            if (HasType)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasSource)
            {
                hash ^= Source.GetHashCode();
            }
            if (HasItem)
            {
                hash ^= Item.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ClubId != 0)
            {
                hash ^= ClubId.GetHashCode();
            }
            if (PlayerCountIndex != 0)
            {
                hash ^= PlayerCountIndex.GetHashCode();
            }
            if (PlayCountIndex != 0)
            {
                hash ^= PlayCountIndex.GetHashCode();
            }
            if (PlayTypeIndex != 0)
            {
                hash ^= PlayTypeIndex.GetHashCode();
            }
            hash ^= jiangMa_.GetHashCode();
            if (FaWangTp != false)
            {
                hash ^= FaWangTp.GetHashCode();
            }
            if (WuZhaTp != false)
            {
                hash ^= WuZhaTp.GetHashCode();
            }
            if (Pox != 0D)
            {
                hash ^= Pox.GetHashCode();
            }
            if (Poy != 0D)
            {
                hash ^= Poy.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (IsBaWang != false)
            {
                hash ^= IsBaWang.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        internal CreateCareerCommand(string name, CompetitionId competitionId, SeasonId seasonId, Manager manager, ClubId clubId, Date date)
        {
            Ensure.IsNotNullOrEmpty(name);
            Ensure.IsNotNull(competitionId);
            Ensure.IsNotNull(seasonId);
            Ensure.IsNotNull(manager);
            Ensure.IsNotNull(clubId);

            this.Name          = name;
            this.CompetitionId = competitionId;
            this.SeasonId      = seasonId;
            this.Manager       = manager;
            this.ClubId        = clubId;
            this.Date          = date;
        }
 public CreateCareerCommandBuilder WithClubId(ClubId clubId)
 {
     this.clubId = clubId;
     return(this);
 }