Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.approvedChannelInfos)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ApprovedChannelInfos_);
            }
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.slot_sizes)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Slot_sizes);
                }
                if (isset.col_to_slot_map)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Col_to_slot_map);
                }
            }
            return(hashcode);
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Path.GetHashCode();
                hashcode = (hashcode * 397) + QueryTime.GetHashCode();
                hashcode = (hashcode * 397) + BeforeRange.GetHashCode();
                hashcode = (hashcode * 397) + QueryId.GetHashCode();
                hashcode = (hashcode * 397) + Requester.GetHashCode();
                hashcode = (hashcode * 397) + Header.GetHashCode();
                hashcode = (hashcode * 397) + DataTypeOrdinal.GetHashCode();
                hashcode = (hashcode * 397) + TCollections.GetHashCode(DeviceMeasurements);
            }
            return(hashcode);
        }
Ejemplo n.º 4
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.squareMid)
            {
                hashcode = (hashcode * 397) + SquareMid.GetHashCode();
            }
            if (__isset.requestedMemberMids)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(RequestedMemberMids);
            }
        }
        return(hashcode);
    }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.messageBoxWrapUpList)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(MessageBoxWrapUpList);
            }
            if (__isset.totalSize)
            {
                hashcode = (hashcode * 397) + TotalSize.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 6
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.chatId)
            {
                hashcode = (hashcode * 397) + ChatId.GetHashCode();
            }
            if (__isset.lastReadMessageIds)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(LastReadMessageIds_);
            }
        }
        return(hashcode);
    }
Ejemplo n.º 7
0
        public void TCollection_List_Equals_Primitive_Different_Test()
        {
            var collection1 = new List <int> {
                1, 2, 3
            };
            var collection2 = new List <int> {
                1, 2
            };

            Assert.IsFalse(TCollections.Equals(collection1, collection2));
            Assert.IsFalse(collection1.SequenceEqual(collection2));

            collection2.Add(4);
            Assert.IsFalse(TCollections.Equals(collection1, collection2));
            Assert.IsFalse(collection1.SequenceEqual(collection2));
        }
Ejemplo n.º 8
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.updatedAttrs)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(UpdatedAttrs);
            }
            if (__isset.chatMember)
            {
                hashcode = (hashcode * 397) + ChatMember.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 9
0
        public override bool Equals(object that)
        {
            var other = that as TRenderDatum;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(((isset.type == other.isset.type) && ((!isset.type) || (System.Object.Equals(Type, other.Type)))) &&
                   ((isset.cnt == other.isset.cnt) && ((!isset.cnt) || (System.Object.Equals(Cnt, other.Cnt)))) &&
                   ((isset.@value == other.isset.@value) && ((!isset.@value) || (TCollections.Equals(Value, other.Value)))));
        }
        public override bool Equals(object that)
        {
            var other = that as TMultiPutItemResult;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(((__isset.error == other.__isset.error) && ((!__isset.error) || (System.Object.Equals(Error, other.Error)))) &&
                   ((__isset.added == other.__isset.added) && ((!__isset.added) || (TCollections.Equals(Added, other.Added)))) &&
                   ((__isset.replaced == other.__isset.replaced) && ((!__isset.replaced) || (TCollections.Equals(Replaced, other.Replaced)))));
        }
Ejemplo n.º 11
0
        public void TCollection_Map_Equals_OneAndTheSameObject_Test()
        {
            var collection1 = new Dictionary <int, ExampleClass>
            {
                [1] = new ExampleClass {
                    X = 1
                },
                [-1] = new ExampleClass {
                    X = 2
                }
            };
            var collection2 = collection1;

            Assert.IsTrue(TCollections.Equals(collection1, collection2));
            Assert.IsTrue(collection1.SequenceEqual(collection2));
        }
Ejemplo n.º 12
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.operations)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Operations);
            }
            if (__isset.endFlag)
            {
                hashcode = (hashcode * 397) + EndFlag.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 13
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.fixed_len_data)
                {
                    hashcode = (hashcode * 397) + Fixed_len_data.GetHashCode();
                }
                if (isset.var_len_data)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Var_len_data);
                }
            }
            return(hashcode);
        }
Ejemplo n.º 14
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.comp)
            {
                hashcode = (hashcode * 397) + Comp.GetHashCode();
            }
            if ((Values != null) && __isset.values)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Values);
            }
        }
        return(hashcode);
    }
Ejemplo n.º 15
0
    public override bool Equals(object that)
    {
        var other = that as GetJoinedSquareChatsResponse;

        if (other == null)
        {
            return(false);
        }
        if (ReferenceEquals(this, other))
        {
            return(true);
        }
        return(((__isset.chats == other.__isset.chats) && ((!__isset.chats) || (TCollections.Equals(Chats, other.Chats)))) &&
               ((__isset.chatMembers == other.__isset.chatMembers) && ((!__isset.chatMembers) || (TCollections.Equals(ChatMembers, other.ChatMembers)))) &&
               ((__isset.statuses == other.__isset.statuses) && ((!__isset.statuses) || (TCollections.Equals(Statuses, other.Statuses)))) &&
               ((__isset.continuationToken == other.__isset.continuationToken) && ((!__isset.continuationToken) || (System.Object.Equals(ContinuationToken, other.ContinuationToken)))));
    }
    public override bool Equals(object that)
    {
        var other = that as FetchSquareChatEventsResponse;

        if (other == null)
        {
            return(false);
        }
        if (ReferenceEquals(this, other))
        {
            return(true);
        }
        return(((__isset.subscription == other.__isset.subscription) && ((!__isset.subscription) || (System.Object.Equals(Subscription, other.Subscription)))) &&
               ((__isset.events == other.__isset.events) && ((!__isset.events) || (TCollections.Equals(Events, other.Events)))) &&
               ((__isset.syncToken == other.__isset.syncToken) && ((!__isset.syncToken) || (System.Object.Equals(SyncToken, other.SyncToken)))) &&
               ((__isset.continuationToken == other.__isset.continuationToken) && ((!__isset.continuationToken) || (System.Object.Equals(ContinuationToken, other.ContinuationToken)))));
    }
Ejemplo n.º 17
0
        public override bool Equals(object that)
        {
            var other = that as TSDeleteDataReq;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(System.Object.Equals(SessionId, other.SessionId) &&
                   TCollections.Equals(Paths, other.Paths) &&
                   System.Object.Equals(StartTime, other.StartTime) &&
                   System.Object.Equals(EndTime, other.EndTime));
        }
Ejemplo n.º 18
0
        public override bool Equals(object that)
        {
            var other = that as TDatumVal;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(((isset.int_val == other.isset.int_val) && ((!isset.int_val) || (System.Object.Equals(Int_val, other.Int_val)))) &&
                   ((isset.real_val == other.isset.real_val) && ((!isset.real_val) || (System.Object.Equals(Real_val, other.Real_val)))) &&
                   ((isset.str_val == other.isset.str_val) && ((!isset.str_val) || (System.Object.Equals(Str_val, other.Str_val)))) &&
                   ((isset.arr_val == other.isset.arr_val) && ((!isset.arr_val) || (TCollections.Equals(Arr_val, other.Arr_val)))));
        }
        public override bool Equals(object that)
        {
            var other = that as StartUpStatus;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(System.Object.Equals(PartitionInterval, other.PartitionInterval) &&
                   System.Object.Equals(HashSalt, other.HashSalt) &&
                   System.Object.Equals(ReplicationNumber, other.ReplicationNumber) &&
                   TCollections.Equals(SeedNodeList, other.SeedNodeList));
        }
Ejemplo n.º 20
0
        public override bool Equals(object that)
        {
            var other = that as Endpoint;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(((__isset.ipv4 == other.__isset.ipv4) && ((!__isset.ipv4) || (System.Object.Equals(Ipv4, other.Ipv4)))) &&
                   ((__isset.port == other.__isset.port) && ((!__isset.port) || (System.Object.Equals(Port, other.Port)))) &&
                   ((__isset.service_name == other.__isset.service_name) && ((!__isset.service_name) || (System.Object.Equals(Service_name, other.Service_name)))) &&
                   ((__isset.ipv6 == other.__isset.ipv6) && ((!__isset.ipv6) || (TCollections.Equals(Ipv6, other.Ipv6)))));
        }
Ejemplo n.º 21
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((Expressions != null))
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Expressions);
                }
                if ((Start_key != null))
                {
                    hashcode = (hashcode * 397) + Start_key.GetHashCode();
                }
                hashcode = (hashcode * 397) + Count.GetHashCode();
            }
            return(hashcode);
        }
Ejemplo n.º 22
0
        public override bool Equals(object that)
        {
            var other = that as TRowSet;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(((isset.row_desc == other.isset.row_desc) && ((!isset.row_desc) || (System.Object.Equals(Row_desc, other.Row_desc)))) &&
                   ((isset.rows == other.isset.rows) && ((!isset.rows) || (TCollections.Equals(Rows, other.Rows)))) &&
                   ((isset.columns == other.isset.columns) && ((!isset.columns) || (TCollections.Equals(Columns, other.Columns)))) &&
                   ((isset.is_columnar == other.isset.is_columnar) && ((!isset.is_columnar) || (System.Object.Equals(Is_columnar, other.Is_columnar)))));
        }
Ejemplo n.º 23
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Code.GetHashCode();
                if (__isset.message)
                {
                    hashcode = (hashcode * 397) + Message.GetHashCode();
                }
                if (__isset.subStatus)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(SubStatus);
                }
            }
            return(hashcode);
        }
Ejemplo n.º 24
0
Archivo: KsDef.cs Proyecto: ste93/yarp
 public override bool Equals(object that)
 {
     if (!(that is KsDef other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(System.Object.Equals(Name, other.Name) &&
            System.Object.Equals(Strategy_class, other.Strategy_class) &&
            ((__isset.strategy_options == other.__isset.strategy_options) && ((!__isset.strategy_options) || (TCollections.Equals(Strategy_options, other.Strategy_options)))) &&
            ((__isset.replication_factor == other.__isset.replication_factor) && ((!__isset.replication_factor) || (System.Object.Equals(Replication_factor, other.Replication_factor)))) &&
            TCollections.Equals(Cf_defs, other.Cf_defs) &&
            ((__isset.durable_writes == other.__isset.durable_writes) && ((!__isset.durable_writes) || (System.Object.Equals(Durable_writes, other.Durable_writes)))));
 }
Ejemplo n.º 25
0
        public override bool Equals(object that)
        {
            var other = that as Batch;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(System.Object.Equals(Process, other.Process) &&
                   TCollections.Equals(Spans, other.Spans) &&
                   ((__isset.seqNo == other.__isset.seqNo) && ((!__isset.seqNo) || (System.Object.Equals(SeqNo, other.SeqNo)))) &&
                   ((__isset.stats == other.__isset.stats) && ((!__isset.stats) || (System.Object.Equals(Stats, other.Stats)))));
        }
Ejemplo n.º 26
0
 public override bool Equals(object that)
 {
     if (!(that is UCell other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(((__isset.f == other.__isset.f) && ((!__isset.f) || (System.Object.Equals(F, other.F)))) &&
            ((__isset.k == other.__isset.k) && ((!__isset.k) || (System.Object.Equals(K, other.K)))) &&
            ((__isset.ts == other.__isset.ts) && ((!__isset.ts) || (System.Object.Equals(Ts, other.Ts)))) &&
            ((__isset.ts_desc == other.__isset.ts_desc) && ((!__isset.ts_desc) || (System.Object.Equals(Ts_desc, other.Ts_desc)))) &&
            ((__isset.v == other.__isset.v) && ((!__isset.v) || (TCollections.Equals(V, other.V)))) &&
            ((__isset.encoder == other.__isset.encoder) && ((!__isset.encoder) || (System.Object.Equals(Encoder, other.Encoder)))));
 }
    public override bool Equals(object that)
    {
        var other = that as SuggestItemDictionaryIncrement;

        if (other == null)
        {
            return(false);
        }
        if (ReferenceEquals(this, other))
        {
            return(true);
        }
        return(((__isset.status == other.__isset.status) && ((!__isset.status) || (System.Object.Equals(Status, other.Status)))) &&
               ((__isset.revision == other.__isset.revision) && ((!__isset.revision) || (System.Object.Equals(Revision, other.Revision)))) &&
               ((__isset.scheme == other.__isset.scheme) && ((!__isset.scheme) || (System.Object.Equals(Scheme, other.Scheme)))) &&
               ((__isset.data == other.__isset.data) && ((!__isset.data) || (TCollections.Equals(Data, other.Data)))));
    }
Ejemplo n.º 28
0
        public override int GetHashCode()
        {
            int hashcode = 0;

            unchecked {
                hashcode = (hashcode * 397) ^ (Trace_id == null ? 0 : (Trace_id.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Name == null ? 0 : (Name.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Id == null ? 0 : (Id.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Parent_id == null ? 0 : (Parent_id.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Annotations == null ? 0 : (TCollections.GetHashCode(Annotations)));
                hashcode = (hashcode * 397) ^ (Binary_annotations == null ? 0 : (TCollections.GetHashCode(Binary_annotations)));
                hashcode = (hashcode * 397) ^ (Debug == null ? 0 : (Debug.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Timestamp == null ? 0 : (Timestamp.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Duration == null ? 0 : (Duration.GetHashCode()));
            }
            return(hashcode);
        }
Ejemplo n.º 29
0
        public override bool Equals(object that)
        {
            var other = that as PerOperationSamplingStrategies;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(System.Object.Equals(DefaultSamplingProbability, other.DefaultSamplingProbability) &&
                   System.Object.Equals(DefaultLowerBoundTracesPerSecond, other.DefaultLowerBoundTracesPerSecond) &&
                   TCollections.Equals(PerOperationStrategies, other.PerOperationStrategies) &&
                   ((__isset.defaultUpperBoundTracesPerSecond == other.__isset.defaultUpperBoundTracesPerSecond) && ((!__isset.defaultUpperBoundTracesPerSecond) || (System.Object.Equals(DefaultUpperBoundTracesPerSecond, other.DefaultUpperBoundTracesPerSecond)))));
        }
Ejemplo n.º 30
0
        public override bool Equals(object that)
        {
            var other = that as TSInsertRecordsReq;

            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(System.Object.Equals(SessionId, other.SessionId) &&
                   TCollections.Equals(DeviceIds, other.DeviceIds) &&
                   TCollections.Equals(MeasurementsList, other.MeasurementsList) &&
                   TCollections.Equals(ValuesList, other.ValuesList) &&
                   TCollections.Equals(Timestamps, other.Timestamps));
        }