mcplayer

package
v0.0.0-...-0523e7d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mc_player_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LoginSession

type LoginSession struct {
	SessionId string                 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	LoginTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=login_time,json=loginTime,proto3" json:"login_time,omitempty"`
	// Only set if this session is not currently active (i.e. the player is not online for this session)
	LogoutTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=logout_time,json=logoutTime,proto3,oneof" json:"logout_time,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginSession) Descriptor deprecated

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

Deprecated: Use LoginSession.ProtoReflect.Descriptor instead.

func (*LoginSession) GetLoginTime

func (x *LoginSession) GetLoginTime() *timestamppb.Timestamp

func (*LoginSession) GetLogoutTime

func (x *LoginSession) GetLogoutTime() *timestamppb.Timestamp

func (*LoginSession) GetSessionId

func (x *LoginSession) GetSessionId() string

func (*LoginSession) ProtoMessage

func (*LoginSession) ProtoMessage()

func (*LoginSession) ProtoReflect

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

func (*LoginSession) Reset

func (x *LoginSession) Reset()

func (*LoginSession) String

func (x *LoginSession) String() string

type McPlayer

type McPlayer struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CurrentUsername string                 `protobuf:"bytes,2,opt,name=current_username,json=currentUsername,proto3" json:"current_username,omitempty"`
	FirstLogin      *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_login,json=firstLogin,proto3" json:"first_login,omitempty"`
	// If they are currently online this will not be up to date
	LastOnline      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_online,json=lastOnline,proto3" json:"last_online,omitempty"`
	CurrentlyOnline bool                   `protobuf:"varint,5,opt,name=currently_online,json=currentlyOnline,proto3" json:"currently_online,omitempty"`
	CurrentSession  *LoginSession          `protobuf:"bytes,6,opt,name=current_session,json=currentSession,proto3,oneof" json:"current_session,omitempty"`
	// The total play time of this player.
	// WARNING: Does not include the current session
	HistoricPlayTime *durationpb.Duration `protobuf:"bytes,7,opt,name=historic_play_time,json=historicPlayTime,proto3" json:"historic_play_time,omitempty"`
	// contains filtered or unexported fields
}

func (*McPlayer) Descriptor deprecated

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

Deprecated: Use McPlayer.ProtoReflect.Descriptor instead.

func (*McPlayer) GetCurrentSession

func (x *McPlayer) GetCurrentSession() *LoginSession

func (*McPlayer) GetCurrentUsername

func (x *McPlayer) GetCurrentUsername() string

func (*McPlayer) GetCurrentlyOnline

func (x *McPlayer) GetCurrentlyOnline() bool

func (*McPlayer) GetFirstLogin

func (x *McPlayer) GetFirstLogin() *timestamppb.Timestamp

func (*McPlayer) GetHistoricPlayTime

func (x *McPlayer) GetHistoricPlayTime() *durationpb.Duration

func (*McPlayer) GetId

func (x *McPlayer) GetId() string

func (*McPlayer) GetLastOnline

func (x *McPlayer) GetLastOnline() *timestamppb.Timestamp

func (*McPlayer) ProtoMessage

func (*McPlayer) ProtoMessage()

func (*McPlayer) ProtoReflect

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

func (*McPlayer) Reset

func (x *McPlayer) Reset()

func (*McPlayer) String

func (x *McPlayer) String() string

Jump to

Keyboard shortcuts

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