relationship

package
v0.0.0-...-66adcdc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_relationship_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FriendAddedMessage

type FriendAddedMessage struct {

	// The request that was accepted to add the friend
	SenderId       string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"`
	RecipientId    string `protobuf:"bytes,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	// contains filtered or unexported fields
}

Called when a friend request is accepted

func (*FriendAddedMessage) Descriptor deprecated

func (*FriendAddedMessage) Descriptor() ([]byte, []int)

Deprecated: Use FriendAddedMessage.ProtoReflect.Descriptor instead.

func (*FriendAddedMessage) GetRecipientId

func (x *FriendAddedMessage) GetRecipientId() string

func (*FriendAddedMessage) GetSenderId

func (x *FriendAddedMessage) GetSenderId() string

func (*FriendAddedMessage) GetSenderUsername

func (x *FriendAddedMessage) GetSenderUsername() string

func (*FriendAddedMessage) ProtoMessage

func (*FriendAddedMessage) ProtoMessage()

func (*FriendAddedMessage) ProtoReflect

func (x *FriendAddedMessage) ProtoReflect() protoreflect.Message

func (*FriendAddedMessage) Reset

func (x *FriendAddedMessage) Reset()

func (*FriendAddedMessage) String

func (x *FriendAddedMessage) String() string

type FriendConnectionMessage

type FriendConnectionMessage struct {
	MessageTargetIds []string `protobuf:"bytes,1,rep,name=message_target_ids,json=messageTargetIds,proto3" json:"message_target_ids,omitempty"`
	PlayerId         string   `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Username         string   `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// joined if true, player joined. If false, player disconnected.
	Joined bool `protobuf:"varint,4,opt,name=joined,proto3" json:"joined,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendConnectionMessage) Descriptor deprecated

func (*FriendConnectionMessage) Descriptor() ([]byte, []int)

Deprecated: Use FriendConnectionMessage.ProtoReflect.Descriptor instead.

func (*FriendConnectionMessage) GetJoined

func (x *FriendConnectionMessage) GetJoined() bool

func (*FriendConnectionMessage) GetMessageTargetIds

func (x *FriendConnectionMessage) GetMessageTargetIds() []string

func (*FriendConnectionMessage) GetPlayerId

func (x *FriendConnectionMessage) GetPlayerId() string

func (*FriendConnectionMessage) GetUsername

func (x *FriendConnectionMessage) GetUsername() string

func (*FriendConnectionMessage) ProtoMessage

func (*FriendConnectionMessage) ProtoMessage()

func (*FriendConnectionMessage) ProtoReflect

func (x *FriendConnectionMessage) ProtoReflect() protoreflect.Message

func (*FriendConnectionMessage) Reset

func (x *FriendConnectionMessage) Reset()

func (*FriendConnectionMessage) String

func (x *FriendConnectionMessage) String() string

type FriendRemovedMessage

type FriendRemovedMessage struct {
	SenderId    string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	RecipientId string `protobuf:"bytes,2,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendRemovedMessage) Descriptor deprecated

func (*FriendRemovedMessage) Descriptor() ([]byte, []int)

Deprecated: Use FriendRemovedMessage.ProtoReflect.Descriptor instead.

func (*FriendRemovedMessage) GetRecipientId

func (x *FriendRemovedMessage) GetRecipientId() string

func (*FriendRemovedMessage) GetSenderId

func (x *FriendRemovedMessage) GetSenderId() string

func (*FriendRemovedMessage) ProtoMessage

func (*FriendRemovedMessage) ProtoMessage()

func (*FriendRemovedMessage) ProtoReflect

func (x *FriendRemovedMessage) ProtoReflect() protoreflect.Message

func (*FriendRemovedMessage) Reset

func (x *FriendRemovedMessage) Reset()

func (*FriendRemovedMessage) String

func (x *FriendRemovedMessage) String() string

type FriendRequestReceivedMessage

type FriendRequestReceivedMessage struct {
	Request *relationship.FriendRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendRequestReceivedMessage) Descriptor deprecated

func (*FriendRequestReceivedMessage) Descriptor() ([]byte, []int)

Deprecated: Use FriendRequestReceivedMessage.ProtoReflect.Descriptor instead.

func (*FriendRequestReceivedMessage) GetRequest

func (*FriendRequestReceivedMessage) ProtoMessage

func (*FriendRequestReceivedMessage) ProtoMessage()

func (*FriendRequestReceivedMessage) ProtoReflect

func (*FriendRequestReceivedMessage) Reset

func (x *FriendRequestReceivedMessage) Reset()

func (*FriendRequestReceivedMessage) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL