public override void ToStream(Stream output)
 {
     StreetLine1.ToStream(output);
     StreetLine2.ToStream(output);
     City.ToStream(output);
     State.ToStream(output);
     CountryIso2.ToStream(output);
     PostCode.ToStream(output);
 }
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                StreetLine1.ToBytes(),
                StreetLine2.ToBytes(),
                City.ToBytes(),
                State.ToBytes(),
                CountryIso2.ToBytes(),
                PostCode.ToBytes()));
 }
Exemple #3
0
        /// <inheritdoc />
        public override IEnumerable <object> GetEqualityComponents()
        {
            yield return(Country?.ToUpperInvariant());

            yield return(City?.ToUpperInvariant());

            yield return(State?.ToUpperInvariant());

            yield return(ZipCode);

            yield return(StreetLine1?.ToUpperInvariant());

            yield return(StreetLine2?.ToUpperInvariant());
        }
Exemple #4
0
 public override int GetHashCode()
 {
     return(AddressID.GetHashCode() ^ AddressType.GetHashCode() ^ StreetLine1.GetHashCode() ^ City.GetHashCode() ^
            State.GetHashCode() ^ PostalCode.GetHashCode() ^ Country.GetHashCode());
 }