public void MergeFrom(StartGymBattleResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.BattleStartTimestampMs != 0L)
     {
         BattleStartTimestampMs = other.BattleStartTimestampMs;
     }
     if (other.BattleEndTimestampMs != 0L)
     {
         BattleEndTimestampMs = other.BattleEndTimestampMs;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.defender_ != null)
     {
         if (defender_ == null)
         {
             defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Defender.MergeFrom(other.Defender);
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.attacker_ != null)
     {
         if (attacker_ == null)
         {
             attacker_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Attacker.MergeFrom(other.Attacker);
     }
     if (other.battle_ != null)
     {
         if (battle_ == null)
         {
             battle_ = new global::POGOProtos.Data.Battle.Battle();
         }
         Battle.MergeFrom(other.Battle);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #2
0
 public void MergeFrom(AttackGymResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.activeDefender_ != null)
     {
         if (activeDefender_ == null)
         {
             activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveDefender.MergeFrom(other.ActiveDefender);
     }
     if (other.activeAttacker_ != null)
     {
         if (activeAttacker_ == null)
         {
             activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveAttacker.MergeFrom(other.ActiveAttacker);
     }
     if (other.battleUpdate_ != null)
     {
         if (battleUpdate_ == null)
         {
             battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
         }
         BattleUpdate.MergeFrom(other.BattleUpdate);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }