mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Refactor: Move mailbox related classed to mailbox package. Make constructor public.
This commit is contained in:
parent
1406043f3b
commit
0656a52eb9
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.alert;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.proto.network.NetworkEnvelope;
|
||||
|
@ -43,8 +43,8 @@ import bisq.core.trade.statistics.TradeStatistics3Store;
|
||||
import bisq.core.user.PreferencesPayload;
|
||||
import bisq.core.user.UserPayload;
|
||||
|
||||
import bisq.network.p2p.MailboxMessageList;
|
||||
import bisq.network.p2p.mailbox.IgnoredMailboxMap;
|
||||
import bisq.network.p2p.mailbox.MailboxMessageList;
|
||||
import bisq.network.p2p.peers.peerexchange.PeerList;
|
||||
import bisq.network.p2p.storage.persistence.SequenceNumberMap;
|
||||
|
||||
|
@ -19,8 +19,8 @@ package bisq.core.support.messages;
|
||||
|
||||
import bisq.core.support.SupportType;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.UidMessage;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.proto.network.NetworkEnvelope;
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.proto.ProtoUtil;
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.util.Utilities;
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.proto.network.NetworkEnvelope;
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.util.Utilities;
|
||||
|
@ -19,8 +19,8 @@ package bisq.core.trade.messages;
|
||||
|
||||
import bisq.core.account.sign.SignedWitness;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.proto.network.NetworkEnvelope;
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.core.trade.messages;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Value;
|
||||
|
@ -19,8 +19,8 @@ package bisq.core.trade.messages;
|
||||
|
||||
import bisq.core.account.sign.SignedWitness;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
|
||||
|
@ -28,9 +28,9 @@ import bisq.network.p2p.AckMessage;
|
||||
import bisq.network.p2p.AckMessageSourceType;
|
||||
import bisq.network.p2p.DecryptedDirectMessageListener;
|
||||
import bisq.network.p2p.DecryptedMessageWithPubKey;
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.SendMailboxMessageListener;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
import bisq.network.p2p.messaging.DecryptedMailboxListener;
|
||||
|
||||
import bisq.common.Timer;
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
package bisq.network.p2p;
|
||||
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
import bisq.network.p2p.storage.payload.ExpirablePayload;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
|
@ -20,6 +20,9 @@ package bisq.network.p2p;
|
||||
import bisq.network.Socks5ProxyProvider;
|
||||
import bisq.network.crypto.EncryptionService;
|
||||
import bisq.network.p2p.mailbox.IgnoredMailboxService;
|
||||
import bisq.network.p2p.mailbox.MailboxItem;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
import bisq.network.p2p.mailbox.MailboxMessageList;
|
||||
import bisq.network.p2p.messaging.DecryptedMailboxListener;
|
||||
import bisq.network.p2p.network.CloseConnectionReason;
|
||||
import bisq.network.p2p.network.Connection;
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
package bisq.network.p2p;
|
||||
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.crypto.SealedAndSigned;
|
||||
import bisq.common.proto.network.NetworkEnvelope;
|
||||
|
@ -15,8 +15,9 @@
|
||||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.network.p2p;
|
||||
package bisq.network.p2p.mailbox;
|
||||
|
||||
import bisq.network.p2p.DecryptedMessageWithPubKey;
|
||||
import bisq.network.p2p.storage.payload.ProtectedMailboxStorageEntry;
|
||||
|
||||
import bisq.common.proto.ProtobufferException;
|
@ -15,9 +15,13 @@
|
||||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.network.p2p;
|
||||
package bisq.network.p2p.mailbox;
|
||||
|
||||
|
||||
import bisq.network.p2p.DirectMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.UidMessage;
|
||||
|
||||
public interface MailboxMessage extends DirectMessage, UidMessage {
|
||||
NodeAddress getSenderNodeAddress();
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.network.p2p;
|
||||
package bisq.network.p2p.mailbox;
|
||||
|
||||
import bisq.common.proto.ProtobufferException;
|
||||
import bisq.common.proto.network.NetworkProtoResolver;
|
||||
@ -35,7 +35,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MailboxMessageList extends PersistableList<MailboxItem> {
|
||||
|
||||
MailboxMessageList() {
|
||||
public MailboxMessageList() {
|
||||
super();
|
||||
}
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package bisq.network.p2p.mocks;
|
||||
|
||||
import bisq.network.p2p.MailboxMessage;
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
import bisq.network.p2p.mailbox.MailboxMessage;
|
||||
import bisq.network.p2p.storage.payload.ExpirablePayload;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
|
Loading…
Reference in New Issue
Block a user