Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (playOrigin_ != null)
            {
                hash ^= PlayOrigin.GetHashCode();
            }
            if (context_ != null)
            {
                hash ^= Context.GetHashCode();
            }
            if (HasCurrentUid)
            {
                hash ^= CurrentUid.GetHashCode();
            }
            if (optionOverrides_ != null)
            {
                hash ^= OptionOverrides.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 public void MergeFrom(Session other)
 {
     if (other == null)
     {
         return;
     }
     if (other.playOrigin_ != null)
     {
         if (playOrigin_ == null)
         {
             PlayOrigin = new global::Spotify.Player.Proto.PlayOrigin();
         }
         PlayOrigin.MergeFrom(other.PlayOrigin);
     }
     if (other.context_ != null)
     {
         if (context_ == null)
         {
             Context = new global::Spotify.Player.Proto.Context();
         }
         Context.MergeFrom(other.Context);
     }
     if (other.HasCurrentUid)
     {
         CurrentUid = other.CurrentUid;
     }
     if (other.optionOverrides_ != null)
     {
         if (optionOverrides_ == null)
         {
             OptionOverrides = new global::Spotify.Player.Proto.ContextPlayerOptionOverrides();
         }
         OptionOverrides.MergeFrom(other.OptionOverrides);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }