Created
March 2, 2019 16:28
-
-
Save NsAveek/fb8239346b9cbfd54966d12ac3f599a7 to your computer and use it in GitHub Desktop.
A class that contains the Base Context and interfaces for handling the States
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
class BaseContext(private var state: IBaseState) { | |
fun getState(): IBaseState { | |
return state | |
} | |
} | |
interface IBaseState { | |
fun setPackageExpiryVisibility() | |
} | |
interface IState1 : IBaseState { | |
fun setParams(@DrawableRes icon : Int, hasLimitedPackage : Boolean, totalFeature : Int, consumedFeature : Int , expiry : String) | |
} | |
interface IState2 : IBaseState { | |
fun setParams(@DrawableRes icon : Int, hasLimitedPackage : Boolean, totalFeature : Int, consumedFeature : Int ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment