types

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package types implements all the types used by the Friends protocol

Package types implements all the types used by the Friends protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FriendData

type FriendData struct {
	types.Structure
	PID            *types.PID
	StrName        *types.String
	ByRelationship *types.PrimitiveU8
	UIDetails      *types.PrimitiveU32
	StrStatus      *types.String
}

FriendData is a type within the Friends protocol

func NewFriendData

func NewFriendData() *FriendData

NewFriendData returns a new FriendData

func (*FriendData) Copy

func (fd *FriendData) Copy() types.RVType

Copy returns a new copied instance of FriendData

func (*FriendData) Equals

func (fd *FriendData) Equals(o types.RVType) bool

Equals checks if the given FriendData contains the same data as the current FriendData

func (*FriendData) ExtractFrom

func (fd *FriendData) ExtractFrom(readable types.Readable) error

ExtractFrom extracts the FriendData from the given readable

func (*FriendData) FormatToString

func (fd *FriendData) FormatToString(indentationLevel int) string

FormatToString pretty-prints the FriendData using the provided indentation level

func (*FriendData) String

func (fd *FriendData) String() string

String returns the string representation of the FriendData

func (*FriendData) WriteTo

func (fd *FriendData) WriteTo(writable types.Writable)

WriteTo writes the FriendData to the given writable

type RelationshipData

type RelationshipData struct {
	types.Structure
	PID            *types.PrimitiveU32
	StrName        *types.String
	ByRelationship *types.PrimitiveU8
	UIDetails      *types.PrimitiveU32
	ByStatus       *types.PrimitiveU8
}

RelationshipData is a type within the Friends protocol

func NewRelationshipData

func NewRelationshipData() *RelationshipData

NewRelationshipData returns a new RelationshipData

func (*RelationshipData) Copy

func (rd *RelationshipData) Copy() types.RVType

Copy returns a new copied instance of RelationshipData

func (*RelationshipData) Equals

func (rd *RelationshipData) Equals(o types.RVType) bool

Equals checks if the given RelationshipData contains the same data as the current RelationshipData

func (*RelationshipData) ExtractFrom

func (rd *RelationshipData) ExtractFrom(readable types.Readable) error

ExtractFrom extracts the RelationshipData from the given readable

func (*RelationshipData) FormatToString

func (rd *RelationshipData) FormatToString(indentationLevel int) string

FormatToString pretty-prints the RelationshipData using the provided indentation level

func (*RelationshipData) String

func (rd *RelationshipData) String() string

String returns the string representation of the RelationshipData

func (*RelationshipData) WriteTo

func (rd *RelationshipData) WriteTo(writable types.Writable)

WriteTo writes the RelationshipData to the given writable

Jump to

Keyboard shortcuts

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