-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from KeyValueSoftwareSystems/feat-mark-all-as-r…
…ead-api feat: Add mark all as read api
- Loading branch information
Showing
11 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
siren-sdk/src/main/java/com/keyvalue/siren/androidsdk/data/model/BulkUpdateBody.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.keyvalue.siren.androidsdk.data.model | ||
|
||
import com.keyvalue.siren.androidsdk.utils.constants.BulkUpdateType | ||
|
||
data class BulkUpdateBody( | ||
val until: String?, | ||
val operation: BulkUpdateType?, | ||
) |
5 changes: 5 additions & 0 deletions
5
siren-sdk/src/main/java/com/keyvalue/siren/androidsdk/data/model/DataStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.keyvalue.siren.androidsdk.data.model | ||
|
||
data class DataStatus( | ||
val status: String, | ||
) |
10 changes: 10 additions & 0 deletions
10
siren-sdk/src/main/java/com/keyvalue/siren/androidsdk/data/model/MarkAllAsReadResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.keyvalue.siren.androidsdk.data.model | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class MarkAllAsReadResponse( | ||
@SerializedName("data") | ||
val markAllAsReadResponse: DataStatus?, | ||
@SerializedName("error") | ||
val error: ErrorResponse?, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
siren-sdk/src/main/java/com/keyvalue/siren/androidsdk/data/state/MarkAllAsReadState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.keyvalue.siren.androidsdk.data.state | ||
|
||
import com.keyvalue.siren.androidsdk.data.model.DataStatus | ||
import org.json.JSONObject | ||
|
||
class MarkAllAsReadState( | ||
var errorResponse: JSONObject? = null, | ||
var markAllAsReadResponse: DataStatus? = null, | ||
) |
10 changes: 10 additions & 0 deletions
10
.../main/java/com/keyvalue/siren/androidsdk/helper/client/callbacks/MarkAllAsReadCallback.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.keyvalue.siren.androidsdk.helper.client.callbacks | ||
|
||
import com.keyvalue.siren.androidsdk.data.model.AllNotificationResponseData | ||
import org.json.JSONObject | ||
|
||
interface MarkAllAsReadCallback { | ||
fun onSuccess(responseData: AllNotificationResponseData) | ||
|
||
fun onError(jsonObject: JSONObject) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters