Documentation
¶
Index ¶
- Variables
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAuth0Id() string
- func (x *User) GetEmail() string
- func (x *User) GetOwnedCards() []string
- func (x *User) GetOwnedDecks() []string
- func (x *User) GetOwnedSets() []string
- func (x *User) GetStats() *UserStatistics
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserStatistics
- func (*UserStatistics) Descriptor() ([]byte, []int)deprecated
- func (x *UserStatistics) GetLevel() int64
- func (x *UserStatistics) GetPrestige() int64
- func (x *UserStatistics) GetTotalCardsOwned() int64
- func (x *UserStatistics) GetTotalDecksOwned() int64
- func (x *UserStatistics) GetTotalGamesLost() int64
- func (x *UserStatistics) GetTotalGamesPlayed() int64
- func (x *UserStatistics) GetTotalGamesWon() int64
- func (x *UserStatistics) GetTotalSetsOwned() int64
- func (x *UserStatistics) GetWinLossRatio() float32
- func (x *UserStatistics) GetXpLeft() int64
- func (*UserStatistics) ProtoMessage()
- func (x *UserStatistics) ProtoReflect() protoreflect.Message
- func (x *UserStatistics) Reset()
- func (x *UserStatistics) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Auth0Id string `protobuf:"bytes,3,opt,name=auth0Id,proto3" json:"auth0Id,omitempty"`
OwnedDecks []string `protobuf:"bytes,4,rep,name=ownedDecks,proto3" json:"ownedDecks,omitempty"`
OwnedCards []string `protobuf:"bytes,5,rep,name=ownedCards,proto3" json:"ownedCards,omitempty"`
OwnedSets []string `protobuf:"bytes,6,rep,name=ownedSets,proto3" json:"ownedSets,omitempty"`
Stats *UserStatistics `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"`
// contains filtered or unexported fields
}
User - Represents an MTGJSON API user. The fields: decks, cards, and sets are a list of MTGJSON V4 UUID's that represent the objects that they own
func (*User) Descriptor
deprecated
added in
v1.2.0
func (*User) GetAuth0Id ¶ added in v1.2.0
func (*User) GetOwnedCards ¶ added in v1.2.0
func (*User) GetOwnedDecks ¶ added in v1.2.0
func (*User) GetOwnedSets ¶ added in v1.2.0
func (*User) GetStats ¶ added in v1.2.0
func (x *User) GetStats() *UserStatistics
func (*User) GetUsername ¶ added in v1.2.0
func (*User) ProtoMessage ¶ added in v1.2.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v1.2.0
func (x *User) ProtoReflect() protoreflect.Message
type UserStatistics ¶ added in v1.2.0
type UserStatistics struct {
Level int64 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
Prestige int64 `protobuf:"varint,2,opt,name=prestige,proto3" json:"prestige,omitempty"`
XpLeft int64 `protobuf:"varint,3,opt,name=xpLeft,proto3" json:"xpLeft,omitempty"`
TotalGamesPlayed int64 `protobuf:"varint,4,opt,name=totalGamesPlayed,proto3" json:"totalGamesPlayed,omitempty"`
TotalGamesWon int64 `protobuf:"varint,5,opt,name=totalGamesWon,proto3" json:"totalGamesWon,omitempty"`
TotalGamesLost int64 `protobuf:"varint,6,opt,name=totalGamesLost,proto3" json:"totalGamesLost,omitempty"`
WinLossRatio float32 `protobuf:"fixed32,7,opt,name=winLossRatio,proto3" json:"winLossRatio,omitempty"`
TotalDecksOwned int64 `protobuf:"varint,8,opt,name=totalDecksOwned,proto3" json:"totalDecksOwned,omitempty"`
TotalSetsOwned int64 `protobuf:"varint,9,opt,name=totalSetsOwned,proto3" json:"totalSetsOwned,omitempty"`
TotalCardsOwned int64 `protobuf:"varint,10,opt,name=totalCardsOwned,proto3" json:"totalCardsOwned,omitempty"`
// contains filtered or unexported fields
}
UserStatistics - Represents the users MTGJSON API stats and there status for Arcane
func (*UserStatistics) Descriptor
deprecated
added in
v1.2.0
func (*UserStatistics) Descriptor() ([]byte, []int)
Deprecated: Use UserStatistics.ProtoReflect.Descriptor instead.
func (*UserStatistics) GetLevel ¶ added in v1.2.0
func (x *UserStatistics) GetLevel() int64
func (*UserStatistics) GetPrestige ¶ added in v1.2.0
func (x *UserStatistics) GetPrestige() int64
func (*UserStatistics) GetTotalCardsOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalCardsOwned() int64
func (*UserStatistics) GetTotalDecksOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalDecksOwned() int64
func (*UserStatistics) GetTotalGamesLost ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesLost() int64
func (*UserStatistics) GetTotalGamesPlayed ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesPlayed() int64
func (*UserStatistics) GetTotalGamesWon ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesWon() int64
func (*UserStatistics) GetTotalSetsOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalSetsOwned() int64
func (*UserStatistics) GetWinLossRatio ¶ added in v1.2.0
func (x *UserStatistics) GetWinLossRatio() float32
func (*UserStatistics) GetXpLeft ¶ added in v1.2.0
func (x *UserStatistics) GetXpLeft() int64
func (*UserStatistics) ProtoMessage ¶ added in v1.2.0
func (*UserStatistics) ProtoMessage()
func (*UserStatistics) ProtoReflect ¶ added in v1.2.0
func (x *UserStatistics) ProtoReflect() protoreflect.Message
func (*UserStatistics) Reset ¶ added in v1.2.0
func (x *UserStatistics) Reset()
func (*UserStatistics) String ¶ added in v1.2.0
func (x *UserStatistics) String() string
Click to show internal directories.
Click to hide internal directories.