package com.bcxin.tenant.domain.readers.dtos;

import com.bcxin.Infrastructures.enums.*;
import com.bcxin.tenant.domain.readers.dtos.TenantUserDto;
import lombok.Getter;

import java.util.Date;

@Getter
public class InviteUserDto {
    private final String id;
    private final String name;
    private final Date hiredDate;
    private final OccupationType occupationType;
    private final CredentialType credentialType;
    private final String credentialNumber;
    private String cid;

    public InviteUserDto(String id,
                         String name,
                         Date hiredDate,
                         OccupationType occupationType,
                         CredentialType credentialType,
                         String credentialNumber){

        this.id = id;
        this.name = name;
        this.hiredDate = hiredDate;
        this.occupationType = occupationType;
        this.credentialType = credentialType;
        this.credentialNumber = credentialNumber;
    }

    public InviteUserDto(String name,
                         CredentialType credentialType,
                         String credentialNumber){

        this.id = null;
        this.name = name;
        this.hiredDate = null;
        this.occupationType = null;
        this.credentialType = credentialType;
        this.credentialNumber = credentialNumber;
    }

    public InviteUserDto(String name,
                         CredentialType credentialType,
                         String credentialNumber,
                         String cid){

        this.id = null;
        this.name = name;
        this.hiredDate = null;
        this.occupationType = null;
        this.credentialType = credentialType;
        this.credentialNumber = credentialNumber;
        this.cid = cid;
    }
}
