Refactor: Move mailbox related classed to mailbox package. Make constructor public.

This commit is contained in:
chimp1984 2021-01-10 18:11:48 -05:00
parent 1406043f3b
commit 0656a52eb9
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
19 changed files with 28 additions and 17 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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;