mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-12 17:57:29 +00:00
prepare broadcast options for profile/story
This commit is contained in:
parent
079ce76bc3
commit
8edac65015
@ -10,4 +10,6 @@ enum class BroadcastItemType(val value: String) {
|
||||
VOICE("share_voice"),
|
||||
ANIMATED_MEDIA("animated_media"),
|
||||
MEDIA_SHARE("media_share"),
|
||||
PROFILE("profile"),
|
||||
STORY("story_share"), // not reply
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package awais.instagrabber.repositories.requests.directmessages
|
||||
|
||||
import awais.instagrabber.models.enums.BroadcastItemType
|
||||
|
||||
class ProfileBroadcastOptions(
|
||||
clientContext: String,
|
||||
threadIdsOrUserIds: ThreadIdsOrUserIds,
|
||||
val profileId: String
|
||||
) : BroadcastOptions(
|
||||
clientContext,
|
||||
threadIdsOrUserIds,
|
||||
BroadcastItemType.PROFILE
|
||||
) {
|
||||
override val formMap: Map<String, String>
|
||||
get() = mapOf("profile_user_id" to profileId)
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package awais.instagrabber.repositories.requests.directmessages
|
||||
|
||||
import awais.instagrabber.models.enums.BroadcastItemType
|
||||
|
||||
class StoryBroadcastOptions(
|
||||
clientContext: String,
|
||||
threadIdsOrUserIds: ThreadIdsOrUserIds,
|
||||
val mediaId: String,
|
||||
val reelId: String
|
||||
) : BroadcastOptions(clientContext, threadIdsOrUserIds, BroadcastItemType.STORY) {
|
||||
override val formMap: Map<String, String>
|
||||
get() = mapOf(
|
||||
"story_media_id" to mediaId,
|
||||
"reel_id" to reelId,
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user