Documentation ¶
Index ¶
- type Chat
- type ChatMember
- type ChatsList
- func (list *ChatsList) Add(chat Chat)
- func (list *ChatsList) AddChatMember(id steamid.SteamId, member ChatMember)
- func (list *ChatsList) ById(id steamid.SteamId) (Chat, error)
- func (list *ChatsList) Count() int
- func (list *ChatsList) GetCopy() map[steamid.SteamId]Chat
- func (list *ChatsList) Remove(id steamid.SteamId)
- func (list *ChatsList) RemoveChatMember(id steamid.SteamId, member steamid.SteamId)
- type Friend
- type FriendsList
- func (list *FriendsList) Add(friend Friend)
- func (list *FriendsList) ById(id steamid.SteamId) (Friend, error)
- func (list *FriendsList) Count() int
- func (list *FriendsList) GetCopy() map[steamid.SteamId]Friend
- func (list *FriendsList) Remove(id steamid.SteamId)
- func (list *FriendsList) SetAvatar(id steamid.SteamId, hash string)
- func (list *FriendsList) SetGameAppId(id steamid.SteamId, gameappid uint32)
- func (list *FriendsList) SetGameId(id steamid.SteamId, gameid uint64)
- func (list *FriendsList) SetGameName(id steamid.SteamId, name string)
- func (list *FriendsList) SetName(id steamid.SteamId, name string)
- func (list *FriendsList) SetPersonaState(id steamid.SteamId, state EPersonaState)
- func (list *FriendsList) SetPersonaStateFlags(id steamid.SteamId, flags EPersonaStateFlag)
- func (list *FriendsList) SetRelationship(id steamid.SteamId, relationship EFriendRelationship)
- type Group
- type GroupsList
- func (list *GroupsList) Add(group Group)
- func (list *GroupsList) ById(id steamid.SteamId) (Group, error)
- func (list *GroupsList) Count() int
- func (list *GroupsList) GetCopy() map[steamid.SteamId]Group
- func (list *GroupsList) Remove(id steamid.SteamId)
- func (list *GroupsList) SetAvatar(id steamid.SteamId, hash string)
- func (list *GroupsList) SetMemberChattingCount(id steamid.SteamId, count uint32)
- func (list *GroupsList) SetMemberInGameCount(id steamid.SteamId, count uint32)
- func (list *GroupsList) SetMemberOnlineCount(id steamid.SteamId, count uint32)
- func (list *GroupsList) SetMemberTotalCount(id steamid.SteamId, count uint32)
- func (list *GroupsList) SetName(id steamid.SteamId, name string)
- func (list *GroupsList) SetRelationship(id steamid.SteamId, relationship EClanRelationship)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { SteamId steamid.SteamId `json:",string"` GroupId steamid.SteamId `json:",string"` ChatMembers map[steamid.SteamId]ChatMember }
A Chat
type ChatMember ¶
type ChatMember struct { SteamId steamid.SteamId `json:",string"` ChatPermissions EChatPermission ClanPermissions EClanPermission }
A Chat Member
type ChatsList ¶
type ChatsList struct {
// contains filtered or unexported fields
}
Chats list is a thread safe map They can be iterated over like so:
for id, chat := range client.Social.Chats.GetCopy() { log.Println(id, chat.Name) }
func (*ChatsList) AddChatMember ¶
func (list *ChatsList) AddChatMember(id steamid.SteamId, member ChatMember)
Adds a chat member to a given chat
type Friend ¶
type Friend struct { SteamId steamid.SteamId `json:",string"` Name string Avatar string Relationship EFriendRelationship PersonaState EPersonaState PersonaStateFlags EPersonaStateFlag GameAppId uint32 GameId uint64 `json:",string"` GameName string }
A Friend
type FriendsList ¶
type FriendsList struct {
// contains filtered or unexported fields
}
FriendsList is a thread safe map They can be iterated over like so:
for id, friend := range client.Social.Friends.GetCopy() { log.Println(id, friend.Name) }
func (*FriendsList) Add ¶
func (list *FriendsList) Add(friend Friend)
Add adds a friend to the friend list
func (*FriendsList) ById ¶
func (list *FriendsList) ById(id steamid.SteamId) (Friend, error)
Returns a copy of the friend of a given SteamId
func (*FriendsList) GetCopy ¶
func (list *FriendsList) GetCopy() map[steamid.SteamId]Friend
Returns a copy of the friends map
func (*FriendsList) Remove ¶
func (list *FriendsList) Remove(id steamid.SteamId)
Remove removes a friend from the friend list
func (*FriendsList) SetGameAppId ¶
func (list *FriendsList) SetGameAppId(id steamid.SteamId, gameappid uint32)
func (*FriendsList) SetGameId ¶
func (list *FriendsList) SetGameId(id steamid.SteamId, gameid uint64)
func (*FriendsList) SetGameName ¶
func (list *FriendsList) SetGameName(id steamid.SteamId, name string)
func (*FriendsList) SetName ¶
func (list *FriendsList) SetName(id steamid.SteamId, name string)
Setter methods
func (*FriendsList) SetPersonaState ¶
func (list *FriendsList) SetPersonaState(id steamid.SteamId, state EPersonaState)
func (*FriendsList) SetPersonaStateFlags ¶
func (list *FriendsList) SetPersonaStateFlags(id steamid.SteamId, flags EPersonaStateFlag)
func (*FriendsList) SetRelationship ¶
func (list *FriendsList) SetRelationship(id steamid.SteamId, relationship EFriendRelationship)
type Group ¶
type Group struct { SteamId steamid.SteamId `json:",string"` Name string Avatar string Relationship EClanRelationship MemberTotalCount uint32 MemberOnlineCount uint32 MemberChattingCount uint32 MemberInGameCount uint32 }
A Group
type GroupsList ¶
type GroupsList struct {
// contains filtered or unexported fields
}
Groups list is a thread safe map They can be iterated over like so:
for id, group := range client.Social.Groups.GetCopy() { log.Println(id, group.Name) }
func (*GroupsList) ById ¶
func (list *GroupsList) ById(id steamid.SteamId) (Group, error)
Returns a copy of the group of a given SteamId
func (*GroupsList) GetCopy ¶
func (list *GroupsList) GetCopy() map[steamid.SteamId]Group
GetCopy returns a copy of the groups map
func (*GroupsList) Remove ¶
func (list *GroupsList) Remove(id steamid.SteamId)
Remove removes a group from the group list
func (*GroupsList) SetMemberChattingCount ¶
func (list *GroupsList) SetMemberChattingCount(id steamid.SteamId, count uint32)
func (*GroupsList) SetMemberInGameCount ¶
func (list *GroupsList) SetMemberInGameCount(id steamid.SteamId, count uint32)
func (*GroupsList) SetMemberOnlineCount ¶
func (list *GroupsList) SetMemberOnlineCount(id steamid.SteamId, count uint32)
func (*GroupsList) SetMemberTotalCount ¶
func (list *GroupsList) SetMemberTotalCount(id steamid.SteamId, count uint32)
func (*GroupsList) SetName ¶
func (list *GroupsList) SetName(id steamid.SteamId, name string)
Setter methods
func (*GroupsList) SetRelationship ¶
func (list *GroupsList) SetRelationship(id steamid.SteamId, relationship EClanRelationship)
Click to show internal directories.
Click to hide internal directories.