Пример #1
0
 public void MergeFrom(BlockedPlayer other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasAccountId)
     {
         if (!HasAccountId)
         {
             AccountId = new global::Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.HasName)
     {
         Name = other.Name;
     }
     role_.Add(other.role_);
     if (other.HasPrivileges)
     {
         Privileges = other.Privileges;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
 public void MergeFrom(Friend other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accountId_ != null)
     {
         if (accountId_ == null)
         {
             accountId_ = new global::Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     attribute_.Add(other.attribute_);
     role_.Add(other.role_);
     if (other.Privileges != 0UL)
     {
         Privileges = other.Privileges;
     }
     if (other.AttributesEpoch != 0UL)
     {
         AttributesEpoch = other.AttributesEpoch;
     }
     if (other.FullName.Length != 0)
     {
         FullName = other.FullName;
     }
     if (other.BattleTag.Length != 0)
     {
         BattleTag = other.BattleTag;
     }
 }
Пример #3
0
 public void MergeFrom(MemberId other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasAccountId)
     {
         if (!HasAccountId)
         {
             AccountId = new global::Bgs.Protocol.Account.V1.AccountId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.HasUniqueId)
     {
         UniqueId = other.UniqueId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #4
0
 public void MergeFrom(Identity other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accountId_ != null)
     {
         if (accountId_ == null)
         {
             accountId_ = new Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.gameAccountId_ != null)
     {
         if (gameAccountId_ == null)
         {
             gameAccountId_ = new Bgs.Protocol.EntityId();
         }
         GameAccountId.MergeFrom(other.GameAccountId);
     }
 }
Пример #5
0
 public void MergeFrom(BlockedPlayer other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accountId_ != null)
     {
         if (accountId_ == null)
         {
             accountId_ = new Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     role_.Add(other.role_);
     if (other.Privileges != 0UL)
     {
         Privileges = other.Privileges;
     }
 }
Пример #6
0
 public void MergeFrom(RequestAirdropRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accountId_ != null)
     {
         if (accountId_ == null)
         {
             accountId_ = new global::Kin.Agora.Common.V4.SolanaAccountId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.Quarks != 0UL)
     {
         Quarks = other.Quarks;
     }
     if (other.Commitment != 0)
     {
         Commitment = other.Commitment;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #7
0
 public void MergeFrom(Identity other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasAccountId)
     {
         if (!HasAccountId)
         {
             AccountId = new global::Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.HasGameAccountId)
     {
         if (!HasGameAccountId)
         {
             GameAccountId = new global::Bgs.Protocol.EntityId();
         }
         GameAccountId.MergeFrom(other.GameAccountId);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }