/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Copyrights != null)
         {
             hashCode = hashCode * 59 + Copyrights.GetHashCode();
         }
         if (JobId != null)
         {
             hashCode = hashCode * 59 + JobId.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (WaitingInQueue != null)
         {
             hashCode = hashCode * 59 + WaitingInQueue.GetHashCode();
         }
         if (ProcessingTime != null)
         {
             hashCode = hashCode * 59 + ProcessingTime.GetHashCode();
         }
         if (Solution != null)
         {
             hashCode = hashCode * 59 + Solution.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Copyrights != null)
         {
             hashCode = hashCode * 59 + Copyrights.GetHashCode();
         }
         if (Took != null)
         {
             hashCode = hashCode * 59 + Took.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 3
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("[AlbumBrowse]");
            sb.AppendLine("Error=" + Error);
            sb.AppendLine(Album.ToString());
            sb.AppendLine(Artist.ToString());
            sb.AppendLine("Copyrights=" + string.Join(",", Copyrights.ToArray()));
            sb.AppendLine("Tracks.Length=" + Tracks.Count);
            foreach (Track t in Tracks)
            {
                sb.AppendLine(t.ToString());
            }

            sb.AppendFormat("Review:{0}{1}", Environment.NewLine, Review);

            return(sb.ToString());
        }
        /// <summary>
        /// Returns true if CostMatrixDataInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of CostMatrixDataInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CostMatrixDataInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Copyrights == input.Copyrights ||
                     Copyrights != null &&
                     Copyrights.SequenceEqual(input.Copyrights)
                     ) &&
                 (
                     Took == input.Took ||
                     (Took != null &&
                      Took.Equals(input.Took))
                 ));
        }
        /// <summary>
        /// Returns true if Response instances are equal
        /// </summary>
        /// <param name="input">Instance of Response to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Response input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Copyrights == input.Copyrights ||
                     Copyrights != null &&
                     Copyrights.SequenceEqual(input.Copyrights)
                     ) &&
                 (
                     JobId == input.JobId ||
                     (JobId != null &&
                      JobId.Equals(input.JobId))
                 ) &&
                 (
                     Status == input.Status ||
                     (Status != null &&
                      Status.Equals(input.Status))
                 ) &&
                 (
                     WaitingInQueue == input.WaitingInQueue ||
                     (WaitingInQueue != null &&
                      WaitingInQueue.Equals(input.WaitingInQueue))
                 ) &&
                 (
                     ProcessingTime == input.ProcessingTime ||
                     (ProcessingTime != null &&
                      ProcessingTime.Equals(input.ProcessingTime))
                 ) &&
                 (
                     Solution == input.Solution ||
                     (Solution != null &&
                      Solution.Equals(input.Solution))
                 ));
        }
Esempio n. 6
0
        public int Add(Copyrights model)
        {
            string sql = "insert into Copyrights(Copyrights_Id,Copyrights_Title,Copyrights_Details,Copyrights_Tel,Copyrights_Mobile,Copyrights_QQ,Copyrights_QQ2,Copyrights_Email,Copyrights_Logo,Copyrights_Image,Copyrights_Address) values(@Copyrights_Id,@Copyrights_Title,@Copyrights_Details,@Copyrights_Tel,@Copyrights_Mobile,@Copyrights_QQ,@Copyrights_QQ2,@Copyrights_Email,@Copyrights_Logo,@Copyrights_Image,@Copyrights_Address)";

            return(SqlHelper <Copyrights> .ExceuteNonQuery(sql, model));
        }
Esempio n. 7
0
        public int Edit(Copyrights model)
        {
            string sql = "update Copyrights set Copyrights_Title=@Copyrights_Title,Copyrights_Details=@Copyrights_Details,Copyrights_Tel=@Copyrights_Tel,Copyrights_Mobile=@Copyrights_Mobile,Copyrights_QQ=@Copyrights_QQ,Copyrights_QQ2=@Copyrights_QQ2,Copyrights_Email=@Copyrights_Email,Copyrights_Logo=@Copyrights_Logo,Copyrights_Image=@Copyrights_Image,Copyrights_Address=@Copyrights_Address where Copyrights_Id=@Copyrights_Id";

            return(SqlHelper <Copyrights> .ExceuteNonQuery(sql, model));
        }
Esempio n. 8
0
 public int Edit(Copyrights model)
 {
     return(dal.Edit(model));
 }
Esempio n. 9
0
 public int Add(Copyrights model)
 {
     return(dal.Add(model));
 }
Esempio n. 10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            hash ^= authors_.GetHashCode();
            if (Copyrights.Length != 0)
            {
                hash ^= Copyrights.GetHashCode();
            }
            if (ContactInformation.Length != 0)
            {
                hash ^= ContactInformation.GetHashCode();
            }
            if (Reference.Length != 0)
            {
                hash ^= Reference.GetHashCode();
            }
            if (thumbnailImage_ != null)
            {
                hash ^= ThumbnailImage.GetHashCode();
            }
            if (AvatarPermission != global::VrmProtobuf.Meta.Types.AvatarPermissionType.OnlyAuthor)
            {
                hash ^= AvatarPermission.GetHashCode();
            }
            if (ViolentUsage != false)
            {
                hash ^= ViolentUsage.GetHashCode();
            }
            if (SexualUsage != false)
            {
                hash ^= SexualUsage.GetHashCode();
            }
            if (GameUsage != false)
            {
                hash ^= GameUsage.GetHashCode();
            }
            if (CommercialUsage != global::VrmProtobuf.Meta.Types.CommercialUsageType.PersonalNonCommercialNonProfit)
            {
                hash ^= CommercialUsage.GetHashCode();
            }
            if (PoliticalOrReligiousUsage != false)
            {
                hash ^= PoliticalOrReligiousUsage.GetHashCode();
            }
            if (OtherPermissionUrl.Length != 0)
            {
                hash ^= OtherPermissionUrl.GetHashCode();
            }
            if (CreditNotation != global::VrmProtobuf.Meta.Types.CreditNotationType.Required)
            {
                hash ^= CreditNotation.GetHashCode();
            }
            if (AllowRedistribution != false)
            {
                hash ^= AllowRedistribution.GetHashCode();
            }
            if (Modify != global::VrmProtobuf.Meta.Types.ModifyType.Prohibited)
            {
                hash ^= Modify.GetHashCode();
            }
            if (OtherLicenseUrl.Length != 0)
            {
                hash ^= OtherLicenseUrl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Liefert den Hashcode dieser Instanz.
 /// </summary>
 /// <returns>Der Hashcode der Instanz.</returns>
 public override int GetHashCode()
 {
     return(Title.GetHashCode() ^ SubTitle.GetHashCode() ^ ID.GetHashCode() ^ Links.GetHashCode()
            ^ Generator.GetHashCode() ^ Logo.GetHashCode() ^ Authors.GetHashCode()
            ^ Copyrights.GetHashCode() ^ Published.GetHashCode() ^ Language.GetHashCode() ^ Articles.GetHashCode());
 }