-
Notifications
You must be signed in to change notification settings - Fork 238
/
Copy pathrpc_modify_notifying_addresses_txs.go
49 lines (43 loc) · 1.79 KB
/
rpc_modify_notifying_addresses_txs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package appmessage
// ModifyNotifyingAddressesTxsRequestMessage is an appmessage corresponding to
// its respective RPC message
type ModifyNotifyingAddressesTxsRequestMessage struct {
baseMessage
AddAddresses []string
RemoveAddresses []string
RequiredConfirmations uint32
IncludePending bool
IncludeSending bool
IncludeReceiving bool
}
// Command returns the protocol command string for the message
func (msg *ModifyNotifyingAddressesTxsRequestMessage) Command() MessageCommand {
return CmdModifyNotifyingAddressesTxsRequestMessage
}
// NewModifyNotifyingAddressesTxsRequestMessage returns a instance of the message
func NewModifyNotifyingAddressesTxsRequestMessage(addAddresses []string, removeAddresses []string,
requiredConfirmations uint32, includePending bool, includeSending bool,
includeReceiving bool) *ModifyNotifyingAddressesTxsRequestMessage {
return &ModifyNotifyingAddressesTxsRequestMessage{
AddAddresses: addAddresses,
RemoveAddresses: removeAddresses,
RequiredConfirmations: requiredConfirmations,
IncludePending: includePending,
IncludeSending: includeSending,
IncludeReceiving: includeReceiving,
}
}
// ModifyNotifyingAddressesTxsResponseMessage is an appmessage corresponding to
// its respective RPC message
type ModifyNotifyingAddressesTxsResponseMessage struct {
baseMessage
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *ModifyNotifyingAddressesTxsResponseMessage) Command() MessageCommand {
return CmdModifyNotifyingAddressesTxsResponseMessage
}
// NewModifyNotifyingAddressesTxsResponseMessage returns a instance of the message
func NewModifyNotifyingAddressesTxsResponseMessage() *NotifyAddressesTxsResponseMessage {
return &NotifyAddressesTxsResponseMessage{}
}