user

package
v0.0.0-...-e41513e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 16 Imported by: 10

Documentation

Overview

Package user is a generated protocol buffer package.

It is generated from these files:

profile_photo_ids.proto

It has these top-level messages:

ProfilePhotoIds

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserAccessHash

func CheckUserAccessHash(id int32, hash int64) bool

Types

type ProfilePhotoIds

type ProfilePhotoIds struct {
	Default int64   `protobuf:"varint,1,opt,name=default" json:"default,omitempty"`
	IdList  []int64 `protobuf:"varint,2,rep,packed,name=id_list,json=idList" json:"id_list,omitempty"`
}

func MakeProfilePhotoData

func MakeProfilePhotoData(jsonData string) *ProfilePhotoIds

func (*ProfilePhotoIds) AddPhotoId

func (m *ProfilePhotoIds) AddPhotoId(id int64)

func (*ProfilePhotoIds) Descriptor

func (*ProfilePhotoIds) Descriptor() ([]byte, []int)

func (*ProfilePhotoIds) GetDefault

func (m *ProfilePhotoIds) GetDefault() int64

func (*ProfilePhotoIds) GetIdList

func (m *ProfilePhotoIds) GetIdList() []int64

func (*ProfilePhotoIds) ProtoMessage

func (*ProfilePhotoIds) ProtoMessage()

func (*ProfilePhotoIds) RemovePhotoId

func (m *ProfilePhotoIds) RemovePhotoId(id int64) int64

func (*ProfilePhotoIds) Reset

func (m *ProfilePhotoIds) Reset()

func (*ProfilePhotoIds) String

func (m *ProfilePhotoIds) String() string

func (*ProfilePhotoIds) ToJson

func (m *ProfilePhotoIds) ToJson() string

type UserModel

type UserModel struct {
	// contains filtered or unexported fields
}

func (*UserModel) CheckAccessHashByUserId

func (m *UserModel) CheckAccessHashByUserId(userId int32, accessHash int64) bool

func (*UserModel) CheckPhoneNumberExist

func (m *UserModel) CheckPhoneNumberExist(phoneNumber string) bool

func (*UserModel) CreateNewUser

func (m *UserModel) CreateNewUser(phoneNumber, countryCode, firstName, lastName string) *mtproto.TLUser

func (*UserModel) CreateNewUserPassword

func (m *UserModel) CreateNewUserPassword(userId int32)

func (*UserModel) CreateOrUpdateByInbox

func (m *UserModel) CreateOrUpdateByInbox(userId, peerType int32, peerId int32, topMessage int32, unreadMentions bool)

收件箱

func (*UserModel) CreateOrUpdateByOutbox

func (m *UserModel) CreateOrUpdateByOutbox(userId, peerType int32, peerId int32, topMessage int32, unreadMentions, clearDraft bool)

发件箱

func (*UserModel) DeleteUser

func (m *UserModel) DeleteUser(userId int32, reason string) bool

func (*UserModel) DeleteUserPhotoID

func (m *UserModel) DeleteUserPhotoID(userId int32, photoId int64)

func (*UserModel) GetContactUserIDList

func (m *UserModel) GetContactUserIDList(userId int32) []int32

func (*UserModel) GetCountryCodeByUser

func (m *UserModel) GetCountryCodeByUser(userId int32) string

func (*UserModel) GetDefaultUserPhotoID

func (m *UserModel) GetDefaultUserPhotoID(userId int32) int64

func (*UserModel) GetDialogsByOffsetId

func (m *UserModel) GetDialogsByOffsetId(userId int32, isPinned bool, offsetId int32, limit int32) (dialogs []*mtproto.Dialog)

func (*UserModel) GetDialogsByUserIDAndType

func (m *UserModel) GetDialogsByUserIDAndType(userId, peerType int32) (dialogs []*mtproto.Dialog)

func (*UserModel) GetMyUserByPhoneNumber

func (m *UserModel) GetMyUserByPhoneNumber(phoneNumber string) *userData

func (*UserModel) GetPeersDialogs

func (m *UserModel) GetPeersDialogs(selfId int32, peers []*base.PeerUtil) (dialogs []*mtproto.Dialog)

func (*UserModel) GetPinnedDialogs

func (m *UserModel) GetPinnedDialogs(userId int32) (dialogs []*mtproto.Dialog)

func (*UserModel) GetStatusList

func (m *UserModel) GetStatusList(selfId int32) []*mtproto.ContactStatus

func (*UserModel) GetUserById

func (m *UserModel) GetUserById(selfId int32, userId int32) *userData

func (*UserModel) GetUserByPhoneNumber

func (m *UserModel) GetUserByPhoneNumber(selfId int32, phoneNumber string) *userData

func (*UserModel) GetUserByUsername

func (m *UserModel) GetUserByUsername(selfId int32, username string) *userData

func (*UserModel) GetUserFull

func (m *UserModel) GetUserFull(selfUserId int32, userId int32) (userFull *mtproto.TLUserFull)

func (*UserModel) GetUserListByPhoneNumberList

func (m *UserModel) GetUserListByPhoneNumberList(selfId int32, phoneNumberList []string) []*userData

func (*UserModel) GetUserPhotoIDList

func (m *UserModel) GetUserPhotoIDList(userId int32) []int64

func (*UserModel) GetUserStatus

func (m *UserModel) GetUserStatus(userId int32) *mtproto.UserStatus

func (*UserModel) GetUsersBySelfAndIDList

func (m *UserModel) GetUsersBySelfAndIDList(selfUserId int32, userIdList []int32) (users []*mtproto.User)

func (*UserModel) InstallModel

func (m *UserModel) InstallModel()

func (*UserModel) RegisterCallback

func (m *UserModel) RegisterCallback(cb interface{})

func (*UserModel) SetUserPhotoID

func (m *UserModel) SetUserPhotoID(userId int32, photoId int64)

func (*UserModel) UpdateUserStatus

func (m *UserModel) UpdateUserStatus(userId int32, lastSeenAt int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL