-
Notifications
You must be signed in to change notification settings - Fork 6
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 #76 from akiomik/fix-lex
Fix lex
- Loading branch information
Showing
19 changed files
with
77 additions
and
45 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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/feed/ImagesOrExternal.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,12 @@ | ||
package io.github.akiomik.seiun.model.app.bsky.feed | ||
|
||
import com.squareup.moshi.Json | ||
import io.github.akiomik.seiun.model.app.bsky.embed.External | ||
import io.github.akiomik.seiun.model.app.bsky.embed.ImagesImage | ||
|
||
data class ImagesOrExternal( | ||
@Json(name = "\$type") | ||
val type: String, | ||
val images: List<ImagesImage>? = null, // from app.bsky.embed.images | ||
val external: External? = null // from app.bsky.embed.external | ||
) |
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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/feed/ImagesViewOrExternalView.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,12 @@ | ||
package io.github.akiomik.seiun.model.app.bsky.feed | ||
|
||
import com.squareup.moshi.Json | ||
import io.github.akiomik.seiun.model.app.bsky.embed.ExternalViewExternal | ||
import io.github.akiomik.seiun.model.app.bsky.embed.ImagesViewImage | ||
|
||
data class ImagesViewOrExternalView( | ||
@Json(name = "\$type") | ||
val type: String, | ||
val images: List<ImagesViewImage>? = null, // from app.bsky.embed.images#view | ||
val external: ExternalViewExternal? = null // from app.bsky.embed.external#view | ||
) |
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
15 changes: 7 additions & 8 deletions
15
.../java/io/github/akiomik/seiun/model/app/bsky/feed/RecordViewRecordOrRecordViewNotFound.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,17 +1,16 @@ | ||
package io.github.akiomik.seiun.model.app.bsky.feed | ||
|
||
import com.squareup.moshi.Json | ||
import io.github.akiomik.seiun.model.app.bsky.actor.WithInfo | ||
import java.util.* | ||
|
||
data class RecordViewRecordOrRecordViewNotFound( | ||
@Json(name = "\$type") | ||
val type: String, | ||
// @Json(name = "\$type") | ||
// val type: String, | ||
// from app.bsky.embed.record#viewRecord | ||
val uri: String, // is used by app.bsky.embed.record#viewNotFound too | ||
val cid: String, | ||
val author: WithInfo, | ||
val uri: String? = null, // is used by app.bsky.embed.record#viewNotFound too | ||
val cid: String? = null, | ||
val author: WithInfo? = null, | ||
// val record: Record, // TODO unknown | ||
val indexedAt: Date, | ||
val embeds: List<ImagesViewOrExternalViewOrRecordView>? = null | ||
val indexedAt: Date? = null, | ||
val embeds: List<ImagesViewOrExternalViewOrRecordViewOrRecordWithMediaView>? = null | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/feed/StrongRefOrRecord.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 io.github.akiomik.seiun.model.app.bsky.feed | ||
|
||
import io.github.akiomik.seiun.model.com.atproto.repo.StrongRef | ||
|
||
data class StrongRefOrRecord( | ||
val uri: String? = null, // from com.atproto.repo.strongRef | ||
val cid: String? = null, // from com.atproto.repo.strongRef | ||
val record: StrongRef? = null // from app.bsky.embed.record | ||
) |
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/richtext/Facet.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,6 +1,6 @@ | ||
package io.github.akiomik.seiun.model.app.bsky.richtext | ||
|
||
data class Facet( | ||
val index: FacetTextSlice, | ||
val value: FacetMentionOrFacetLink // TODO: union | ||
val index: FacetByteSlice, | ||
val features: List<FacetMentionOrFacetLink> // TODO: union | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/richtext/FacetByteSlice.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,6 @@ | ||
package io.github.akiomik.seiun.model.app.bsky.richtext | ||
|
||
class FacetByteSlice( | ||
val byteStart: Int, | ||
val byteEnd: Int | ||
) |
6 changes: 0 additions & 6 deletions
6
app/src/main/java/io/github/akiomik/seiun/model/app/bsky/richtext/FacetTextSlice.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
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