AmityStoryRepository

Functions

Link copied to clipboard
Link copied to clipboard
fun createImageStory(targetType: AmityStory.TargetType, targetId: String, imageUri: Uri, storyItems: List<AmityStoryItem> = emptyList(), imageDisplayMode: AmityStoryImageDisplayMode = AmityStoryImageDisplayMode.FIT, metadata: JsonObject? = null): Completable
Link copied to clipboard
fun createVideoStory(targetType: AmityStory.TargetType, targetId: String, videoUri: Uri, storyItems: List<AmityStoryItem> = emptyList(), metadata: JsonObject? = null): Completable
Link copied to clipboard
fun getActiveStories(targetType: AmityStory.TargetType, targetId: String, sortOption: AmityStorySortOption = AmityStorySortOption.FIRST_CREATED): Flowable<PagingData<AmityStory>>
Link copied to clipboard
fun getStoriesByTargets(targets: List<Pair<AmityStory.TargetType, String>>, sortOption: AmityStorySortOption = AmityStorySortOption.FIRST_CREATED): Flowable<List<AmityStory>>
Link copied to clipboard
fun getStory(storyId: String): Flowable<AmityStory>
Link copied to clipboard
fun getStoryTarget(targetType: AmityStory.TargetType, targetId: String): Flowable<AmityStoryTarget>
Link copied to clipboard
Link copied to clipboard
fun hardDeleteStory(storyId: String): Completable
Link copied to clipboard
fun softDeleteStory(storyId: String): Completable