public void MergeFrom(AttackGymMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackActions_.Add(other.attackActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.PlayerLatitude != 0D)
     {
         PlayerLatitude = other.PlayerLatitude;
     }
     if (other.PlayerLongitude != 0D)
     {
         PlayerLongitude = other.PlayerLongitude;
     }
 }
 public void MergeFrom(AttackRaidBattleMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackerActions_.Add(other.attackerActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.TimestampMs != 0L)
     {
         TimestampMs = other.TimestampMs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 3
0
 public void MergeFrom(GymBattleAttackMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackActions_.Add(other.attackActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.PlayerLatDegrees != 0D)
     {
         PlayerLatDegrees = other.PlayerLatDegrees;
     }
     if (other.PlayerLngDegrees != 0D)
     {
         PlayerLngDegrees = other.PlayerLngDegrees;
     }
     if (other.TimestampMs != 0L)
     {
         TimestampMs = other.TimestampMs;
     }
 }