Copyright | (C) 2016 Ismail Mustafa |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Ismail Mustafa <ismailmustafa@rocketmail.com |
Stability | provisional |
Portability | OverloadedStrings |
Safe Haskell | None |
Language | Haskell2010 |
Network.Internal.Model
Description
Model definitions for the API wrapper.
- data Credentials = Credentials {
- keyToken :: String
- secretToken :: String
- data Handwriting = Handwriting {}
- data ImageParams = ImageParams {}
- type Color = (Word8, Word8, Word8)
- data Format
- data PDFUnits
- data RandomSeed
- defaultImageParams :: ImageParams
Documentation
data Credentials Source
Credentials that take and key and secret token.
Constructors
Credentials | |
Fields
|
Instances
data Handwriting Source
Handwriting data type that contains all the information about a specific handwriting style.
Constructors
Handwriting | |
Fields
|
Instances
Show Handwriting Source | Pretty print the handwriting data type. |
Generic Handwriting Source | |
ToJSON Handwriting Source | |
FromJSON Handwriting Source | Handwriting JSON instance. |
type Rep Handwriting Source |
data ImageParams Source
Optional image parameters that dictate different properties of the rendered image.
Constructors
ImageParams | |
Instances
Format determines rendered image format in either png or pdf.
PDFUnits is used to specify measurements when rendering a PDF.
data RandomSeed Source
RandomSeed is used to specify if every rendered image called with the same parameters should render differently or the same each time.
Constructors
Randomize | |
Repeatable |
Instances
defaultImageParams :: ImageParams Source
Default image parameters provided for convenience.