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

com.casper.sdk.model.transaction.scheduling.Standard Maven / Gradle / Ivy

Go to download

SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.

The newest version!
package com.casper.sdk.model.transaction.scheduling;

import com.casper.sdk.exception.NoSuchTypeException;
import com.casper.sdk.model.clvalue.serde.Target;
import dev.oak3.sbs4j.SerializerBuffer;
import dev.oak3.sbs4j.exception.ValueSerializationException;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * No special scheduling applied.
 *
 * @author [email protected]
 */
@NoArgsConstructor
@Builder
@Setter
public class Standard implements TransactionScheduling {

    @Override
    public void serialize(final SerializerBuffer ser, final Target target) throws ValueSerializationException, NoSuchTypeException {
        ser.writeU8(getByteTag());
    }

    @Override
    public byte getByteTag() {
        return 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy