|
| 1 | +/* |
| 2 | + * Copyright (C) 2017 Worldline, Inc. |
| 3 | + * |
| 4 | + * MultiChainJavaAPI code distributed under the GPLv3 license, see COPYING file. |
| 5 | + * https://github.com/SimplyUb/MultiChainJavaAPI/blob/master/LICENSE |
| 6 | + * |
| 7 | + */ |
| 8 | +package multichain.command; |
| 9 | + |
| 10 | +/** |
| 11 | + * @author Ub - H. MARTEAU |
| 12 | + * @version 1.0 |
| 13 | + */ |
| 14 | +public class MultiChainCommand { |
| 15 | + private AddressCommand addressCommand; |
| 16 | + private BalanceCommand balanceCommand; |
| 17 | + private BlockCommand blockCommand; |
| 18 | + private GrantCommand grantCommand; |
| 19 | + private IssueCommand issueCommand; |
| 20 | + private RAWTransactionCommand rawTransactionCommand; |
| 21 | + private StreamCommand streamCommand; |
| 22 | + private WalletTransactionCommand walletTransactionCommand; |
| 23 | + |
| 24 | + /** |
| 25 | + * |
| 26 | + */ |
| 27 | + public MultiChainCommand(String chainName) { |
| 28 | + super(); |
| 29 | + addressCommand = new AddressCommand(chainName); |
| 30 | + balanceCommand = new BalanceCommand(chainName); |
| 31 | + blockCommand = new BlockCommand(chainName); |
| 32 | + grantCommand = new GrantCommand(chainName); |
| 33 | + issueCommand = new IssueCommand(chainName); |
| 34 | + rawTransactionCommand = new RAWTransactionCommand(chainName); |
| 35 | + streamCommand = new StreamCommand(chainName); |
| 36 | + walletTransactionCommand = new WalletTransactionCommand(chainName); |
| 37 | + } |
| 38 | + |
| 39 | + /** |
| 40 | + * @return the issueCommand |
| 41 | + */ |
| 42 | + public IssueCommand getIssueCommand() { |
| 43 | + return issueCommand; |
| 44 | + } |
| 45 | + |
| 46 | + /** |
| 47 | + * @param issueCommand |
| 48 | + * the issueCommand to set |
| 49 | + */ |
| 50 | + public void setIssueCommand(IssueCommand issueCommand) { |
| 51 | + this.issueCommand = issueCommand; |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * @return the streamCommand |
| 56 | + */ |
| 57 | + public StreamCommand getStreamCommand() { |
| 58 | + return streamCommand; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * @param streamCommand |
| 63 | + * the streamCommand to set |
| 64 | + */ |
| 65 | + public void setStreamCommand(StreamCommand streamCommand) { |
| 66 | + this.streamCommand = streamCommand; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * @return the rawTransactionCommand |
| 71 | + */ |
| 72 | + public RAWTransactionCommand getRawTransactionCommand() { |
| 73 | + return rawTransactionCommand; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * @param rawTransactionCommand |
| 78 | + * the rawTransactionCommand to set |
| 79 | + */ |
| 80 | + public void setRawTransactionCommand(RAWTransactionCommand rawTransactionCommand) { |
| 81 | + this.rawTransactionCommand = rawTransactionCommand; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * @return the addressCommand |
| 86 | + */ |
| 87 | + public AddressCommand getAddressCommand() { |
| 88 | + return addressCommand; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * @param addressCommand |
| 93 | + * the addressCommand to set |
| 94 | + */ |
| 95 | + public void setAddressCommand(AddressCommand addressCommand) { |
| 96 | + this.addressCommand = addressCommand; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * @return the balanceCommand |
| 101 | + */ |
| 102 | + public BalanceCommand getBalanceCommand() { |
| 103 | + return balanceCommand; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * @param balanceCommand |
| 108 | + * the balanceCommand to set |
| 109 | + */ |
| 110 | + public void setBalanceCommand(BalanceCommand balanceCommand) { |
| 111 | + this.balanceCommand = balanceCommand; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * @return the blockCommand |
| 116 | + */ |
| 117 | + public BlockCommand getBlockCommand() { |
| 118 | + return blockCommand; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * @param blockCommand |
| 123 | + * the blockCommand to set |
| 124 | + */ |
| 125 | + public void setBlockCommand(BlockCommand blockCommand) { |
| 126 | + this.blockCommand = blockCommand; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * @return the grantCommand |
| 131 | + */ |
| 132 | + public GrantCommand getGrantCommand() { |
| 133 | + return grantCommand; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * @param grantCommand |
| 138 | + * the grantCommand to set |
| 139 | + */ |
| 140 | + public void setGrantCommand(GrantCommand grantCommand) { |
| 141 | + this.grantCommand = grantCommand; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * @return the walletTransactionCommand |
| 146 | + */ |
| 147 | + public WalletTransactionCommand getWalletTransactionCommand() { |
| 148 | + return walletTransactionCommand; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * @param walletTransactionCommand |
| 153 | + * the walletTransactionCommand to set |
| 154 | + */ |
| 155 | + public void setWalletTransactionCommand(WalletTransactionCommand walletTransactionCommand) { |
| 156 | + this.walletTransactionCommand = walletTransactionCommand; |
| 157 | + } |
| 158 | + |
| 159 | +} |
0 commit comments