mango_objects

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	EntryID           string    `json:"entry_id"`
	CallID            string    `json:"call_id"`
	Timestamp         int64     `json:"timestamp"`
	Time              time.Time `json:"-"`
	Seq               int       `json:"seq"`
	CallState         string    `json:"call_state"`
	Location          string    `json:"location"`
	From              *From     `json:"from"`
	To                *To       `json:"to"`
	DCT               *DCT      `json:"dct"`
	DisconnectReason  int       `json:"disconnect_reason"`
	CommandID         string    `json:"command_id"`
	TaskID            string    `json:"task_id"`
	CallbackInitiator string    `json:"callback_initiator"`
	CallDirection     int       `json:"call_direction"`
	LineNumber        string    `json:"line_number"`
	CreateTimeStamp   int64     `json:"create_time"`
	CreateTime        time.Time `json:"-"`
	ForwardTimeStamp  int64     `json:"forward_time"`
	ForwardTime       time.Time `json:"-"`
	TalkTimeStamp     int64     `json:"talk_time"`
	TalkTime          time.Time `json:"-"`
	EndTimeStamp      int64     `json:"end_time"`
	EndTime           time.Time `json:"-"`
	EntryResult       int       `json:"entry_result"`
	ToNumber          string    `json:"to_number"`
	SipHeaders        string    `json:"sip_headers"`
	CallPartyNumber   string    `json:"call_party_number"`
	Method            string    `json:"method"`
	Initiator         string    `json:"initiator"`
}

func (*Call) ToJSON

func (c *Call) ToJSON() string

type DCT

type DCT struct {
	Number string `json:"number"`
	Type   int    `json:"type"`
}

type DTMF

type DTMF struct {
	Seq       int       `json:"seq"`
	DTMF      string    `json:"dtmf"`
	Timestamp int64     `json:"timestamp"`
	Time      time.Time `json:"time"`
	CallID    string    `json:"call_id"`
	EntryID   string    `json:"entry_id"`
	Location  string    `json:"location"`
}

type From

type From struct {
	Extension       string `json:"extension"`
	Number          string `json:"number"`
	TakenFromCallID string `json:"taken_from_call_id"`
}

type Numbers added in v0.0.53

type Numbers struct {
	Number   string `json:"number"`
	Protocol string `json:"protocol"`
	Order    int    `json:"order"`
	WaitSec  int    `json:"wait_sec"`
	Status   string `json:"status"`
}

type Record

type Record struct {
	CallID         string    `json:"call_id"`
	ProductID      int       `json:"product_id"`
	UserID         int       `json:"user_id"`
	Timestamp      int64     `json:"timestamp"`
	Time           time.Time `json:"-"`
	RecordingID    string    `json:"recording_id"`
	RecordingState string    `json:"recording_state"`
	Seq            int       `json:"seq"`
	EntryID        string    `json:"entry_id"`
	Extension      string    `json:"extension"`
	CompletionCode int       `json:"completion_code"`
	Recipient      string    `json:"recipient"`
	CommandID      string    `json:"command_id"`
}

type Result

type Result struct {
	CommandID string `json:"command_id"`
	Result    int    `json:"result"`
	Name      string `json:"name"`
	Message   string `json:"message"`
}

type SMS

type SMS struct {
	CommandID     string    `json:"command_id"`
	Timestamp     int64     `json:"timestamp"`
	Time          time.Time `json:"-"`
	Reason        int       `json:"reason"`
	Text          string    `json:"text"`
	FromExtension string    `json:"from_extension"`
	ToNumber      string    `json:"to_number"`
	SmsSender     string    `json:"sms_sender"`
}

func (*SMS) ToJSON

func (s *SMS) ToJSON() string

type To

type To struct {
	Extension  string `json:"extension"`
	Number     string `json:"number"`
	LineNumber string `json:"line_number"`
	AcdGroup   string `json:"acd_group"`
}

type User added in v0.0.53

type User struct {
	General   *UserGeneral   `json:"general"`
	Telephony *UserTelephony `json:"telephony"`
	Extension string         `json:"extension"`
}

func (*User) ToJSON added in v0.0.53

func (u *User) ToJSON() string

type UserGeneral added in v0.0.53

type UserGeneral struct {
	Name       string `json:"name"`
	Email      string `json:"email"`
	Department string `json:"department"`
	Position   string `json:"position"`
}

type UserTelephony added in v0.0.53

type UserTelephony struct {
	Extension    string     `json:"extension"`
	OutGoingLine string     `json:"outgoingline"`
	Numbers      []*Numbers `json:"numbers"`
}

type Users added in v0.0.53

type Users struct {
	Users []*User `json:"users"`
}

Jump to

Keyboard shortcuts

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