Skip to content

Commit

Permalink
Update DatafileReader.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinha610 authored Jul 30, 2024
1 parent 9ac0175 commit 3733bf0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/main/kotlin/com/featurevisor/sdk/DatafileReader.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
package com.featurevisor.sdk

import com.featurevisor.types.*

class DatafileReader(
import com.featurevisor.types.Attribute
import com.featurevisor.types.AttributeKey
import com.featurevisor.types.DatafileContent
import com.featurevisor.types.Feature
import com.featurevisor.types.FeatureKey
import com.featurevisor.types.Segment
import com.featurevisor.types.SegmentKey

class DatafileReader constructor(
datafileContent: DatafileContent,
) {

Expand All @@ -20,8 +26,8 @@ class DatafileReader(
return schemaVersion
}

fun getAllAttributes(): Map<AttributeKey, Attribute> {
return attributes
fun getAllAttributes(): List<Attribute> {
return attributes.values.toList()
}

fun getAttribute(attributeKey: AttributeKey): Attribute? {
Expand Down

0 comments on commit 3733bf0

Please sign in to comment.