Skip to content

Commit

Permalink
Merge pull request #14 from aukgit/feature/generic-functionalities
Browse files Browse the repository at this point in the history
Feature/generic functionalities
  • Loading branch information
aukgit authored May 25, 2020
2 parents 23123c2 + 54ae000 commit e0fd9a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/shared/com/ortb/executors/Application.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ object Application {
println("Manager Complete")
val repos = new Repositories(appManager)
val campaignsResponse = repos.campaignRepository.getAllAsResponse

val json = campaignsResponse.rows.toPrettyJsonString
println(json)

Expand All @@ -26,7 +25,6 @@ object Application {
.bidResponseRepository

val allRows = bidResponseRepository.getAll
allRows.logToDatabaseAsJsonAsync("main")
AppLogger.logEntities(allRows, "all rows")
val row = BidresponseRow(
-1,
Expand Down
5 changes: 5 additions & 0 deletions app/shared/io/helpers/EmptyValidateHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ object EmptyValidateHelper {
!hasAnyItem(Some(items), message)
}

def isItemsEmptyOnAllDirect[A](
items : Iterable[A]*) : Boolean = {
items.forall(w => !hasAnyItem(Some(w)))
}

def isDefinedDoublePlusPositive[A](
item : Option[Double]) : Boolean = {
item.isDefined && item.get > 0
Expand Down

0 comments on commit e0fd9a1

Please sign in to comment.