Beispiel #1
0
 public void MergeFrom(Series other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.imagesUrl_ != null)
     {
         if (imagesUrl_ == null)
         {
             imagesUrl_ = new global::SnackTime.MediaServer.Models.ProtoGenerated.ImagesUrl();
         }
         ImagesUrl.MergeFrom(other.ImagesUrl);
     }
     if (other.Overview.Length != 0)
     {
         Overview = other.Overview;
     }
     if (other.Monitored != false)
     {
         Monitored = other.Monitored;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (imagesUrl_ != null)
            {
                hash ^= ImagesUrl.GetHashCode();
            }
            if (Overview.Length != 0)
            {
                hash ^= Overview.GetHashCode();
            }
            if (Monitored != false)
            {
                hash ^= Monitored.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }