Skip to content

Commit

Permalink
Merge pull request #558 from NDLANO/external-learningstep
Browse files Browse the repository at this point in the history
learningpath-api: Add `external` embed url to learningsteps
  • Loading branch information
jnatten authored Dec 9, 2024
2 parents 397ef07 + c9b94e1 commit 7cb493f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ sealed abstract class EmbedType(override val entryName: String) extends EnumEntr
}

object EmbedType extends Enum[EmbedType] with CirceEnum[EmbedType] {
case object OEmbed extends EmbedType("oembed")
case object LTI extends EmbedType("lti")
case object IFrame extends EmbedType("iframe")
case object OEmbed extends EmbedType("oembed")
case object LTI extends EmbedType("lti")
case object IFrame extends EmbedType("iframe")
case object External extends EmbedType("external")

def valueOf(s: String): Option[EmbedType] = EmbedType.values.find(_.entryName == s)
def valueOfOrDefault(s: String): EmbedType = valueOf(s).getOrElse(EmbedType.OEmbed)
Expand Down

0 comments on commit 7cb493f

Please sign in to comment.