package Ġio . open future . chain . core . model . entity . transaction . un confirmed Ċ Ċ import Ġio . open future . chain . core . model . entity . transaction . payload . Vote Transaction Payload Ċ import Ġio . open future . chain . network . message . core . Vote Transaction Message Ċ import Ġio . open future . chain . rpc . domain . transaction . request . Vote Transaction Request Ċ import Ġjavax . persistence . Embedded Ċ import Ġjavax . persistence . Entity Ċ import Ġjavax . persistence . Table Ċ Ċ @ Entity Ċ @ Table ( name Ġ= Ġ" u _ vote _ transactions ") Ċ class ĠUn confirmed Vote Transaction ( ĊĠĠĠ Ġtimestamp : ĠLong , ĊĠĠĠ Ġfee : ĠLong , ĊĠĠĠ Ġsender Address : ĠString , ĊĠĠĠ Ġhash : ĠString , ĊĠĠĠ Ġsignature : ĠString , ĊĠĠĠ ĠpublicKey : ĠString , ĊĊĠĠĠ Ġ@ Embedded ĊĠĠĠ Ġprivate Ġval Ġpayload : ĠV ote Transaction Payload Ċ Ċ ) Ġ: ĠUn confirmed Transaction ( timestamp , Ġfee , Ġsender Address , Ġhash , Ġsignature , ĠpublicKey ) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġof ( message : ĠV ote Transaction Message ): ĠUn confirmed Vote Transaction Ġ= ĠUn confirmed Vote Transaction ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmessage . timestamp , Ġmessage . fee , Ġmessage . sender Address , Ġmessage . hash , Ġmessage . signature , Ġmessage . publicKey , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠV ote Transaction Payload ( message . vote TypeId , Ġmessage . delegate Key ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġfun Ġof ( request : ĠV ote Transaction Request ): ĠUn confirmed Vote Transaction Ġ= ĠUn confirmed Vote Transaction ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . timestamp !! , Ġrequest . fee !! , Ġrequest . sender Address !! , Ġrequest . hash !! , Ġrequest . sender Signature !! , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . sender PublicKey !! , ĠV ote Transaction Payload ( request . vote TypeId !! , Ġrequest . delegate Key !! ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġoverride Ġfun Ġto Message (): ĠV ote Transaction Message Ġ= ĠV ote Transaction Message ( ĊĠĠĠĠĠĠĠ Ġtimestamp , Ġfee , Ġsender Address , Ġhash , Ġsignature , ĠpublicKey , Ġpayload . vote TypeId , Ġpayload . delegate Key ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Payload (): ĠV ote Transaction Payload Ġ= Ġpayload Ċ Ċ }