public override int GetHashCode() { int hash = 1; if (ItemId.Length != 0) { hash ^= ItemId.GetHashCode(); } if (IsIap != false) { hash ^= IsIap.GetHashCode(); } if (currencyToBuy_ != null) { hash ^= CurrencyToBuy.GetHashCode(); } if (yieldsCurrency_ != null) { hash ^= YieldsCurrency.GetHashCode(); } if (yieldsItem_ != null) { hash ^= YieldsItem.GetHashCode(); } hash ^= Tags.GetHashCode(); if (Unknown7 != 0) { hash ^= Unknown7.GetHashCode(); } return(hash); }
public void MergeFrom(StoreItem other) { if (other == null) { return; } if (other.ItemId.Length != 0) { ItemId = other.ItemId; } if (other.IsIap != false) { IsIap = other.IsIap; } if (other.currencyToBuy_ != null) { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } CurrencyToBuy.MergeFrom(other.CurrencyToBuy); } if (other.yieldsCurrency_ != null) { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } YieldsCurrency.MergeFrom(other.YieldsCurrency); } if (other.yieldsItem_ != null) { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Networking.Platform.Responses.GetStoreItemsResponse.Types.StoreItemInfo(); } YieldsItem.MergeFrom(other.YieldsItem); } tags_.Add(other.tags_); if (other.Unknown7 != 0) { Unknown7 = other.Unknown7; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(StoreItem other) { if (other == null) { return; } if (other.ItemId.Length != 0) { ItemId = other.ItemId; } if (other.IsIap != false) { IsIap = other.IsIap; } if (other.currencyToBuy_ != null) { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } CurrencyToBuy.MergeFrom(other.CurrencyToBuy); } if (other.yieldsCurrency_ != null) { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } YieldsCurrency.MergeFrom(other.YieldsCurrency); } if (other.yieldsItem_ != null) { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); } YieldsItem.MergeFrom(other.YieldsItem); } tags_.Add(other.tags_); if (other.Unknown7 != 0) { Unknown7 = other.Unknown7; } }