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 ¶
- func CheckUserAccessHash(id int32, hash int64) bool
- type ProfilePhotoIds
- func (m *ProfilePhotoIds) AddPhotoId(id int64)
- func (*ProfilePhotoIds) Descriptor() ([]byte, []int)
- func (m *ProfilePhotoIds) GetDefault() int64
- func (m *ProfilePhotoIds) GetIdList() []int64
- func (*ProfilePhotoIds) ProtoMessage()
- func (m *ProfilePhotoIds) RemovePhotoId(id int64) int64
- func (m *ProfilePhotoIds) Reset()
- func (m *ProfilePhotoIds) String() string
- func (m *ProfilePhotoIds) ToJson() string
- type UserModel
- func (m *UserModel) CheckAccessHashByUserId(userId int32, accessHash int64) bool
- func (m *UserModel) CheckPhoneNumberExist(phoneNumber string) bool
- func (m *UserModel) CreateNewUser(phoneNumber, countryCode, firstName, lastName string) *mtproto.TLUser
- func (m *UserModel) CreateNewUserPassword(userId int32)
- func (m *UserModel) CreateOrUpdateByInbox(userId, peerType int32, peerId int32, topMessage int32, unreadMentions bool)
- func (m *UserModel) CreateOrUpdateByOutbox(userId, peerType int32, peerId int32, topMessage int32, ...)
- func (m *UserModel) DeleteUser(userId int32, reason string) bool
- func (m *UserModel) DeleteUserPhotoID(userId int32, photoId int64)
- func (m *UserModel) GetContactUserIDList(userId int32) []int32
- func (m *UserModel) GetCountryCodeByUser(userId int32) string
- func (m *UserModel) GetDefaultUserPhotoID(userId int32) int64
- func (m *UserModel) GetDialogsByOffsetId(userId int32, isPinned bool, offsetId int32, limit int32) (dialogs []*mtproto.Dialog)
- func (m *UserModel) GetDialogsByUserIDAndType(userId, peerType int32) (dialogs []*mtproto.Dialog)
- func (m *UserModel) GetMyUserByPhoneNumber(phoneNumber string) *userData
- func (m *UserModel) GetPeersDialogs(selfId int32, peers []*base.PeerUtil) (dialogs []*mtproto.Dialog)
- func (m *UserModel) GetPinnedDialogs(userId int32) (dialogs []*mtproto.Dialog)
- func (m *UserModel) GetStatusList(selfId int32) []*mtproto.ContactStatus
- func (m *UserModel) GetUserById(selfId int32, userId int32) *userData
- func (m *UserModel) GetUserByPhoneNumber(selfId int32, phoneNumber string) *userData
- func (m *UserModel) GetUserByUsername(selfId int32, username string) *userData
- func (m *UserModel) GetUserFull(selfUserId int32, userId int32) (userFull *mtproto.TLUserFull)
- func (m *UserModel) GetUserListByPhoneNumberList(selfId int32, phoneNumberList []string) []*userData
- func (m *UserModel) GetUserPhotoIDList(userId int32) []int64
- func (m *UserModel) GetUserStatus(userId int32) *mtproto.UserStatus
- func (m *UserModel) GetUsersBySelfAndIDList(selfUserId int32, userIdList []int32) (users []*mtproto.User)
- func (m *UserModel) InstallModel()
- func (m *UserModel) RegisterCallback(cb interface{})
- func (m *UserModel) SetUserPhotoID(userId int32, photoId int64)
- func (m *UserModel) UpdateUserStatus(userId int32, lastSeenAt int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserAccessHash ¶
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 (*UserModel) CheckPhoneNumberExist ¶
func (*UserModel) CreateNewUser ¶
func (*UserModel) CreateNewUserPassword ¶
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) DeleteUserPhotoID ¶
func (*UserModel) GetContactUserIDList ¶
func (*UserModel) GetCountryCodeByUser ¶
func (*UserModel) GetDefaultUserPhotoID ¶
func (*UserModel) GetDialogsByOffsetId ¶
func (*UserModel) GetDialogsByUserIDAndType ¶
func (*UserModel) GetMyUserByPhoneNumber ¶
func (*UserModel) GetPeersDialogs ¶
func (*UserModel) GetPinnedDialogs ¶
func (*UserModel) GetStatusList ¶
func (m *UserModel) GetStatusList(selfId int32) []*mtproto.ContactStatus
func (*UserModel) GetUserById ¶
func (*UserModel) GetUserByPhoneNumber ¶
func (*UserModel) GetUserByUsername ¶
func (*UserModel) GetUserFull ¶
func (m *UserModel) GetUserFull(selfUserId int32, userId int32) (userFull *mtproto.TLUserFull)
func (*UserModel) GetUserListByPhoneNumberList ¶
func (*UserModel) GetUserPhotoIDList ¶
func (*UserModel) GetUserStatus ¶
func (m *UserModel) GetUserStatus(userId int32) *mtproto.UserStatus
func (*UserModel) GetUsersBySelfAndIDList ¶
func (*UserModel) InstallModel ¶
func (m *UserModel) InstallModel()
func (*UserModel) RegisterCallback ¶
func (m *UserModel) RegisterCallback(cb interface{})
func (*UserModel) SetUserPhotoID ¶
func (*UserModel) UpdateUserStatus ¶
Click to show internal directories.
Click to hide internal directories.