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

io.deepsense.neptune.clientlibrary.models.impl.channels.TextChannelImpl Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * Copyright (c) 2016, CodiLime Inc.
 */

package io.deepsense.neptune.clientlibrary.models.impl.channels;

import io.deepsense.neptune.apiclient.model.ChannelValues;
import io.deepsense.neptune.clientlibrary.models.ChannelType;
import io.deepsense.neptune.clientlibrary.services.apimodelconverter.ApiModelConverter;
import io.deepsense.neptune.clientlibrary.services.channelvaluesender.ChannelValueSendingProxy;

public class TextChannelImpl extends BaseChannelImpl {

    public TextChannelImpl(
            ApiModelConverter apiModelConverter,
            ChannelValueSendingProxy channelValueSendingProxy,
            long maxChannelValueSize,
            String name,
            boolean isHistoryPersisted,
            boolean isLastValueExposed) {
        super(apiModelConverter,
                channelValueSendingProxy,
                maxChannelValueSize,
                name,
                isHistoryPersisted,
                isLastValueExposed);
    }

    @Override
    public ChannelType getType() {
        return ChannelType.TEXT;
    }

    @Override
    protected ChannelValues convertValueToSwaggerModel(double x, String y) {
        return getApiModelConverter().textChannelValueToApiModel(getId(), x, y);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy