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 void Encode(XdrDataOutputStream stream, ManageOfferSuccessResult encodedManageOfferSuccessResult) { int offersClaimedsize = encodedManageOfferSuccessResult.OffersClaimed.Length; stream.WriteInt(offersClaimedsize); for (int i = 0; i < offersClaimedsize; i++) { ClaimOfferAtom.Encode(stream, encodedManageOfferSuccessResult.OffersClaimed[i]); } ManageOfferSuccessResultOffer.Encode(stream, encodedManageOfferSuccessResult.Offer); }
public static void Encode(IByteWriter stream, ManageOfferSuccessResult encodedManageOfferSuccessResult) { int offersClaimedsize = encodedManageOfferSuccessResult.OffersClaimed.Length; XdrEncoding.EncodeInt32(offersClaimedsize, stream); for (int i = 0; i < offersClaimedsize; i++) { ClaimOfferAtom.Encode(stream, encodedManageOfferSuccessResult.OffersClaimed[i]); } ManageOfferSuccessResultOffer.Encode(stream, encodedManageOfferSuccessResult.Offer); }
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); }