public static ManageDataOp Decode(XdrDataInputStream stream)
        {
            ManageDataOp decodedManageDataOp = new ManageDataOp();

            decodedManageDataOp.DataName = String64.Decode(stream);
            int DataValuePresent = stream.ReadInt();

            if (DataValuePresent != 0)
            {
                decodedManageDataOp.DataValue = DataValue.Decode(stream);
            }

            return(decodedManageDataOp);
        }
Exemple #2
0
        public override sdkxdr.Operation.OperationBody ToOperationBody()
        {
            var op   = new sdkxdr.ManageDataOp();
            var name = new sdkxdr.String64();

            name.InnerValue = Name;
            op.DataName     = name;

            if (Value != null)
            {
                var dataValue = new sdkxdr.DataValue();
                dataValue.InnerValue = Value;
                op.DataValue         = dataValue;
            }

            var body = new sdkxdr.Operation.OperationBody();

            body.Discriminant = sdkxdr.OperationType.Create(sdkxdr.OperationType.OperationTypeEnum.MANAGE_DATA);
            body.ManageDataOp = op;

            return(body);
        }
Exemple #3
0
 public static void Encode(XdrDataOutputStream stream, LedgerKeyData encodedLedgerKeyData)
 {
     AccountID.Encode(stream, encodedLedgerKeyData.AccountID);
     String64.Encode(stream, encodedLedgerKeyData.DataName);
 }
 public static void Encode(XdrDataOutputStream stream, String64 encodedString64)
 {
     stream.WriteString(encodedString64.InnerValue);
 }