This class represents all of the different Instagram Errors as example
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
sealed class InstagramErrorType : InstagramErrorContent { | |
data class DeclinePost( | |
override val photoVideoUrl: String, | |
override val tags: List<String>, | |
override val errorCode: ErrorCode, | |
val textContent: String, | |
val location: String | |
) : InstagramErrorType() | |
data class TooLongVideoPost( | |
override val photoVideoUrl: String, | |
override val tags: List<String>, | |
override val errorCode: ErrorCode, | |
val textContent: String, | |
val location: String | |
) : InstagramErrorType() | |
data class TimeoutStory( | |
override val photoVideoUrl: String, | |
override val tags: List<String>, | |
override val errorCode: ErrorCode, | |
val texts: List<String> | |
) : InstagramErrorType() | |
data class TooShortIGTvPost( | |
override val photoVideoUrl: String, | |
override val tags: List<String>, | |
override val errorCode: ErrorCode, | |
val textContent: String | |
) : InstagramErrorType() | |
data class TimeOutIGTvPost( | |
override val photoVideoUrl: String, | |
override val tags: List<String>, | |
override val errorCode: ErrorCode, | |
val textContent: String | |
) : InstagramErrorType() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment