line

package
v0.0.0-...-44f4b58 Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Bot *linebot.Client
}

Client contains linebot client

func New

func New() *Client

New creates new linebot client.

func (*Client) GetUserInput

func (c *Client) GetUserInput(ctx *gin.Context) (ui io.UserInput)

GetUserInput returns sets of information of UserInput. It returns UserID, if it doesn't exist in the request it will return default UserID "8851". It also returns GameID, which will return default GameID "7411" if it doesn't exist. Lastly, it returns the Command code which will return 0 if whether the request not exist or in the wrong format.

Jump to

Keyboard shortcuts

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