MCPcopy
hub / github.com/tinode/chat / GetUserAgent

Method GetUserAgent

server/store/types/types.go:1025–1030  ·  view source on GitHub ↗

GetUserAgent returns userAgent.

()

Source from the content-addressed store, hash-verified

1023
1024// GetUserAgent returns userAgent.
1025func (s *Subscription) GetUserAgent() string {
1026 if s.lastSeenUA != nil {
1027 return s.lastSeenUA.UserAgent
1028 }
1029 return ""
1030}
1031
1032// SetLastSeenAndUA updates lastSeen time and userAgent.
1033func (s *Subscription) SetLastSeenAndUA(when *time.Time, ua string) {

Callers 8

replyGetSubMethod · 0.95
initTopicP2PFunction · 0.45
pbServDeserializeFunction · 0.45
pbCliDeserializeFunction · 0.45
UsersForTopicMethod · 0.45
UsersForTopicMethod · 0.45
UsersForTopicMethod · 0.45
UsersForTopicMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected