Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.
/ RSDE Public archive

Commit

Permalink
Add support for musicDistortEntity model
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Apr 8, 2019
1 parent 7ebfa8c commit 7e5f63a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,10 @@ class PlayalongEntity(id: String, name: String, deprecatedIDs: MutableList<Strin
return PlayalongEntity(id, name, deprecatedIDs)
}
}

class MusicDistortEntity(id: String, name: String, deprecatedIDs: MutableList<String>)
: Datamodel("musicDistortEntity", id, name, deprecatedIDs) {
override fun copy(): Datamodel {
return MusicDistortEntity(id, name, deprecatedIDs)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,13 @@ class PlayalongEntityObject : DatamodelObject() {
return PlayalongEntity(id.orElse(""), name.orElse(""), deprecatedIDs.orElse(mutableListOf()))
}
}

class MusicDistortEntityObject : DatamodelObject() {
override fun producePerfectADT(): MusicDistortEntity {
return MusicDistortEntity(id.orException(), name.orException(), deprecatedIDs.orException())
}

override fun produceImperfectADT(): MusicDistortEntity {
return MusicDistortEntity(id.orElse(""), name.orElse(""), deprecatedIDs.orElse(mutableListOf()))
}
}

0 comments on commit 7e5f63a

Please sign in to comment.