public ViewChangeProof(ElectionMessageDto.ViewChangeProofDto dto)
 {
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     InstalledView = dto.InstalledView;
 }
 public ViewChange(ElectionMessageDto.ViewChangeDto dto)
 {
     AttemptedView = dto.AttemptedView;
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
 }
 public Accept(ElectionMessageDto.AcceptDto dto)
 {
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     MasterId = dto.MasterId;
     MasterInternalHttp = new IPEndPoint(IPAddress.Parse(dto.MasterInternalHttpAddress), dto.MasterInternalHttpPort);
     View = dto.View;
 }
 public Proposal(ElectionMessageDto.ProposalDto dto)
 {
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     MasterId = dto.MasterId;
     MasterInternalHttp = new IPEndPoint(IPAddress.Parse(dto.MasterInternalHttpAddress), dto.MasterInternalHttpPort);
     View = dto.View;
     EpochNumber = dto.EpochNumber;
     EpochPosition = dto.EpochPosition;
     EpochId = dto.EpochId;
     LastCommitPosition = dto.LastCommitPosition;
     WriterCheckpoint = dto.WriterCheckpoint;
     ChaserCheckpoint = dto.ChaserCheckpoint;
 }
 public PrepareOk(ElectionMessageDto.PrepareOkDto dto)
 {
     View = dto.View;
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     EpochNumber = dto.EpochNumber;
     EpochPosition = dto.EpochPosition;
     EpochId = dto.EpochId;
     LastCommitPosition = dto.LastCommitPosition;
     WriterCheckpoint = dto.WriterCheckpoint;
     ChaserCheckpoint = dto.ChaserCheckpoint;
     NodePriority = dto.NodePriority;
 }
 public Prepare(ElectionMessageDto.PrepareDto dto)
 {
     ServerId = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     View = dto.View;
 }