Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tada-team/tdproto
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Oct 21, 2020
2 parents 953242e + f5ff19f commit 43d60f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ type Features struct {
// Maximum length for task title
MaxTaskTitleLength int `json:"max_task_title_length"`

// Maximum length for Color Rule
// Maximum length for ColorRule description
MaxColorRuleDescriptionLength int `json:"max_color_rule_description_length"`

// Maximum length for Integration description
MaxIntegrationDescriptionLength int `json:"max_integration_description_length"`

//Maximum length for urls
MaxUrlLength int `json:"max_url_length"`

// Maximum teams for one account
MaxTeams int `json:"max_teams"`

Expand Down
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 43d60f2

Please sign in to comment.