public static SimplePaymentResult Decode(IByteReader stream) { SimplePaymentResult decodedSimplePaymentResult = new SimplePaymentResult(); decodedSimplePaymentResult.Destination = AccountID.Decode(stream); decodedSimplePaymentResult.Asset = Asset.Decode(stream); decodedSimplePaymentResult.Amount = Int64.Decode(stream); return decodedSimplePaymentResult; }
public static SimplePaymentResult Decode(IByteReader stream) { SimplePaymentResult decodedSimplePaymentResult = new SimplePaymentResult(); decodedSimplePaymentResult.Destination = AccountID.Decode(stream); decodedSimplePaymentResult.Asset = Asset.Decode(stream); decodedSimplePaymentResult.Amount = Int64.Decode(stream); return(decodedSimplePaymentResult); }
public static SimplePaymentResult Decode(XdrDataInputStream stream) { SimplePaymentResult decodedSimplePaymentResult = new SimplePaymentResult(); decodedSimplePaymentResult.Destination = AccountID.Decode(stream); decodedSimplePaymentResult.Asset = Asset.Decode(stream); decodedSimplePaymentResult.Amount = Int64.Decode(stream); return(decodedSimplePaymentResult); }
public static void Encode(XdrDataOutputStream stream, PathPaymentResultSuccess encodedPathPaymentResultSuccess) { var offerssize = encodedPathPaymentResultSuccess.Offers.Length; stream.WriteInt(offerssize); for (var i = 0; i < offerssize; i++) { ClaimOfferAtom.Encode(stream, encodedPathPaymentResultSuccess.Offers[i]); } SimplePaymentResult.Encode(stream, encodedPathPaymentResultSuccess.Last); }
public static void Encode(IByteWriter stream, PathPaymentResultSuccess encodedPathPaymentResultSuccess) { int offerssize = encodedPathPaymentResultSuccess.Offers.Length; XdrEncoding.EncodeInt32(offerssize, stream); for (int i = 0; i < offerssize; i++) { ClaimOfferAtom.Encode(stream, encodedPathPaymentResultSuccess.Offers[i]); } SimplePaymentResult.Encode(stream, encodedPathPaymentResultSuccess.Last); }
public static PathPaymentResultSuccess Decode(XdrDataInputStream stream) { var decodedPathPaymentResultSuccess = new PathPaymentResultSuccess(); var offerssize = stream.ReadInt(); decodedPathPaymentResultSuccess.Offers = new ClaimOfferAtom[offerssize]; for (var i = 0; i < offerssize; i++) { decodedPathPaymentResultSuccess.Offers[i] = ClaimOfferAtom.Decode(stream); } decodedPathPaymentResultSuccess.Last = SimplePaymentResult.Decode(stream); return(decodedPathPaymentResultSuccess); }
public static PathPaymentResultSuccess Decode(IByteReader stream) { PathPaymentResultSuccess decodedPathPaymentResultSuccess = new PathPaymentResultSuccess(); int offerssize = XdrEncoding.DecodeInt32(stream); decodedPathPaymentResultSuccess.Offers = new ClaimOfferAtom[offerssize]; for (int i = 0; i < offerssize; i++) { decodedPathPaymentResultSuccess.Offers[i] = ClaimOfferAtom.Decode(stream); } decodedPathPaymentResultSuccess.Last = SimplePaymentResult.Decode(stream); return(decodedPathPaymentResultSuccess); }
public static void Encode(IByteWriter stream, SimplePaymentResult encodedSimplePaymentResult) { AccountID.Encode(stream, encodedSimplePaymentResult.Destination); Asset.Encode(stream, encodedSimplePaymentResult.Asset); Int64.Encode(stream, encodedSimplePaymentResult.Amount); }
public static void Encode(XdrDataOutputStream stream, SimplePaymentResult encodedSimplePaymentResult) { AccountID.Encode(stream, encodedSimplePaymentResult.Destination); Asset.Encode(stream, encodedSimplePaymentResult.Asset); Int64.Encode(stream, encodedSimplePaymentResult.Amount); }