public Builder(xdr.SetTrustLineFlagsOp op) { _asset = Asset.FromXdr(op.Asset); _trustor = KeyPair.FromXdrPublicKey(op.Trustor.InnerValue); _setFlags = op.SetFlags.InnerValue; _clearFlags = op.ClearFlags.InnerValue; }
public static void Encode(XdrDataOutputStream stream, SetTrustLineFlagsOp encodedSetTrustLineFlagsOp) { AccountID.Encode(stream, encodedSetTrustLineFlagsOp.Trustor); Asset.Encode(stream, encodedSetTrustLineFlagsOp.Asset); Uint32.Encode(stream, encodedSetTrustLineFlagsOp.ClearFlags); Uint32.Encode(stream, encodedSetTrustLineFlagsOp.SetFlags); }
public static SetTrustLineFlagsOp Decode(XdrDataInputStream stream) { SetTrustLineFlagsOp decodedSetTrustLineFlagsOp = new SetTrustLineFlagsOp(); decodedSetTrustLineFlagsOp.Trustor = AccountID.Decode(stream); decodedSetTrustLineFlagsOp.Asset = Asset.Decode(stream); decodedSetTrustLineFlagsOp.ClearFlags = Uint32.Decode(stream); decodedSetTrustLineFlagsOp.SetFlags = Uint32.Decode(stream); return(decodedSetTrustLineFlagsOp); }