github.com/tada-team/tdproto@v1.51.57/tdmocks/main.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/tada-team/tdproto"
     5  )
     6  
     7  var Date = "2019-09-18T00:00:07.435409Z"
     8  
     9  var Gentime int64 = 1626960084072284400
    10  
    11  var Section = tdproto.Section{
    12  	Uid:          "00000000-0000-0000-0000-000000000001",
    13  	SortOrdering: 0,
    14  	Name:         "Managers",
    15  	Gentime:      Gentime,
    16  	Description:  "All managers",
    17  }
    18  
    19  var StubIcons = tdproto.IconData{
    20  	Letters: "AS",
    21  	Color:   "#e3665a",
    22  	Sm: tdproto.SingleIcon{
    23  		Url:    "https://web.tada.team/a/e3665a:as/256.png",
    24  		Width:  256,
    25  		Height: 256,
    26  	},
    27  	Lg: tdproto.SingleIcon{
    28  		Url:    "https://web.tada.team/a/e3665a:as/512.png",
    29  		Width:  512,
    30  		Height: 512,
    31  	},
    32  }
    33  
    34  var Alice = tdproto.Contact{
    35  	Jid:              "d-00000000-0000-0000-0000-000000000001",
    36  	DisplayName:      "Alice Smith",
    37  	ShortName:        "Alice S.",
    38  	ContactEmail:     "alice@example.com",
    39  	ContactPhone:     "+7 (555) 000-00-01",
    40  	Icons:            StubIcons,
    41  	Gentime:          Gentime,
    42  	Role:             "manager",
    43  	Mood:             "🤦",
    44  	TeamStatus:       tdproto.TeamMember,
    45  	LastActivity:     Date,
    46  	Sections:         []string{Section.Uid},
    47  	CanSendMessage:   true,
    48  	CanCall:          true,
    49  	CanCreateTask:    true,
    50  	CanImportTasks:   true,
    51  	CanAddToGroup:    true,
    52  	CanDelete:        true,
    53  	ChangeableFields: []string{"role"},
    54  	FamilyName:       "Smith",
    55  	GivenName:        "Alice",
    56  }