movies

package
v0.0.0-...-2e7725e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Provides a summary of a movie based on themoviedb.org

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ReplyToken string, Client *linebot.Client, lookup string, year string)

Performs a movie lookup in themoviedb.org, decoding the reponse to the Movie struct and displaying the results to the user.

func Initialize

func Initialize()

Types

type ImageData

type ImageData struct {
	Secure_Base_Url string
}

type Images

type Images struct {
	Images *ImageData
}

func NewImages

func NewImages() Images

Returns a new instance of Images.

type Movie

type Movie struct {
	Total_Results int
	Results       []*MovieData
}

Handles the JSON decoding in Execute(...).

func NewMovie

func NewMovie() Movie

Returns a new instance of Movie.

type MovieData

type MovieData struct {
	Title        string
	Release_Date string
	Overview     string
	Vote_Average float32
	Adult        bool
	Poster_Path  string
}

Jump to

Keyboard shortcuts

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