mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
fix sticker properties
This commit is contained in:
parent
1bba8dc065
commit
31ea42d105
@ -6,7 +6,7 @@ import awais.instagrabber.repositories.responses.Location
|
|||||||
import awais.instagrabber.repositories.responses.User
|
import awais.instagrabber.repositories.responses.User
|
||||||
|
|
||||||
data class QuestionSticker(
|
data class QuestionSticker(
|
||||||
val questionType: String?,
|
val questionType: String,
|
||||||
val questionId: Long,
|
val questionId: Long,
|
||||||
val question: String
|
val question: String
|
||||||
) : Serializable
|
) : Serializable
|
@ -6,8 +6,8 @@ import awais.instagrabber.repositories.responses.Location
|
|||||||
import awais.instagrabber.repositories.responses.User
|
import awais.instagrabber.repositories.responses.User
|
||||||
|
|
||||||
data class QuizSticker(
|
data class QuizSticker(
|
||||||
val quizId: Long?,
|
val quizId: Long,
|
||||||
val question: String?,
|
val question: String,
|
||||||
val tallies: List<Tally>,
|
val tallies: List<Tally>,
|
||||||
var viewerAnswer: Int?,
|
var viewerAnswer: Int?,
|
||||||
val correctAnswer: Int
|
val correctAnswer: Int
|
||||||
|
@ -6,11 +6,11 @@ import awais.instagrabber.repositories.responses.Location
|
|||||||
import awais.instagrabber.repositories.responses.User
|
import awais.instagrabber.repositories.responses.User
|
||||||
|
|
||||||
data class SliderSticker(
|
data class SliderSticker(
|
||||||
val sliderId: Long?,
|
val sliderId: Long,
|
||||||
val question: String?,
|
val question: String,
|
||||||
val emoji: String?,
|
val emoji: String?,
|
||||||
val viewerCanVote: Boolean?,
|
val viewerCanVote: Boolean?,
|
||||||
var viewerVote: Double?,
|
val viewerVote: Double?,
|
||||||
val sliderVoteAverage: Double?,
|
val sliderVoteAverage: Double?,
|
||||||
val sliderVoteCount: Int?,
|
val sliderVoteCount: Int?,
|
||||||
) : Serializable
|
) : Serializable
|
@ -1,9 +1,18 @@
|
|||||||
package awais.instagrabber.repositories.responses.stories
|
package awais.instagrabber.repositories.responses.stories
|
||||||
|
|
||||||
|
import android.net.Uri
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|
||||||
// https://github.com/austinhuang0131/barinsta/issues/1151
|
// https://github.com/austinhuang0131/barinsta/issues/1151
|
||||||
data class StoryAppAttribution(
|
data class StoryAppAttribution(
|
||||||
val name: String?, // use name instead of app_action_text for button label
|
val name: String?,
|
||||||
|
val appActionText: String?,
|
||||||
val contentUrl: String?
|
val contentUrl: String?
|
||||||
) : Serializable
|
) : Serializable {
|
||||||
|
val url: String?
|
||||||
|
get() {
|
||||||
|
val uri = Uri.parse(contentUrl)
|
||||||
|
return if (uri.getHost().equals("open.spotify.com")) contentUrl?.split("?")?.get(0)
|
||||||
|
else contentUrl
|
||||||
|
}
|
||||||
|
}
|
@ -6,6 +6,6 @@ import awais.instagrabber.repositories.responses.Location
|
|||||||
import awais.instagrabber.repositories.responses.User
|
import awais.instagrabber.repositories.responses.User
|
||||||
|
|
||||||
data class Tally(
|
data class Tally(
|
||||||
val text: String?,
|
val text: String,
|
||||||
val count: Int?
|
val count: Int
|
||||||
) : Serializable
|
) : Serializable
|
Loading…
Reference in New Issue
Block a user