chat

package
v0.0.0-...-732ec5d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MessageAttachmentTypeApplicationPage = "apppage"

MessageAttachmentTypeApplicationPage is the identifier for attachments of the application page type

View Source
const ModuleName = "jungletv:chat"

ModuleName is the name by which this module can be require()d in a script

Variables

This section is empty.

Functions

func New

func New(appContext modules.ApplicationContext, chatManager *chatmanager.Manager, pagesModule pages.PagesModule, userSerializer gojautil.UserSerializer) modules.NativeModule

New returns a new chat module

Types

type MessageAttachmentApplicationPageStorage

type MessageAttachmentApplicationPageStorage struct {
	ApplicationID      string                   `json:"application_id"`
	ApplicationVersion types.ApplicationVersion `json:"application_version"`
	PageID             string                   `json:"page_id"`
	Height             int                      `json:"height"`
}

MessageAttachmentApplicationPageStorage is the storage model for an application page attachment. Implements MessageAttachmentStorage

func (MessageAttachmentApplicationPageStorage) AttachmentType

func (*MessageAttachmentApplicationPageStorage) SerializeForDatabase

type MessageAttachmentApplicationPageView

type MessageAttachmentApplicationPageView struct {
	pages.PageInfo
	ApplicationID      string
	PageID             string
	ApplicationVersion types.ApplicationVersion
	Height             int
}

MessageAttachmentApplicationPageView is the view model for an application page attachment. Implements MessageAttachmentView

func (*MessageAttachmentApplicationPageView) SerializeForAPI

func (*MessageAttachmentApplicationPageView) SerializeForJS

func (a *MessageAttachmentApplicationPageView) SerializeForJS(ctx context.Context, vm *goja.Runtime) map[string]interface{}

func (*MessageAttachmentApplicationPageView) SerializeForModLog

Jump to

Keyboard shortcuts

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