Skip to content

Commit 8174cff

Browse files
authored
Feature/handle service access information changes (#23)
* Adds the required parameters to enable filtering of consumption reporting attributes in the Media Stream Handler
1 parent 8b07d7f commit 8174cff

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/src/main/java/com/fivegmag/a5gmscommonlibrary/consumptionReporting/ConsumptionReport.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ https://drive.google.com/file/d/1cinCiA778IErENZ3JN52VFW-1ffHpx7Z/view
1010
package com.fivegmag.a5gmscommonlibrary.consumptionReporting
1111

1212
import android.os.Parcelable
13+
import com.fasterxml.jackson.annotation.JsonFilter
1314
import com.fasterxml.jackson.annotation.JsonIgnore
1415
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
1516
import com.fivegmag.a5gmscommonlibrary.models.EndpointAddress
@@ -26,6 +27,7 @@ data class ConsumptionReport(
2627

2728
@Parcelize
2829
@JsonIgnoreProperties(ignoreUnknown = true)
30+
@JsonFilter("consumptionReportingUnitFilter")
2931
data class ConsumptionReportingUnit(
3032
val mediaConsumed: String,
3133
var mediaEndpointAddress: EndpointAddress? = null,

app/src/main/java/com/fivegmag/a5gmscommonlibrary/helpers/Constants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ object SessionHandlerMessageTypes {
3939
const val START_PLAYBACK_BY_SERVICE_LIST_ENTRY_MESSAGE = 10
4040
const val GET_CONSUMPTION_REPORT = 11
4141
const val CONSUMPTION_REPORT = 12
42+
const val UPDATE_PLAYBACK_CONSUMPTION_REPORTING_CONFIGURATION = 13
4243
}
4344

4445
object SessionHandlerEvents {

app/src/main/java/com/fivegmag/a5gmscommonlibrary/helpers/Utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Utils {
9090
}
9191
val headersToValidate = arrayOf("last-modified", "etag")
9292

93-
return headersToValidate.all { header ->
93+
return headersToValidate.any { header ->
9494
hasHeaderChanged(
9595
headers.get(header),
9696
previousResponseHeaders.get(header)

0 commit comments

Comments
 (0)