Beispiel #1
0
 public bool Equals(JobApplication other)
 {
     return(string.Equals(CompanyName, other.CompanyName, StringComparison.Ordinal) &&
            ApplicationDate.Equals(other.ApplicationDate) &&
            Status == other.Status);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ExternalId.Length != 0)
            {
                hash ^= ExternalId.GetHashCode();
            }
            if (Profile.Length != 0)
            {
                hash ^= Profile.GetHashCode();
            }
            if (Job.Length != 0)
            {
                hash ^= Job.GetHashCode();
            }
            if (Company.Length != 0)
            {
                hash ^= Company.GetHashCode();
            }
            if (applicationDate_ != null)
            {
                hash ^= ApplicationDate.GetHashCode();
            }
            if (Stage != 0)
            {
                hash ^= Stage.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            hash ^= interviews_.GetHashCode();
            if (referral_ != null)
            {
                hash ^= Referral.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (OutcomeNotes.Length != 0)
            {
                hash ^= OutcomeNotes.GetHashCode();
            }
            if (Outcome != 0)
            {
                hash ^= Outcome.GetHashCode();
            }
            if (isMatch_ != null)
            {
                hash ^= IsMatch.GetHashCode();
            }
            if (JobTitleSnippet.Length != 0)
            {
                hash ^= JobTitleSnippet.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(Application other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.ExternalId.Length != 0)
     {
         ExternalId = other.ExternalId;
     }
     if (other.Profile.Length != 0)
     {
         Profile = other.Profile;
     }
     if (other.Job.Length != 0)
     {
         Job = other.Job;
     }
     if (other.Company.Length != 0)
     {
         Company = other.Company;
     }
     if (other.applicationDate_ != null)
     {
         if (applicationDate_ == null)
         {
             applicationDate_ = new global::Google.Type.Date();
         }
         ApplicationDate.MergeFrom(other.ApplicationDate);
     }
     if (other.Stage != 0)
     {
         Stage = other.Stage;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     interviews_.Add(other.interviews_);
     if (other.referral_ != null)
     {
         if (referral_ == null || other.Referral != false)
         {
             Referral = other.Referral;
         }
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             createTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             updateTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.OutcomeNotes.Length != 0)
     {
         OutcomeNotes = other.OutcomeNotes;
     }
     if (other.Outcome != 0)
     {
         Outcome = other.Outcome;
     }
     if (other.isMatch_ != null)
     {
         if (isMatch_ == null || other.IsMatch != false)
         {
             IsMatch = other.IsMatch;
         }
     }
     if (other.JobTitleSnippet.Length != 0)
     {
         JobTitleSnippet = other.JobTitleSnippet;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }