Ejemplo n.º 1
0
 public void MergeFrom(GetRaidDetailsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.lobby_ != null)
     {
         if (lobby_ == null)
         {
             lobby_ = new global::POGOProtos.Data.Raid.Lobby();
         }
         Lobby.MergeFrom(other.Lobby);
     }
     if (other.raidBattle_ != null)
     {
         if (raidBattle_ == null)
         {
             raidBattle_ = new global::POGOProtos.Data.Battle.Battle();
         }
         RaidBattle.MergeFrom(other.RaidBattle);
     }
     if (other.PlayerCanJoinLobby != false)
     {
         PlayerCanJoinLobby = other.PlayerCanJoinLobby;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.raidInfo_ != null)
     {
         if (raidInfo_ == null)
         {
             raidInfo_ = new global::POGOProtos.Data.Raid.RaidInfo();
         }
         RaidInfo.MergeFrom(other.RaidInfo);
     }
     if (other.TicketUsed != false)
     {
         TicketUsed = other.TicketUsed;
     }
     if (other.FreeTicketAvailable != false)
     {
         FreeTicketAvailable = other.FreeTicketAvailable;
     }
     if (other.ThrowsRemaining != 0)
     {
         ThrowsRemaining = other.ThrowsRemaining;
     }
     if (other.ReceivedRewards != false)
     {
         ReceivedRewards = other.ReceivedRewards;
     }
     if (other.NumPlayersInLobby != 0)
     {
         NumPlayersInLobby = other.NumPlayersInLobby;
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (lobby_ != null)
            {
                hash ^= Lobby.GetHashCode();
            }
            if (raidBattle_ != null)
            {
                hash ^= RaidBattle.GetHashCode();
            }
            if (PlayerCanJoinLobby != false)
            {
                hash ^= PlayerCanJoinLobby.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (raidInfo_ != null)
            {
                hash ^= RaidInfo.GetHashCode();
            }
            if (TicketUsed != false)
            {
                hash ^= TicketUsed.GetHashCode();
            }
            if (FreeTicketAvailable != false)
            {
                hash ^= FreeTicketAvailable.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            if (ReceivedRewards != false)
            {
                hash ^= ReceivedRewards.GetHashCode();
            }
            if (NumPlayersInLobby != 0)
            {
                hash ^= NumPlayersInLobby.GetHashCode();
            }
            if (ServerMs != 0L)
            {
                hash ^= ServerMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }