dto

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.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 Credentials

type Credentials struct {
	Login string
	Token string
}

type Event

type Event struct {
	Id                  string
	Name                string
	Description         string
	Url                 string
	TimeZone            string
	StartTime           time.Time
	EndTime             time.Time
	StartTimeHourMinute int
	EndTimeHourMinute   int
	LastModifiedTime    time.Time
}

func NewEvent

func NewEvent(
	Id string,
	Name string,
	Description string,
	Url string,
	TimeZone string,
	StartTime time.Time,
	EndTime time.Time,
	LastModifiedTime time.Time,
) *Event

func (*Event) EndAfterOrEquals

func (e *Event) EndAfterOrEquals(dt time.Time) bool

func (*Event) EndBefore

func (e *Event) EndBefore(dt time.Time) bool

func (*Event) GetDescriptionFormatted

func (e *Event) GetDescriptionFormatted() string

func (*Event) GetEndTimeFormatted

func (e *Event) GetEndTimeFormatted() string

func (*Event) GetStartTimeFormatted

func (e *Event) GetStartTimeFormatted() string

func (*Event) StartAfter

func (e *Event) StartAfter(dt time.Time) bool

func (*Event) StartBefore

func (e *Event) StartBefore(dt time.Time) bool

func (*Event) StartBeforeOrEquals

func (e *Event) StartBeforeOrEquals(dt time.Time) bool

func (*Event) StartEquals

func (e *Event) StartEquals(dt time.Time) bool

type Settings

type Settings struct {
	TenMinutesNotify   bool
	OneMinutesNotify   bool
	ChangeStatusOnMeet bool
	Calendar           string
	TimeZone           string
	DailyNotifyTime    *time.Time
}

func DefaultSettings

func DefaultSettings() *Settings

func (*Settings) GetUserLocation

func (s *Settings) GetUserLocation() *time.Location

func (*Settings) GetUserNow

func (s *Settings) GetUserNow() time.Time

type State

type State struct {
	CurrentEvent *Event
}

func DefaultState

func DefaultState() *State

Jump to

Keyboard shortcuts

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