There is a case class:
case class MailToken(uuid: String,
email: String,
creationTime: DateTime,
expirationTime: DateTime,
isSignUp: Boolean)
And we have the class converter for Java code:
public class Token {
public String uuid;
public String email;
public DateTime creationTime;
public boolean isSignUp;
public MailToken toScala() {
return # MISSED CODE;
}
public static Token fromScala(MailToken scalaToken) {
Token javaToken = new Token();
javaToken.uuid = scalaToken.uuid();
javaToken.email = scalaToken.email();
javaToken.creationTime = scalaToken.creationTime();
javaToken.isSignUp = scalaToken.isSignUp();
return javaToken;
}
}
Choose all proper options for
MISSED CODE in order to convert properly
Token to
MailToken.
Login in to like
Login in to comment