All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.edu.icm.unity.engine.forms.InvitationPrefillInfo Maven / Gradle / Ivy

/*
 * Copyright (c) 2018 Bixbit - Krzysztof Benedyczak All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.engine.forms;

import java.util.Optional;

import pl.edu.icm.unity.types.registration.invite.InvitationWithCode;

public class InvitationPrefillInfo
{
	private Optional invitation;
	
	public InvitationPrefillInfo()
	{
		this(null);
	}

	public InvitationPrefillInfo(InvitationWithCode invitation)
	{
		this.invitation = Optional.ofNullable(invitation);
	}

	public boolean isByInvitation()
	{
		return invitation.isPresent();
	}
	
	public Optional getInvitation()
	{
		return invitation;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy