private static ObservationState CcStatusToObservationStatus(CcBuildStatus status) { switch (status) { case CcBuildStatus.Success: return(ObservationState.Success); case CcBuildStatus.Exception: case CcBuildStatus.Failure: return(ObservationState.Failure); default: return(ObservationState.Unknown); } }
public ProjectsProjectBuilder Status(CcBuildStatus status) { _entity.lastBuildStatus = status.ToString(); return(this); }