types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	Action            string   `json:"action"`
	Trigger           string   `json:"trigger"`
	TriggerParameters []string `json:"trigger_parameters"`
}

type ClientConfig added in v0.2.0

type ClientConfig struct {
	EnableModules map[string]bool
	AgentString   string
	SaveSessions  bool

	IServHost string
	Username  string
	Password  string
}

func (*ClientConfig) IServUrl added in v0.2.0

func (c *ClientConfig) IServUrl() string

type EMail

type EMail struct {
	Subject    string
	From       string
	To         string
	ToDispName string
	CCs        []string
	Body       string
}

type Event

type Event struct {
	Id                     string     `json:"id"`
	Uid                    string     `json:"uid"`
	RecurrenceId           string     `json:"recurrenceId"`
	Hash                   string     `json:"hash"`
	Title                  string     `json:"title"`
	Description            string     `json:"description"`
	DescriptionHtml        string     `json:"descriptionHtml"`
	Category               string     `json:"category"`
	CategoryColor          string     `json:"category_color"`
	Start                  IServTime1 `json:"start"`
	End                    IServTime1 `json:"end"`
	Timezone               string     `json:"timezone"`
	Editable               bool       `json:"editable"`
	Deletable              bool       `json:"deletable"`
	AllDay                 bool       `json:"allDay"`
	Recurring              bool       `json:"recurring"`
	CalendarId             string     `json:"calendarId"`
	Location               string     `json:"location"`
	LocationHtml           string     `json:"locationHtml"`
	When                   string     `json:"when"`
	Organizer              string     `json:"organizer"`
	Creator                string     `json:"creator"`
	CreatedAt              IServTime2 `json:"createdAt"`
	Status                 string     `json:"status"`
	ParticipantsWithStatus string     `json:"participantsWithStatus"`
	CurrentUserPartstat    string     `json:"currentUserPartstat"`
	ShowAttendanceButtons  bool       `json:"showAttendanceButtons"`
	IsOrganizer            bool       `json:"isOrganizer"`
	Color                  string     `json:"color"`
	CalendarName           string     `json:"calendarName"`
	Alarms                 []Alarm    `json:"alarms"`
}

event

type EventsInfo

type EventsInfo struct {
	Events []Event  `json:"events"`
	Errors []string `json:"errors"`
}

type Exercise added in v0.1.0

type Exercise struct {
	Description string
	DueDate     time.Time
	Files       []string
	Id          int
	StartDate   time.Time
	Tags        []string
	Teacher     string
	Title       string
	Types       []string
}

exercise

type IServTime1

type IServTime1 time.Time

func (IServTime1) Format added in v0.2.0

func (c IServTime1) Format(f fmt.State, r rune)

func (IServTime1) MarshalJSON

func (c IServTime1) MarshalJSON() ([]byte, error)

func (*IServTime1) UnmarshalJSON

func (c *IServTime1) UnmarshalJSON(b []byte) error

type IServTime2

type IServTime2 time.Time

func (IServTime2) Format added in v0.2.0

func (c IServTime2) Format(f fmt.State, r rune)

func (IServTime2) MarshalJSON

func (c IServTime2) MarshalJSON() ([]byte, error)

func (*IServTime2) UnmarshalJSON

func (c *IServTime2) UnmarshalJSON(b []byte) error

type Notification

type Notification struct {
	Type         string     `json:"type"`
	Id           int        `json:"id"`
	GroupId      string     `json:"groupId"`
	GroupTitle   string     `json:"groupTitle"`
	AutoGrouping bool       `json:"autoGrouping"`
	Message      string     `json:"message"`
	GroupMessage string     `json:"groupMessage"`
	Title        string     `json:"title"`
	Content      string     `json:"content"`
	Trigger      string     `json:"trigger"`
	Url          string     `json:"url"`
	Icon         string     `json:"icon"`
	Date         IServTime1 `json:"date"`
}

notification

type NotificationData

type NotificationData struct {
	LastEventId   int            `json:"lastEventId"`
	LastId        int            `json:"lastId"`
	Since         int            `json:"since"`
	Count         int            `json:"count"`
	Notifications []Notification `json:"notifications"`
}

type NotificationInfo

type NotificationInfo struct {
	Status string           `json:"status"`
	Data   NotificationData `json:"data"`
}

Jump to

Keyboard shortcuts

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