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

org.dc.riot.lol.rx.model.team.TeamMemberInfoDto Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.dc.riot.lol.rx.model.team;

/**
 * This object contains team member information.
 * 
 * @author Dc
 * @since 1.0.0
 */
public class TeamMemberInfoDto {
	private static long COUNT = 0;
	public static long getInstanceCount() {
		return COUNT;
	}

    private Long joinDate;
    private Long inviteDate;
    private String status;
    private Long playerId;
    
    public TeamMemberInfoDto() {
    	COUNT++;
    }

    /**
     * Implementation note: this value may not be set by the
     * server resulting in -1.
     * 
     * @return Date that team member joined team
     * specified as epoch milliseconds.
     */
    public long getJoinDate() {
    	if (joinDate == null) {
    		return -1;
    	}

        return joinDate.longValue();
    }

    /**
     * @return Date that team member was
     * invited to team specified as epoch milliseconds
     * or -1 if not defined.
     */
    public long getInviteDate() {
    	if (inviteDate == null) {
    		return -1;
    	}

        return inviteDate.longValue();
    }

    /**
     * @return This team member status.
     */
    public String getStatus() {
        return status;
    }

    /**
     * @return This team member ID (summoner ID?)
     * or -1 if not defined.
     */
    public long getPlayerId() {
    	if (playerId == null) {
    		return -1;
    	}

        return playerId.longValue();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy