コード例 #1
0
 public Builder(xdr.SetTrustLineFlagsOp op)
 {
     _asset      = Asset.FromXdr(op.Asset);
     _trustor    = KeyPair.FromXdrPublicKey(op.Trustor.InnerValue);
     _setFlags   = op.SetFlags.InnerValue;
     _clearFlags = op.ClearFlags.InnerValue;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }