mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-04-25 07:18:36 -05:00
29 lines
755 B
Go
29 lines
755 B
Go
package main
|
|
|
|
import (
|
|
nex "github.com/PretendoNetwork/nex-go"
|
|
nexproto "github.com/PretendoNetwork/nex-protocols-go"
|
|
)
|
|
|
|
// FriendUser represents a user connected to the friends server
|
|
// Contains data relating only to friends
|
|
type FriendUser struct {
|
|
NNID string
|
|
PID uint32
|
|
Comment *nexproto.Comment
|
|
FriendRequestsOut []*nexproto.FriendRequest
|
|
FriendRequestsIn []*nexproto.FriendRequest
|
|
BlockedUsers []*nexproto.BlacklistedPrincipal
|
|
LastOnline *nex.DateTime
|
|
ActiveTitle *nexproto.GameKey
|
|
Notifications []*nexproto.PersistentNotification
|
|
}
|
|
|
|
func (friendUser *FriendUser) FromPID(pid uint32) {
|
|
|
|
}
|
|
|
|
func NewFriendUser() *FriendUser {
|
|
return &FriendUser{}
|
|
}
|