slide

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgendaItemList

func AgendaItemList(store *projector.SlideStore)

AgendaItemList renders the agenda_item_list slide.

func Assignment

func Assignment(store *projector.SlideStore)

Assignment renders the assignment slide.

func CurrentListOfSpeakers

func CurrentListOfSpeakers(store *projector.SlideStore)

CurrentListOfSpeakers renders the current_list_of_speakers slide.

func CurrentSpeakerChyron

func CurrentSpeakerChyron(store *projector.SlideStore)

CurrentSpeakerChyron renders the current_speaker_chyron slide.

func ListOfSpeaker

func ListOfSpeaker(store *projector.SlideStore)

ListOfSpeaker renders current list of speaker slide.

func Mediafile

func Mediafile(store *projector.SlideStore)

Mediafile renders the mediafile slide.

func Motion

func Motion(store *projector.SlideStore)

Motion renders the motion slide.

func MotionBlock

func MotionBlock(store *projector.SlideStore)

MotionBlock renders the motion_block slide.

func Poll

func Poll(store *projector.SlideStore)

Poll renders the poll slide.

func ProjectorCountdown

func ProjectorCountdown(store *projector.SlideStore)

ProjectorCountdown renders the projector_countdown slide.

func ProjectorMessage

func ProjectorMessage(store *projector.SlideStore)

ProjectorMessage renders the projector_message slide.

func Slides

func Slides() *projector.SlideStore

Slides returns all OpenSlides-Slides.

func Topic

func Topic(store *projector.SlideStore)

Topic renders the topic slide.

func User

func User(store *projector.SlideStore)

User renders the user slide.

Types

type DbUser

type DbUser struct {
	Username     string `json:"username"`
	Title        string `json:"title"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	Level        string `json:"structure_level_$"`
	DefaultLevel string `json:"default_structure_level"`
}

DbUser is the class with methods to get needed User Informations

func NewUser

func NewUser(ctx context.Context, fetch *datastore.Fetcher, id, meetingID int) (*DbUser, error)

NewUser gets the user from datastore and return the user as DbUser struct together with keys and error. The meeting_id is used only to get the user-level for this meeting.

func (*DbUser) UserRepresentation

func (u *DbUser) UserRepresentation(meetingID int) string

UserRepresentation returns the meeting-dependent string for the given user.

func (*DbUser) UserShortName

func (u *DbUser) UserShortName() string

UserShortName returns the short name as "title first_name last_name". Without first_name and last_name, uses username instead.

func (*DbUser) UserStructureLevel

func (u *DbUser) UserStructureLevel(meetingID int) string

UserStructureLevel returns in first place the meeting specific level, otherwise the default level. It is assumed that the Level-field in DbUser-struct contains the meeting dependent level.

Jump to

Keyboard shortcuts

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