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

com.github.DNAProject.core.governance.GlobalParam Maven / Gradle / Ivy

The newest version!
package com.github.DNAProject.core.governance;

import com.github.DNAProject.io.BinaryReader;
import com.github.DNAProject.io.BinaryWriter;
import com.github.DNAProject.io.Serializable;
import com.github.DNAProject.io.utils;

import java.io.IOException;

public class GlobalParam implements Serializable {
    public int candidateFeeSplitNum;
    public int A;
    public int B;
    public int yita;
    public GlobalParam(){}
    public GlobalParam(int CandidateFeeSplitNum, int A, int B, int Yita){
        this.candidateFeeSplitNum = CandidateFeeSplitNum;
        this.A = A;
        this.B = B;
        this.yita = Yita;
    }

    @Override
    public void deserialize(BinaryReader reader) throws IOException {
        this.candidateFeeSplitNum = (int)utils.readVarInt(reader);
        this.A = (int)utils.readVarInt(reader);
        this.B = (int)utils.readVarInt(reader);
        this.yita = (int)utils.readVarInt(reader);
    }

    @Override
    public void serialize(BinaryWriter binaryWriter) throws IOException {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy