1
0
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:
Austin Huang 2021-06-14 21:54:14 -04:00
parent 079ce76bc3
commit 8edac65015
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
3 changed files with 34 additions and 0 deletions

View File

@ -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
}

View File

@ -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)
}

View File

@ -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,
)
}