models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallLogRecordDetailed

type CallLogRecordDetailed struct{}

type CallLogRecordSimple

type CallLogRecordSimple struct {
	URI       string        `json:"uri"`
	ID        string        `json:"id"`
	SessionID string        `json:"sessionId"`
	StartTime string        `json:"startTime"`
	Duration  int           `json:"duration"`
	Type      string        `json:"type"`
	Direction string        `json:"direction"`
	Action    string        `json:"action"`
	Result    string        `json:"result"`
	To        CallerInfo    `json:"to"`
	From      CallerInfo    `json:"from"`
	Recording RecordingInfo `json:"recording"`
}

type CallLogRecordsSimpleResponse

type CallLogRecordsSimpleResponse struct {
	URI        string                `json:"uri"`
	Records    []CallLogRecordSimple `json:"records"`
	Paging     Paging                `json:"paging"`
	Navigation Navigation            `json:"navigation"`
}

type CallerInfo

type CallerInfo struct {
	PhoneNumber     string `json:"phoneNumber,omitempty"`
	ExtensionNumber string `json:"extensionNumber,omitempty"`
	Location        string `json:"location,omitempty"`
	Name            string `json:"name,omitempty"`
}
type Navigation struct {
	FirstPage    URI `json:"firstPage,omitempty"`
	NextPage     URI `json:"nextPage,omitempty"`
	PreviousPage URI `json:"previousPage,omitempty"`
	LastPage     URI `json:"lastPage,omitempty"`
}

type Paging

type Paging struct {
	Page      int `json:"page,omitempty"`
	PerPage   int `json:"perPage,omitempty"`
	PageStart int `json:"pageStart,omitempty"`
	PageEnd   int `json:"pageEnd,omitempty"`
}

type RecordingInfo

type RecordingInfo struct {
	URI         string `json:"uri"`
	ID          int64  `json:"id"`
	ContentType string `json:"contentType"`
	Duration    int    `json:"duration"`
}

type URI added in v0.2.1

type URI struct {
	URI string `json:"uri"`
}

Jump to

Keyboard shortcuts

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