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

com.testdroid.api.model.APIConnection Maven / Gradle / Ivy

The newest version!
package com.testdroid.api.model;

import com.testdroid.api.APIEntity;
import com.testdroid.api.util.TimeConverter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Jarno Tuovinen 
 */
public class APIConnection extends APIEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Date createTime;

    private Date endTime;

    private Long deviceSessionId;

    private String password;

    private String type;

    private Integer port;

    private String path;

    private String urlSchema;

    private String host;

    private String externalId;

    public APIConnection() {
    }

    @SuppressWarnings("squid:S107")
    public APIConnection(
            Long id, LocalDateTime createTime, LocalDateTime endTime, Long deviceSessionId, String password,
            String type, String urlSchema, String host, Integer port, String path, String externalId) {
        super(id);
        this.createTime = TimeConverter.toDate(createTime);
        this.endTime = TimeConverter.toDate(endTime);
        this.deviceSessionId = deviceSessionId;
        this.password = password;
        this.type = type;
        this.port = port;
        this.path = path;
        this.urlSchema = urlSchema;
        this.host = host;
        this.externalId = externalId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getDeviceSessionId() {
        return deviceSessionId;
    }

    public void setDeviceSessionId(Long deviceSessionId) {
        this.deviceSessionId = deviceSessionId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrlSchema() {
        return urlSchema;
    }

    public void setUrlSchema(String urlSchema) {
        this.urlSchema = urlSchema;
    }

    public String getPath() {
        return path;
    }

    public Integer getPort() {
        return port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    @Override
    protected  void clone(T from) {
        APIConnection apiConnection = (APIConnection) from;
        cloneBase(from);
        this.createTime = apiConnection.createTime;
        this.endTime = apiConnection.endTime;
        this.password = apiConnection.password;
        this.type = apiConnection.type;
        this.port = apiConnection.port;
        this.path = apiConnection.path;
        this.urlSchema = apiConnection.urlSchema;
        this.host = apiConnection.host;
        this.externalId = apiConnection.externalId;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy