summaryrefslogtreecommitdiff
path: root/internal/packet/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/packet/types.go')
-rw-r--r--internal/packet/types.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/internal/packet/types.go b/internal/packet/types.go
index e5dd88a..82b8397 100644
--- a/internal/packet/types.go
+++ b/internal/packet/types.go
@@ -6,7 +6,8 @@ import (
)
type Error struct {
- Error string
+ Error string
+ PktType PacketType
}
func (m *Error) Type() PacketType {
@@ -51,6 +52,15 @@ func (m *DeleteNetwork) Type() PacketType {
return PacketDeleteNetwork
}
+type SwapUserNetworks struct {
+ Pos1 int
+ Pos2 int
+}
+
+func (m *SwapUserNetworks) Type() PacketType {
+ return PacketSwapUserNetworks
+}
+
type SetNetworkUser struct {
Member *bool
Admin *bool
@@ -69,7 +79,7 @@ type FullNetwork struct {
data.Network
Frequencies []data.Frequency
Members []data.GetNetworkMembersRow
- Position int
+ Position int
}
type NetworksInfo struct {