class ApplicationTeamViewModel implements BaseAnalyticsViewModel {

    public Long getKtaInvitePendingDays() {
        if (ktaInvite == null || InviteStatus.SENT != ktaInvite.getStatus()) {
            return null;
        }

        return Duration.between(ktaInvite.getSentOn().toInstant(), Instant.now()).toDays();
    }

    public  ApplicationTeamViewModel(long applicationId,
                                    String applicationName,
                                    String competitionName,
                                    long questionId,
                                    List<ApplicationTeamOrganisationViewModel> organisations,
                                    long loggedInUserId,
                                    boolean leadApplicant,
                                    boolean collaborationLevelSingle,
                                    boolean open,
                                    boolean complete,
                                    boolean ktpCompetition,
                                    ApplicationKtaInviteResource ktaInvite,
                                    ProcessRoleResource ktaProcessRole
                                    );

}