Пример #1
0
 public override string ToString()
 {
     return(string.Format("MegacoolShare(State={0}, ReferralCode={1}, Url=\"{2}\", Data={3}, " +
                          "CreatedAt={4}, UpdatedAt={5})",
                          State, ReferralCode.ToString(true), Url, Data == null ? null : Json.Serialize(Data),
                          CreatedAt.ToString("yyyy-MM-ddTHH:mm:ss"), UpdatedAt.ToString("yyyy-MM-ddTHH:mm:ss")));
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Invoice other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) &&
                   ((PrimaryRecipient == null && other.PrimaryRecipient == null) || (PrimaryRecipient?.Equals(other.PrimaryRecipient) == true)) &&
                   ((PaymentRequests == null && other.PaymentRequests == null) || (PaymentRequests?.Equals(other.PaymentRequests) == true)) &&
                   ((DeliveryMethod == null && other.DeliveryMethod == null) || (DeliveryMethod?.Equals(other.DeliveryMethod) == true)) &&
                   ((InvoiceNumber == null && other.InvoiceNumber == null) || (InvoiceNumber?.Equals(other.InvoiceNumber) == true)) &&
                   ((Title == null && other.Title == null) || (Title?.Equals(other.Title) == true)) &&
                   ((Description == null && other.Description == null) || (Description?.Equals(other.Description) == true)) &&
                   ((ScheduledAt == null && other.ScheduledAt == null) || (ScheduledAt?.Equals(other.ScheduledAt) == true)) &&
                   ((PublicUrl == null && other.PublicUrl == null) || (PublicUrl?.Equals(other.PublicUrl) == true)) &&
                   ((NextPaymentAmountMoney == null && other.NextPaymentAmountMoney == null) || (NextPaymentAmountMoney?.Equals(other.NextPaymentAmountMoney) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((CustomFields == null && other.CustomFields == null) || (CustomFields?.Equals(other.CustomFields) == true)));
        }
Пример #3
0
 public bool Equals(Subscription other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RechargeProductId == other.RechargeProductId && SkuOverride == other.SkuOverride && Id == other.Id &&
            AddressId == other.AddressId && CustomerId == other.CustomerId &&
            CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt) &&
            Nullable.Equals(NextChargeScheduledAt, other.NextChargeScheduledAt) &&
            Nullable.Equals(CancelledAt, other.CancelledAt) && ProductTitle == other.ProductTitle &&
            VariantTitle == other.VariantTitle && Price == other.Price && Quantity == other.Quantity &&
            Status == other.Status && ShopifyProductId == other.ShopifyProductId &&
            ShopifyVariantId == other.ShopifyVariantId && Sku == other.Sku &&
            OrderIntervalUnit == other.OrderIntervalUnit &&
            OrderIntervalFrequency == other.OrderIntervalFrequency &&
            ChargeIntervalFrequency == other.ChargeIntervalFrequency &&
            CancellationReason == other.CancellationReason &&
            CancellationReasonComments == other.CancellationReasonComments &&
            OrderDayOfWeek == other.OrderDayOfWeek && OrderDayOfMonth == other.OrderDayOfMonth &&
            ExpireAfterSpecificNumberOfCharges == other.ExpireAfterSpecificNumberOfCharges &&
            MaxRetriesReached == other.MaxRetriesReached && HasQueuedCharges == other.HasQueuedCharges &&
            CommitUpdate == other.CommitUpdate);
 }
Пример #4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is TeamMember other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) &&
                   ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) &&
                   ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) &&
                   ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((AssignedLocations == null && other.AssignedLocations == null) || (AssignedLocations?.Equals(other.AssignedLocations) == true)));
        }
Пример #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Shift other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)) &&
                   ((StartAt == null && other.StartAt == null) || (StartAt?.Equals(other.StartAt) == true)) &&
                   ((EndAt == null && other.EndAt == null) || (EndAt?.Equals(other.EndAt) == true)) &&
                   ((Wage == null && other.Wage == null) || (Wage?.Equals(other.Wage) == true)) &&
                   ((Breaks == null && other.Breaks == null) || (Breaks?.Equals(other.Breaks) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((TeamMemberId == null && other.TeamMemberId == null) || (TeamMemberId?.Equals(other.TeamMemberId) == true)));
        }
Пример #6
0
        public String GetTextView(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("Id:                    ").Append(Id)
                               .Append(i).Append("Id_External:           ").Append(Id_External)
                               .Append(i).Append("CreatedAt:             ").Append(CreatedAt.F("yyyy.MM.dd HH:mm:ss"))
                               .Append(i).Append("UpdatedAt:             ").Append(UpdatedAt.F("yyyy.MM.dd HH:mm:ss"))
                               .Append(i).Append("Name:                  ").Append(Name)
                               .Append(i).Append("CustomName:            ").Append(CustomName)
                               .Append(i).Append("Model:                 ").Append(Model)
                               .Append(i).Append("Manufacturer:          ").Append(Manufacturer)
                               .Append(i).Append("Year:                  ").Append(Year)
                               .Append(i).Append("RegistrationNumber:    ").Append(RegistrationNumber)
                               .Append(i).Append("InventoryNumber:       ").Append(InventoryNumber)
                               .Append(i).Append("Id_MachineGroup:       ").Append(Id_MachineGroup)
                               .Append(i).Append("MachineType:           ").Append(MachineType)
                               .Append(i).Append("MachineSubtype:        ").Append(MachineSubtype)
                               .Append(i).Append("Id_Avatar:             ").Append(Id_Avatar)
                               .Append(i).Append("SerialNumberOfChassis: ").Append(SerialNumberOfChassis)
                               .Append(i).Append("SerialNumberOfEngine:  ").Append(SerialNumberOfEngine)
                               .Append(i).Append("EnginePower:           ").Append(EnginePower.F("0.00"))
                               .Append(i).Append("FuelType:              ").Append(FuelType)
                               .Append(i).Append("FuelTankSize:          ").Append(FuelTankSize.F("0.00"))
                               .Append(i).Append("FuelConsumptionNorm:   ").Append(FuelConsumptionNorm.F("0.00"))
                               .Append(i).Append("LegalCompany:          ").Append(LegalCompany)
                               .Append(i).Append("Description:           ").Append(Description)
                               .Append(i).Append("Id_DefaultImplement:   ").Append(Id_DefaultImplement)
                               .Append(i).Append("Additional_1:          ").Append(Additional_1)
                               .Append(i).Append("Additional_2:          ").Append(Additional_2)
                               .Append(i).Append("AdditionalInfo:        ").Append(AdditionalInfo);

            return(sb.ToString());
        }
Пример #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Code != null ? Code.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Value.GetHashCode();
         hashCode = (hashCode * 397) ^ EndsAt.GetHashCode();
         hashCode = (hashCode * 397) ^ StartsAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UsageLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ AppliesToId.GetHashCode();
         hashCode = (hashCode * 397) ^ (DiscountType != null ? DiscountType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AppliesTo != null ? AppliesTo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AppliesToResource != null ? AppliesToResource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TimesUsed.GetHashCode();
         hashCode = (hashCode * 397) ^ (Duration != null ? Duration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DurationUsageLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ (AppliesToProductType != null ? AppliesToProductType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ OncePerCustomer.GetHashCode();
         return(hashCode);
     }
 }
Пример #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Id;
         result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ (GroupName != null ? GroupName.GetHashCode() : 0);
         result = (result * 397) ^ (ProjectGroupId.HasValue ? ProjectGroupId.Value : 0);
         result = (result * 397) ^ CreatedAt.GetHashCode();
         result = (result * 397) ^ UpdatedAt.GetHashCode();
         result = (result * 397) ^ (Minutes.HasValue ? Minutes.Value : 0);
         result = (result * 397) ^ (BillableMinutes.HasValue ? BillableMinutes.Value : 0);
         result = (result * 397) ^ (UnbillableMinutes.HasValue ? UnbillableMinutes.Value : 0);
         result = (result * 397) ^ (InvoicedMinutes.HasValue ? InvoicedMinutes.Value : 0);
         result = (result * 397) ^ (RemainingMinutes.HasValue ? RemainingMinutes.Value : 0);
         result = (result * 397) ^ (BudgetMinutes.HasValue ? BudgetMinutes.Value : 0);
         result = (result * 397) ^ Billable.GetHashCode();
         result = (result * 397) ^ (ImportId.HasValue ? ImportId.Value : 0);
         result = (result * 397) ^ Enabled.GetHashCode();
         result = (result * 397) ^ (ColorHex != null ? ColorHex.GetHashCode() : 0);
         result = (result * 397) ^ Stepping;
         result = (result * 397) ^ (UserId.HasValue ? UserId.Value : 0);
         result = (result * 397) ^ (Budget.HasValue ? Budget.Value : 0);
         result = (result * 397) ^ (AccountId.HasValue ? AccountId.Value : 0);
         result = (result * 397) ^ (InvoiceRecipientDetails != null ? InvoiceRecipientDetails.GetHashCode() : 0);
         result = (result * 397) ^ (CachedTags != null ? CachedTags.GetHashCode() : 0);
         return(result);
     }
 }
Пример #9
0
        public override int GetHashCode()
        {
            int hashCode = -2062011310;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            if (Objects != null)
            {
                hashCode += Objects.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (IdMappings != null)
            {
                hashCode += IdMappings.GetHashCode();
            }

            return(hashCode);
        }
Пример #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShopifyCustomerId != null ? ShopifyCustomerId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingAddress1 != null ? BillingAddress1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingAddress2 != null ? BillingAddress2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingZip != null ? BillingZip.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingCity != null ? BillingCity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingCompany != null ? BillingCompany.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingProvince != null ? BillingProvince.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingCountry != null ? BillingCountry.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingPhone != null ? BillingPhone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProcessorType != null ? ProcessorType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ HasValidPaymentMethod.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReasonPaymentMethodNotValid != null ? ReasonPaymentMethodNotValid.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ HasCardErrorInDunning.GetHashCode();
         hashCode = (hashCode * 397) ^ NumberActiveSubscriptions.GetHashCode();
         hashCode = (hashCode * 397) ^ NumberSubscriptions.GetHashCode();
         hashCode = (hashCode * 397) ^ (FirstChargeProcessedAt != null ? FirstChargeProcessedAt.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #11
0
        public virtual int CompareTo(HealthRecord other)
        {
            // не сравниваем содержимое записи
            if (other == null)
            {
                return(-1);
            }

            int res = Holder.CompareTo(other.Holder);

            if (res != 0)
            {
                return(res);
            }

            res = Ord.CompareTo(other.Ord);
            if (res != 0)
            {
                return(res);
            }

            res = UpdatedAt.CompareTo(other.UpdatedAt);
            if (res != 0)
            {
                return(res);
            }

            res = Doctor.CompareTo(other.Doctor);
            return(res);
        }
Пример #12
0
 protected bool Equals(RankingInfo other)
 {
     return(AvatarAddress.Equals(other.AvatarAddress) && AgentAddress.Equals(other.AgentAddress) &&
            ArmorId == other.ArmorId && Level == other.Level && AvatarName == other.AvatarName &&
            Exp == other.Exp && StageClearedBlockIndex == other.StageClearedBlockIndex &&
            UpdatedAt.Equals(other.UpdatedAt));
 }
Пример #13
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Customer other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((Cards == null && other.Cards == null) || (Cards?.Equals(other.Cards) == true)) &&
                   ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) &&
                   ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) &&
                   ((Nickname == null && other.Nickname == null) || (Nickname?.Equals(other.Nickname) == true)) &&
                   ((CompanyName == null && other.CompanyName == null) || (CompanyName?.Equals(other.CompanyName) == true)) &&
                   ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) &&
                   ((Address == null && other.Address == null) || (Address?.Equals(other.Address) == true)) &&
                   ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) &&
                   ((Birthday == null && other.Birthday == null) || (Birthday?.Equals(other.Birthday) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) &&
                   ((Preferences == null && other.Preferences == null) || (Preferences?.Equals(other.Preferences) == true)) &&
                   ((Groups == null && other.Groups == null) || (Groups?.Equals(other.Groups) == true)) &&
                   ((CreationSource == null && other.CreationSource == null) || (CreationSource?.Equals(other.CreationSource) == true)) &&
                   ((GroupIds == null && other.GroupIds == null) || (GroupIds?.Equals(other.GroupIds) == true)) &&
                   ((SegmentIds == null && other.SegmentIds == null) || (SegmentIds?.Equals(other.SegmentIds) == true)));
        }
Пример #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (TransactionId != null ? TransactionId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ChargeStatus != null ? ChargeStatus.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PaymentProcessor != null ? PaymentProcessor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AddressIsActive.GetHashCode();
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ChargeId.GetHashCode();
         hashCode = (hashCode * 397) ^ AddressId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShopifyId != null ? ShopifyId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShopifyOrderId != null ? ShopifyOrderId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShopifyOrderNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShopifyCartToken != null ? ShopifyCartToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShippingDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ScheduledAt.GetHashCode();
         hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ProcessedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ CustomerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPrepaid.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TotalPrice != null ? TotalPrice.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShippingAddress != null ? ShippingAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingAddress != null ? BillingAddress.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #15
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Dispute other &&
                   ((DisputeId == null && other.DisputeId == null) || (DisputeId?.Equals(other.DisputeId) == true)) &&
                   ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) &&
                   ((Reason == null && other.Reason == null) || (Reason?.Equals(other.Reason) == true)) &&
                   ((State == null && other.State == null) || (State?.Equals(other.State) == true)) &&
                   ((DueAt == null && other.DueAt == null) || (DueAt?.Equals(other.DueAt) == true)) &&
                   ((DisputedPayment == null && other.DisputedPayment == null) || (DisputedPayment?.Equals(other.DisputedPayment) == true)) &&
                   ((EvidenceIds == null && other.EvidenceIds == null) || (EvidenceIds?.Equals(other.EvidenceIds) == true)) &&
                   ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((BrandDisputeId == null && other.BrandDisputeId == null) || (BrandDisputeId?.Equals(other.BrandDisputeId) == true)) &&
                   ((ReportedDate == null && other.ReportedDate == null) || (ReportedDate?.Equals(other.ReportedDate) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)));
        }
Пример #16
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Booking other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((StartAt == null && other.StartAt == null) || (StartAt?.Equals(other.StartAt) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) &&
                   ((CustomerNote == null && other.CustomerNote == null) || (CustomerNote?.Equals(other.CustomerNote) == true)) &&
                   ((SellerNote == null && other.SellerNote == null) || (SellerNote?.Equals(other.SellerNote) == true)) &&
                   ((AppointmentSegments == null && other.AppointmentSegments == null) || (AppointmentSegments?.Equals(other.AppointmentSegments) == true)));
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Reason.Length != 0)
            {
                hash ^= Reason.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (enteredBy_ != null)
            {
                hash ^= EnteredBy.GetHashCode();
            }
            if (updatedBy_ != null)
            {
                hash ^= UpdatedBy.GetHashCode();
            }
            if (updatedAt_ != null)
            {
                hash ^= UpdatedAt.GetHashCode();
            }
            if (room_ != null)
            {
                hash ^= Room.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(OutOfOrderRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Reason.Length != 0)
     {
         Reason = other.Reason;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.enteredBy_ != null)
     {
         if (enteredBy_ == null)
         {
             enteredBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         EnteredBy.MergeFrom(other.EnteredBy);
     }
     if (other.updatedBy_ != null)
     {
         if (updatedBy_ == null)
         {
             updatedBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         UpdatedBy.MergeFrom(other.UpdatedBy);
     }
     if (other.updatedAt_ != null)
     {
         if (updatedAt_ == null)
         {
             updatedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdatedAt.MergeFrom(other.UpdatedAt);
     }
     if (other.room_ != null)
     {
         if (room_ == null)
         {
             room_ = new global::HOLMS.Types.Operations.Rooms.Room();
         }
         Room.MergeFrom(other.Room);
     }
 }
Пример #19
0
 public void MergeFrom(Dataset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Consumer.Length != 0)
     {
         Consumer = other.Consumer;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     tags_.Add(other.tags_);
     targets_.Add(other.targets_);
     if (other.retentionPolicy_ != null)
     {
         if (retentionPolicy_ == null)
         {
             RetentionPolicy = new global::Asgt.Type.RetentionPolicy();
         }
         RetentionPolicy.MergeFrom(other.RetentionPolicy);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
     if (other.updatedAt_ != null)
     {
         if (updatedAt_ == null)
         {
             UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdatedAt.MergeFrom(other.UpdatedAt);
     }
     if (other.Size != 0L)
     {
         Size = other.Size;
     }
     if (other.truncatedAt_ != null)
     {
         if (truncatedAt_ == null)
         {
             TruncatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         TruncatedAt.MergeFrom(other.TruncatedAt);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #20
0
            public string CsvRow()
            {
                StringBuilder builder = new StringBuilder();

                builder.Append($"{Name}").Append(CSV_SEP);
                builder.Append($"{FullName}").Append(CSV_SEP);
                builder.Append($"\"{Description}\"").Append(CSV_SEP);
                builder.Append($"{Size}").Append(CSV_SEP);
                builder.Append($"{Private}").Append(CSV_SEP);
                builder.Append($"{Language}").Append(CSV_SEP);
                if (License != null)
                {
                    builder.Append($"{License.Name}").Append(CSV_SEP);
                }
                else
                {
                    builder.Append($"").Append(CSV_SEP);
                }
                if (Readme != null)
                {
                    builder.Append($"{Readme.Name}").Append(CSV_SEP);
                }
                else
                {
                    builder.Append($"").Append(CSV_SEP);
                }
                builder.Append($"{ReleaseCount}").Append(CSV_SEP);
                builder.Append($"{OpenIssuesCount}").Append(CSV_SEP);
                builder.Append($"{Fork}").Append(CSV_SEP);
                if (ParentName != null && ParentName.Equals("<None>"))
                {
                    // Leave it blank for <None>
                    builder.Append($"").Append(CSV_SEP);
                }
                else
                {
                    builder.Append($"{ParentName}").Append(CSV_SEP);
                }
                builder.Append($"{ForksCount}").Append(CSV_SEP);
                builder.Append($"{StarCount}").Append(CSV_SEP);
                builder.Append($"{Watchers}").Append(CSV_SEP);
                builder.Append($"{CreatedAt.ToLocalTime()}").Append(CSV_SEP);
                builder.Append($"{UpdatedAt.ToLocalTime()}").Append(CSV_SEP);
                if (PushedAt.HasValue)
                {
                    builder.Append($"{PushedAt.Value.ToLocalTime()}").Append(CSV_SEP);
                }
                else
                {
                    builder.Append($"").Append(CSV_SEP);
                }
                // Remove the last separator
                string line = builder.ToString();

                line = line.Substring(0, line.Length - CSV_SEP.Length);
                return(line);
            }
Пример #21
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"CreationSource = {(CreationSource == null ? "null" : CreationSource.ToString())}");
     toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt.ToString())}");
     toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt.ToString())}");
     toStringOutput.Add($"EmailAddress = {(EmailAddress == null ? "null" : EmailAddress.ToString())}");
     toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber.ToString())}");
     toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId.ToString())}");
     toStringOutput.Add($"GroupIds = {(GroupIds == null ? "null" : GroupIds.ToString())}");
 }
Пример #22
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         return(hashCode);
     }
 }
Пример #23
0
 public GistItemViewModel(Gist gist, Action <GistItemViewModel> gotoAction)
 {
     Gist          = gist;
     Id            = gist.Id;
     Title         = GetGistTitle(gist);
     Description   = string.IsNullOrEmpty(gist.Description) ? "Gist " + gist.Id : gist.Description;
     Avatar        = new GitHubAvatar(gist.Owner?.AvatarUrl);
     UpdatedAt     = gist.UpdatedAt;
     UpdatedString = UpdatedAt.Humanize();
     GoToCommand   = ReactiveCommand.Create(() => gotoAction(this));
 }
Пример #24
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #25
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ Name.GetHashCode();
         hashCode = (hashCode * 397) ^ Active.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         return(hashCode);
     }
 }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (Id != null)
                {
                    hashCode = hashCode * 59 + Id.GetHashCode();
                }
                if (ProgramId != null)
                {
                    hashCode = hashCode * 59 + ProgramId.GetHashCode();
                }
                if (PipelineId != null)
                {
                    hashCode = hashCode * 59 + PipelineId.GetHashCode();
                }
                if (ArtifactsVersion != null)
                {
                    hashCode = hashCode * 59 + ArtifactsVersion.GetHashCode();
                }
                if (User != null)
                {
                    hashCode = hashCode * 59 + User.GetHashCode();
                }

                hashCode = hashCode * 59 + Status.GetHashCode();

                hashCode = hashCode * 59 + Trigger.GetHashCode();
                if (CreatedAt != null)
                {
                    hashCode = hashCode * 59 + CreatedAt.GetHashCode();
                }
                if (UpdatedAt != null)
                {
                    hashCode = hashCode * 59 + UpdatedAt.GetHashCode();
                }
                if (FinishedAt != null)
                {
                    hashCode = hashCode * 59 + FinishedAt.GetHashCode();
                }
                if (Embedded != null)
                {
                    hashCode = hashCode * 59 + Embedded.GetHashCode();
                }
                if (Links != null)
                {
                    hashCode = hashCode * 59 + Links.GetHashCode();
                }
                return(hashCode);
            }
        }
Пример #27
0
        /// <summary>
        /// Returns true if DetailedSegment instances are equal
        /// </summary>
        /// <param name="other">Instance of DetailedSegment to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DetailedSegment other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CreatedAt == other.CreatedAt ||
                     CreatedAt != null &&
                     CreatedAt.Equals(other.CreatedAt)
                     ) &&
                 (
                     UpdatedAt == other.UpdatedAt ||
                     UpdatedAt != null &&
                     UpdatedAt.Equals(other.UpdatedAt)
                 ) &&
                 (
                     TotalElevationGain == other.TotalElevationGain ||
                     TotalElevationGain != null &&
                     TotalElevationGain.Equals(other.TotalElevationGain)
                 ) &&
                 (
                     Map == other.Map ||
                     Map != null &&
                     Map.Equals(other.Map)
                 ) &&
                 (
                     EffortCount == other.EffortCount ||
                     EffortCount != null &&
                     EffortCount.Equals(other.EffortCount)
                 ) &&
                 (
                     AthleteCount == other.AthleteCount ||
                     AthleteCount != null &&
                     AthleteCount.Equals(other.AthleteCount)
                 ) &&
                 (
                     Hazardous == other.Hazardous ||
                     Hazardous != null &&
                     Hazardous.Equals(other.Hazardous)
                 ) &&
                 (
                     StarCount == other.StarCount ||
                     StarCount != null &&
                     StarCount.Equals(other.StarCount)
                 ));
        }
Пример #28
0
 public bool Equals(WebhookRuleset other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(UpdatedAt.Equals(other.UpdatedAt) && CreatedAt.Equals(other.CreatedAt) && Id == other.Id && Name == other.Name);
 }
Пример #29
0
 public Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "ClassID", ObjectId },
         { "ClassDepartment", CDepartment },
         { "ClassGrade", CGrade },
         { "ClassNumber", CNumber },
         { "TeacherID", TeacherID },
         { "CreatedAt", CreatedAt.ToString("yyyy-MM-dd HH:mm:ss") },
         { "UpdatedAt", UpdatedAt.ToString("yyyy-MM-dd HH:mm:ss") },
     });
 }
Пример #30
0
        public override int GetHashCode()
        {
            int hashCode = 2031047851;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (RewardTiers != null)
            {
                hashCode += RewardTiers.GetHashCode();
            }

            if (ExpirationPolicy != null)
            {
                hashCode += ExpirationPolicy.GetHashCode();
            }

            if (Terminology != null)
            {
                hashCode += Terminology.GetHashCode();
            }

            if (LocationIds != null)
            {
                hashCode += LocationIds.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (AccrualRules != null)
            {
                hashCode += AccrualRules.GetHashCode();
            }

            return(hashCode);
        }