Exemplo n.º 1
0
        /// <summary>
        /// Wraps the specified project status.
        /// </summary>
        /// <param name="owningClient">The owning client.</param>
        /// <param name="projectStatus">The project status.</param>
        /// <param name="connection">The connection.</param>
        /// <returns>
        /// The new <see cref="CCProject"/>.
        /// </returns>
        internal static CCProject Wrap(CruiseServerClientBase owningClient, ProjectStatus projectStatus, CCConnection connection)
        {
            var project = new CCProject(
                owningClient,
                projectStatus.Name,
                projectStatus.Category,
                projectStatus.Activity,
                projectStatus.BuildStatus,
                projectStatus.Status,
                projectStatus.WebURL,
                projectStatus.LastBuildDate,
                projectStatus.LastBuildLabel,
                projectStatus.LastSuccessfulBuildLabel,
                projectStatus.NextBuildTime,
                projectStatus.BuildStage,
                projectStatus.Queue,
                projectStatus.QueuePriority)
            {
                Connection = connection
            };

            return(project);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Wraps the specified queue status.
 /// </summary>
 /// <param name="owningClient">The owning client.</param>
 /// <param name="queueStatus">The queue status.</param>
 /// <param name="connection">The connection.</param>
 /// <returns>
 /// The new <see cref="CCProject"/>.
 /// </returns>
 internal static CCQueue Wrap(CruiseServerClientBase owningClient, QueueSnapshot queueStatus, CCConnection connection)
 {
     var queue = new CCQueue(owningClient, queueStatus.QueueName, queueStatus.Requests) { Connection = connection };
     return queue;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Wraps the specified project status.
 /// </summary>
 /// <param name="owningClient">The owning client.</param>
 /// <param name="projectStatus">The project status.</param>
 /// <param name="connection">The connection.</param>
 /// <returns>
 /// The new <see cref="CCProject"/>.
 /// </returns>
 internal static CCProject Wrap(CruiseServerClientBase owningClient, ProjectStatus projectStatus, CCConnection connection)
 {
     var project = new CCProject(
         owningClient,
         projectStatus.Name, 
         projectStatus.Category, 
         projectStatus.Activity, 
         projectStatus.BuildStatus, 
         projectStatus.Status, 
         projectStatus.WebURL, 
         projectStatus.LastBuildDate, 
         projectStatus.LastBuildLabel, 
         projectStatus.LastSuccessfulBuildLabel, 
         projectStatus.NextBuildTime, 
         projectStatus.BuildStage, 
         projectStatus.Queue,
         projectStatus.QueuePriority,
         projectStatus.Parameters) { Connection = connection };
     return project;
 }
Exemplo n.º 4
0
        /// <summary>
        /// Wraps the specified queue status.
        /// </summary>
        /// <param name="owningClient">The owning client.</param>
        /// <param name="queueStatus">The queue status.</param>
        /// <param name="connection">The connection.</param>
        /// <returns>
        /// The new <see cref="CCProject"/>.
        /// </returns>
        internal static CCQueue Wrap(CruiseServerClientBase owningClient, QueueSnapshot queueStatus, CCConnection connection)
        {
            var queue = new CCQueue(owningClient, queueStatus.QueueName, queueStatus.Requests)
            {
                Connection = connection
            };

            return(queue);
        }