Skip to content

Instantly share code, notes, and snippets.

@BoD
Created November 9, 2016 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoD/6ad7dac75a6217907d76ba41c0b69b44 to your computer and use it in GitHub Desktop.
Save BoD/6ad7dac75a6217907d76ba41c0b69b44 to your computer and use it in GitHub Desktop.
// 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