LCOV - code coverage report
Current view: top level - irohad/model/commands - transfer_asset.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 4 0.0 %
Date: 2019-03-07 14:46:43 Functions: 8 11 72.7 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_TRANSFER_ASSET_HPP
       7             : #define IROHA_TRANSFER_ASSET_HPP
       8             : 
       9             : #include <string>
      10             : #include "model/command.hpp"
      11             : 
      12             : namespace iroha {
      13             :   namespace model {
      14             : 
      15             :     /**
      16             :      * Transfer asset from one account to another
      17             :      */
      18             :     struct TransferAsset : public Command {
      19             :       /**
      20             :        * Source account
      21             :        */
      22             :       std::string src_account_id;
      23             : 
      24             :       /**
      25             :        * Destination account
      26             :        */
      27             :       std::string dest_account_id;
      28             : 
      29             :       /**
      30             :        * Asset to transfer. Identifier is asset_id
      31             :        */
      32             :       std::string asset_id;
      33             : 
      34             :       /**
      35             :        * Transfer description
      36             :        */
      37             :       std::string description;
      38             : 
      39             :       /**
      40             :        * Amount of transferred asset
      41             :        */
      42             :       std::string amount;
      43             : 
      44             :       bool operator==(const Command &command) const override;
      45             : 
      46             :       TransferAsset() {}
      47             : 
      48             :       TransferAsset(const std::string &src_account_id,
      49             :                     const std::string &dest_account_id,
      50             :                     const std::string &asset_id,
      51             :                     const std::string &amount)
      52           0 :           : src_account_id(src_account_id),
      53           0 :             dest_account_id(dest_account_id),
      54           0 :             asset_id(asset_id),
      55           0 :             amount(amount) {}
      56             :     };
      57             :   }  // namespace model
      58             : }  // namespace iroha
      59             : #endif  // IROHA_TRANSFER_ASSET_HPP

Generated by: LCOV version 1.13