conversation

package
v0.0.0-...-32ef62a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Type   string   `json:"type,omitempty"`
	LegId  string   `json:"leg_id,omitempty"`
	From   string   `json:"from,omitempty"`
	To     string   `json:"to,omitempty"`
	LegIds []string `json:"leg_ids,omitempty"`
}

type CreateConversationRequest

type CreateConversationRequest struct {
	Name        string   `json:"name,omitempty"`
	DisplayName string   `json:"display_name,omitempty"`
	ImageUrl    string   `json:"image_url,omitempty"`
	Properties  Property `json:"properties,omitempty"`
}

type CreateConversationResponse

type CreateConversationResponse struct {
	Id   string `json:"id,omitempty"`
	Href string `json:"href,omitempty"`
}

type CreateMemberRequest

type CreateMemberRequest struct {
	Action           string      `json:"action,omitempty"`
	UserId           string      `json:"user_id,omitempty"`
	MemberId         string      `json:"member_id,omitempty"`
	Channel          Channel     `json:"channel,omitempty"`
	Media            interface{} `json:"media,omitempty"`
	KnockingId       string      `json:"knocking_id,omitempty"`
	MemberIdInviting string      `json:"member_id_inviting,omitempty"`
}

type CreateMemberResponse

type CreateMemberResponse struct {
	Id        string `json:"id,omitempty"`
	UserId    string `json:"user_id,omitempty"`
	State     string `json:"state,omitempty"`
	Timestamp struct {
		Invited string `json:"invited,omitempty"`
		Joined  string `json:"joined,omitempty"`
		Left    string `json:"left,omitempty"`
	} `json:"timestamp,omitempty"`
	Channel   Channel `json:"channel,omitempty"`
	Href      string  `json:"href,omitempty"`
	Initiator struct {
		Joined struct {
			IsSystem bool   `json:"is_system,omitempty"`
			UserId   string `json:"user_id,omitempty"`
			MemberId string `json:"member_id,omitempty"`
		} `json:"joined,omitempty"`
	} `json:"initiator,omitempty"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Name        string `json:"name,omitempty"`
	DisplayName string `json:"display_name,omitempty"`
	ImageUrl    string `json:"image_url,omitempty"`
}

type CreateUserResponse

type CreateUserResponse struct {
	Id   string `json:"id,omitempty"`
	Href string `json:"href,omitempty"`
}

type Embedded

type Embedded struct {
}

type GetConversationResponse

type GetConversationResponse struct {
	Id             string
	Name           string
	DisplayName    *string
	ImageUrl       string
	State          string
	SequenceNumber string
	TimeStamp      Timestamp
}

type GetConversationsResponse

type GetConversationsResponse struct {
	PageSize int
	Embedded
}

type GetConversatonProperties

type GetConversatonProperties struct {
	Ttl        int
	Type       string
	CustomData interface{}
}

type Property

type Property struct {
	Ttl int `json:"ttl,omitempty"`
}

type Timestamp

type Timestamp struct {
	Created string
}

Jump to

Keyboard shortcuts

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