-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Payload interface moved into model package
- Loading branch information
Showing
40 changed files
with
209 additions
and
227 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
3 changes: 1 addition & 2 deletions
3
sdk/src/androidTest/java/network/xyo/client/boundwitness/TestBoundWitnessSequence.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
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
18 changes: 9 additions & 9 deletions
18
sdk/src/androidTest/java/network/xyo/client/lib/Constants.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
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
13 changes: 13 additions & 0 deletions
13
sdk/src/androidTest/java/network/xyo/client/payload/EventPayload.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,13 @@ | ||
package network.xyo.client.payload | ||
|
||
import com.squareup.moshi.JsonClass | ||
import java.util.* | ||
|
||
@JsonClass(generateAdapter = true) | ||
open class EventPayload(val event: String): Payload(SCHEMA) { | ||
val timestamp = Date().time | ||
|
||
companion object { | ||
const val SCHEMA = "network.xyo.event" | ||
} | ||
} |
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
10 changes: 0 additions & 10 deletions
10
sdk/src/androidTest/java/network/xyo/client/payload/XyoEventPayload.kt
This file was deleted.
Oops, something went wrong.
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
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
10 changes: 5 additions & 5 deletions
10
sdk/src/main/java/network/xyo/client/archivist/wrapper/ArchivistGetQueryPayload.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package network.xyo.client.archivist.wrapper | ||
|
||
import network.xyo.client.payload.XyoPayload | ||
|
||
open class ArchivistGetQueryPayload(val hashes: List<String>): XyoPayload() { | ||
override var schema = ArchivistGetQueryPayload.schema | ||
import com.squareup.moshi.JsonClass | ||
import network.xyo.client.payload.Payload | ||
|
||
@JsonClass(generateAdapter = true) | ||
open class ArchivistGetQueryPayload(val hashes: List<String>): Payload(SCHEMA) { | ||
companion object { | ||
val schema = "network.xyo.query.archivist.get" | ||
const val SCHEMA = "network.xyo.query.archivist.get" | ||
} | ||
} |
11 changes: 5 additions & 6 deletions
11
sdk/src/main/java/network/xyo/client/archivist/wrapper/ArchivistInsertQueryPayload.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package network.xyo.client.archivist.wrapper | ||
|
||
import network.xyo.client.payload.XyoPayload | ||
|
||
|
||
class ArchivistInsertQueryPayload : XyoPayload() { | ||
override var schema = ArchivistInsertQueryPayload.schema | ||
import com.squareup.moshi.JsonClass | ||
import network.xyo.client.payload.Payload | ||
|
||
@JsonClass(generateAdapter = true) | ||
class ArchivistInsertQueryPayload : Payload(SCHEMA) { | ||
companion object { | ||
val schema = "network.xyo.query.archivist.insert" | ||
const val SCHEMA = "network.xyo.query.archivist.insert" | ||
} | ||
} |
Oops, something went wrong.