Skip to content

Commit

Permalink
learningpath-api: Add external embed url to learningsteps
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Dec 9, 2024
1 parent 1bf76f5 commit c9b94e1
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 c9b94e1

Please sign in to comment.