public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.from_)
            {
                hashcode = (hashcode * 397) + From_.GetHashCode();
            }
            if (__isset.toChannel)
            {
                hashcode = (hashcode * 397) + ToChannel.GetHashCode();
            }
            if (__isset.fromChannel)
            {
                hashcode = (hashcode * 397) + FromChannel.GetHashCode();
            }
            if (__isset.eventType)
            {
                hashcode = (hashcode * 397) + EventType.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.operationRevision)
            {
                hashcode = (hashcode * 397) + OperationRevision.GetHashCode();
            }
            if (__isset.content)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Content);
            }
            if (__isset.push)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Push);
            }
        }
        return(hashcode);
    }
Esempio n. 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset._from)
            {
                hashcode = (hashcode * 397) + _from.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.fromChannel)
            {
                hashcode = (hashcode * 397) + FromChannel.GetHashCode();
            }
            if (__isset.toChannel)
            {
                hashcode = (hashcode * 397) + ToChannel.GetHashCode();
            }
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.content)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Content);
            }
        }
        return(hashcode);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Vno.Length != 0)
            {
                hash ^= Vno.GetHashCode();
            }
            if (VColor != 0)
            {
                hash ^= VColor.GetHashCode();
            }
            if (FromChannel.Length != 0)
            {
                hash ^= FromChannel.GetHashCode();
            }
            if (Encrypt != 0)
            {
                hash ^= Encrypt.GetHashCode();
            }
            if (GpsTime != 0L)
            {
                hash ^= GpsTime.GetHashCode();
            }
            if (Lon != 0L)
            {
                hash ^= Lon.GetHashCode();
            }
            if (Lat != 0L)
            {
                hash ^= Lat.GetHashCode();
            }
            if (Vec1 != 0)
            {
                hash ^= Vec1.GetHashCode();
            }
            if (Vec2 != 0)
            {
                hash ^= Vec2.GetHashCode();
            }
            if (Vec3 != 0)
            {
                hash ^= Vec3.GetHashCode();
            }
            if (Direction != 0)
            {
                hash ^= Direction.GetHashCode();
            }
            if (Altitude != 0)
            {
                hash ^= Altitude.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (Alarm != 0)
            {
                hash ^= Alarm.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }