[client] Propagation networks for Android client (#3966)

Add networks propagation
This commit is contained in:
Zoltan Papp
2025-06-13 11:04:17 +02:00
committed by GitHub
parent 4f63996ae8
commit d24d8328f9
3 changed files with 84 additions and 15 deletions

View File

@ -0,0 +1,27 @@
//go:build android
package android
type Network struct {
Name string
Network string
Peer string
Status string
}
type NetworkArray struct {
items []Network
}
func (array *NetworkArray) Add(s Network) *NetworkArray {
array.items = append(array.items, s)
return array
}
func (array *NetworkArray) Get(i int) *Network {
return &array.items[i]
}
func (array *NetworkArray) Size() int {
return len(array.items)
}