mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-22 02:32:02 -08:00
Update users.go
Added functions for First and Last names
This commit is contained in:
parent
392ee8f57b
commit
1addf9fca7
16
vendor/github.com/matterbridge/matterclient/users.go
generated
vendored
16
vendor/github.com/matterbridge/matterclient/users.go
generated
vendored
@ -12,6 +12,22 @@ func (m *Client) GetNickName(userID string) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Client) GetFirstName(userID string) string {
|
||||||
|
if user := m.GetUser(userID); user != nil {
|
||||||
|
return user.FirstName
|
||||||
|
}
|
||||||
|
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Client) GetLastName(userID string) string {
|
||||||
|
if user := m.GetUser(userID); user != nil {
|
||||||
|
return user.LastName
|
||||||
|
}
|
||||||
|
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (m *Client) GetStatus(userID string) string {
|
func (m *Client) GetStatus(userID string) string {
|
||||||
res, _, err := m.Client.GetUserStatus(userID, "")
|
res, _, err := m.Client.GetUserStatus(userID, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user