public override int GetHashCode()
        {
            int hash = 1;

            if (videoId_ != null)
            {
                hash ^= VideoId.GetHashCode();
            }
            if (addedDate_ != null)
            {
                hash ^= AddedDate.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (PreviewImageLocation.Length != 0)
            {
                hash ^= PreviewImageLocation.GetHashCode();
            }
            if (userId_ != null)
            {
                hash ^= UserId.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(UploadedVideoAdded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Location.Length != 0)
     {
         Location = other.Location;
     }
     if (other.PreviewImageLocation.Length != 0)
     {
         PreviewImageLocation = other.PreviewImageLocation;
     }
     tags_.Add(other.tags_);
     if (other.addedDate_ != null)
     {
         if (addedDate_ == null)
         {
             addedDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AddedDate.MergeFrom(other.AddedDate);
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
 }
        private void AcceptancePaddle()
        {
            var receivedPaddle = new ReceivedPaddle
            {
                ReceivingEmployee = String.Format("{0} {1}", EmployeeViewModel.SelectedEmployee.FirstName, EmployeeViewModel.SelectedEmployee.LastName),
                PaddleId          = context.CheckForeignKey(PaddleNumber),
                AddedDate         = AddedDate.ToString("dd/MM/yyyy"),
                ActivityPerformed = ActivityPerformed,
                PlannedRepairDate = PlannedRepairDate.ToString("dd/MM/yyyy"),
                Comments          = Comments,
                IsOrders          = IsOrder.ToString()
            };

            context.CreateReceivedPaddle(receivedPaddle);
            ConnectedSuccessfully = true;
        }
 public void MergeFrom(SuggestedVideoPreview other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.addedDate_ != null)
     {
         if (addedDate_ == null)
         {
             addedDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AddedDate.MergeFrom(other.AddedDate);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.PreviewImageLocation.Length != 0)
     {
         PreviewImageLocation = other.PreviewImageLocation;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (videoId_ != null)
            {
                hash ^= VideoId.GetHashCode();
            }
            if (userId_ != null)
            {
                hash ^= UserId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Location.Length != 0)
            {
                hash ^= Location.GetHashCode();
            }
            if (PreviewImageLocation.Length != 0)
            {
                hash ^= PreviewImageLocation.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            if (addedDate_ != null)
            {
                hash ^= AddedDate.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
        //----------------------------------------------------------------//

        public override int GetHashCode()
        {
            return(Id.GetHashCode() ^ AddedDate.GetHashCode());
        }