mergedusers

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiUrlToAccountIdUrl

func ApiUrlToAccountIdUrl(apiUrl string) string

func ExtensionInfosUrl

func ExtensionInfosUrl(serverUrl string, userIds []string) string

func GetCompanyMainNumber

func GetCompanyMainNumber(apiClient *rc.APIClient, accountId string) (string, error)

func GlipPersonInfosUrl

func GlipPersonInfosUrl(serverUrl string, userIds []string) string

func NewExtensionInfoFromMimePart

func NewExtensionInfoFromMimePart(part *multipart.Part) (rc.GetExtensionInfoResponse, error)

func NewGlipPersonInfoFromMimePart

func NewGlipPersonInfoFromMimePart(part *multipart.Part) (rc.GlipPersonInfo, error)

Types

type MergedUser

type MergedUser struct {
	MainNumber     string
	GlipPersonInfo rc.GlipPersonInfo
	ExtensionInfo  rc.GetExtensionInfoResponse
}

func NewMergedUserFromMimePart

func NewMergedUserFromMimePart(part *multipart.Part) (MergedUser, error)

func (*MergedUser) DisplayNumber

func (mu *MergedUser) DisplayNumber() (string, error)

func (*MergedUser) PhoneBusinessOrMainNumberExt

func (mu *MergedUser) PhoneBusinessOrMainNumberExt() string

func (*MergedUser) ToMergedUserThin

func (mu *MergedUser) ToMergedUserThin() MergedUserThin

func (*MergedUser) TrimNumbers

func (mu *MergedUser) TrimNumbers()

type MergedUserSet

type MergedUserSet struct {
	UserIdOrder   []string
	MergedUserMap map[string]MergedUser
}

func AddBatchExtensionInfosHttpResponse

func AddBatchExtensionInfosHttpResponse(mergedUserSet MergedUserSet, resp *http.Response) (MergedUserSet, error)

func AddBatchExtensionInfosMultipartReader

func AddBatchExtensionInfosMultipartReader(mergedUserSet MergedUserSet, mr *multipart.Reader) (MergedUserSet, error)

func AddBatchGlipPersonInfosBodyBoundary

func AddBatchGlipPersonInfosBodyBoundary(mergedUserSet MergedUserSet, body []byte, boundary string) (MergedUserSet, error)

func AddBatchGlipPersonInfosMultipartReader

func AddBatchGlipPersonInfosMultipartReader(mergedUserSet MergedUserSet, mr *multipart.Reader) (MergedUserSet, error)

func AddMainCompanyPhoneNumber

func AddMainCompanyPhoneNumber(client *http.Client, serverUrl string, set MergedUserSet) (MergedUserSet, error)

func NewMergedUserSet

func NewMergedUserSet() MergedUserSet

func NewMergedUsersApiIds

func NewMergedUsersApiIds(client *http.Client, serverUrl string, userIds []string) (MergedUserSet, error)

type MergedUserThin

type MergedUserThin struct {
	Id              string
	FirstName       string
	LastName        string
	Email           string
	Avatar          string
	CompanyId       string
	JobTitle        string
	MainNumber      string
	ExtensionNumber string
	BusinessPhone   string
	DisplayNumber   string
}

Jump to

Keyboard shortcuts

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