Created
November 9, 2016 10:39
-
-
Save BoD/6ad7dac75a6217907d76ba41c0b69b44 to your computer and use it in GitHub Desktop.
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
// Java interface | |
public interface ConfModel extends BaseModel { | |
/** | |
* Primary key. | |
*/ | |
long getId(); | |
/** | |
* Get the {@code auth_pin_expiration_time} value. | |
*/ | |
int getAuthPinExpirationTime(); | |
/** | |
* Get the {@code auth_pin_length} value. | |
*/ | |
int getAuthPinLength(); | |
/** | |
* Get the {@code auth_pin_sender} value. | |
* Cannot be {@code null}. | |
*/ | |
@NonNull | |
String getAuthPinSender(); | |
} | |
// Kotlin data class | |
data class Conf( | |
override val id: Long = 0, | |
override val authPinExpirationTime: Int, | |
override val authPinLength: Int, | |
override val authPinSender: String | |
) : ConfModel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment