Skip to content

Commit

Permalink
Merge pull request #11 from tada-team/7077-active-user-daily-stat
Browse files Browse the repository at this point in the history
added ActiveUserDailyStat
  • Loading branch information
fildenisov authored Oct 20, 2020
2 parents e32ce51 + 3d26c4f commit f5ff19f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,17 @@ package tdproto
import "time"

type SimpleDailyIntStats map[time.Time]int

type ActiveUserDailyStat struct {
Day time.Time `json:"day"`
UserId int `json:"user_id"`
FamilyName *string `json:"family_name,omitempty"`
GivenName *string `json:"given_name,omitempty"`
Patronymic *string `json:"patronymic,omitempty"`
Phone *string `json:"phone,omitempty"`
MessagesCount *int `json:"messages_count,omitempty"`
CallsCount *int `json:"calls_count,omitempty"`
CallSecondsTotal *int `json:"call_seconds_total,omitempty"`
}

type ActiveUserDailyStatList []ActiveUserDailyStat

0 comments on commit f5ff19f

Please sign in to comment.