viewmodel

package
v0.0.0-...-35ce3d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Home

type Home struct {
	CurrentUser *model.User
	Kind        string
}

func NewHome

func NewHome(currentUser *model.User) *Home

func (*Home) BuildMoviesUrl

func (c *Home) BuildMoviesUrl() string

type SearchResult

type SearchResult struct {
	CurrentUser      *model.User
	Query            string
	Kind             string
	SelectedTitle    *model.Title
	SelectedLanguage *model.Language
	Languages        []*model.Language
	Page             int
	PageSize         int
	StartPage        int
	EndPage          int
	Total            int
	TimeElapsed      float64
	Dialogs          []*model.Dialog
	Titles           [][]*model.Title
}

func NewDialogsResult

func NewDialogsResult(currentUser *model.User, query string, selectedTitle *model.Title,
	selectedLanguage *model.Language, languages []*model.Language, page, pageSize, total int, timeElapsed float64,
	dialogs []*model.Dialog) *SearchResult

func NewMoviesResult

func NewMoviesResult(currentUser *model.User, query string, selectedLanguage *model.Language,
	languages []*model.Language, page, pageSize, total int, timeElapsed float64, titles []*model.Title) *SearchResult

func (*SearchResult) BuildDialogsUrl

func (c *SearchResult) BuildDialogsUrl() string

func (*SearchResult) BuildMoviesUrl

func (c *SearchResult) BuildMoviesUrl() string

func (*SearchResult) BuildNextPageUrl

func (c *SearchResult) BuildNextPageUrl() string

func (*SearchResult) BuildPaginationUrl

func (c *SearchResult) BuildPaginationUrl(page int) string

func (*SearchResult) BuildPosterUrl

func (c *SearchResult) BuildPosterUrl(titleID string) string

func (*SearchResult) BuildPrevPageUrl

func (c *SearchResult) BuildPrevPageUrl() string

func (*SearchResult) BuildTitleUrl

func (c *SearchResult) BuildTitleUrl(titleID string, keepQuery bool) string

type Settings

type Settings struct {
	CurrentUser          *model.User
	Name                 string
	TranslationLanguage  *model.Language
	TranslationLanguages []*model.Language
}

func NewSettings

func NewSettings(currentUser *model.User, name string, translationLanguageID *string, translationLanguages []*model.Language) *Settings

func (*Settings) GetTranslationLanguageID

func (c *Settings) GetTranslationLanguageID() string

Jump to

Keyboard shortcuts

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