displays

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, oauth2 *clientcredentials.Config, overrideSvr ...string) (*clients.Client[Display], error)

Types

type Display

type Display struct {
	AllowLocationBuy *bool                `json:"allowLocationBuy,omitempty"`
	Artery           *DisplayArtery       `json:"artery,omitempty"`
	CreatedAt        *time.Time           `json:"createdAt,omitempty"`
	Description      string               `json:"description,omitempty"`
	Digital          *DisplayDigital      `json:"digital,omitempty"`
	ExternalIDs      []string             `json:"externalIDs,omitempty"`
	Facing           string               `json:"facing,omitempty"`
	FinishDate       *time.Time           `json:"finishDate,omitempty"`
	GeoLocation      *GeoLocation         `json:"geolocation,omitempty"`
	Height           *DisplayHeight       `json:"height,omitempty"`
	ID               string               `json:"displayID"`
	Illumination     *DisplayIllumination `json:"illumination,omitempty"`
	LiveDate         *time.Time           `json:"liveDate,omitempty"`
	Market           *DisplayMarket       `json:"market,omitempty"`
	MediaProducts    []MediaProduct       `json:"mediaProducts,omitempty"`
	ReadDirection    *string              `json:"readDirection,omitempty"`
	Saleable         *bool                `json:"saleable,omitempty"`
	Status           *DisplayStatus       `json:"status,omitempty"`
	StreetSide       string               `json:"streetSide,omitempty"`
	Structure        *DisplayStructure    `json:"structure,omitempty"`
	Title            string               `json:"title,omitempty"`
	UpdatedAt        *time.Time           `json:"updatedAt,omitempty"`
}

type DisplayArtery

type DisplayArtery struct {
	Primary   string `json:"primary,omitempty"`
	Secondary string `json:"secondary,omitempty"`
}

type DisplayDigital

type DisplayDigital struct {
	ExternalIDs  []string           `json:"externalIDs,omitempty"`
	Hours        []HoursOfOperation `json:"hours,omitempty"`
	Height       int                `json:"height,omitempty"`
	SlotCount    int                `json:"slotCount,omitempty"`
	SlotDuration int                `json:"slotDuration,omitempty"`
	Width        int                `json:"width,omitempty"`
}

type DisplayHeight

type DisplayHeight struct {
	FromGround    float64 `json:"fromGround,omitempty"`
	UnitOfMeasure string  `json:"unitOfMeasure,omitempty"`
}

type DisplayIllumination

type DisplayIllumination struct {
	Hours       int  `json:"hours,omitempty"`
	Illuminated bool `json:"illuminated,omitempty"`
}

type DisplayMarket

type DisplayMarket struct {
	ExternalIDs []string `json:"externalIDs,omitempty"`
	BSACode     string   `json:"cbsaCode,omitempty" bson:"cbsaCode,omitempty"`
	CBSAName    string   `json:"cbsaName,omitempty" bson:"cbsaName,omitempty"`
	DMACode     string   `json:"dmaCode,omitempty" bson:"dmaCode,omitempty"`
	DMAName     string   `json:"dmaName,omitempty" bson:"dmaName,omitempty"`
	ID          string   `json:"marketID,omitempty"`
	Name        string   `json:"name,omitempty"`
	Number      string   `json:"number,omitempty"`
}

type DisplayStatus added in v0.2.0

type DisplayStatus struct {
	Active   bool `json:"active,omitempty"`
	Saleable bool `json:"saleable,omitempty"`
}

type DisplayStructure

type DisplayStructure struct {
	ExternalIDs []string `json:"externalIDs,omitempty"`
	ID          string   `json:"structureID,omitempty"`
}

type GeoLocation

type GeoLocation struct {
	Coordinates struct {
		Latitude  float64 `json:"latitude,omitempty"`
		Longitude float64 `json:"longitude,omitempty"`
	} `json:"coordinates,omitempty"`
	Type string `json:"type,omitempty"`
}

type HoursOfOperation

type HoursOfOperation struct {
	StartOffset       int `json:"startOffset,omitempty"`
	DurationInMinutes int `json:"duration,omitempty"`
}

type MediaProduct

type MediaProduct struct {
	Detail      string   `json:"detail,omitempty"`
	ExternalIDs []string `json:"externalIDs,omitempty"`
	ID          string   `json:"productID,omitempty"`
	Size        struct {
		Height        float64 `json:"height,omitempty"`
		UnitOfMeasure string  `json:"unitOfMeasure,omitempty"`
		Width         float64 `json:"width,omitempty"`
	} `json:"size,omitempty"`
	Type            string `json:"type,omitempty"`
	VisibleCreative struct {
		Height         float64  `json:"height,omitempty"`
		SupportedMedia []string `json:"supportedMedia,omitempty"`
		UnitOfMeasure  string   `json:"unitOfMeasure,omitempty"`
		Width          float64  `json:"width,omitempty"`
	} `json:"visibleCreative,omitempty"`
}

Jump to

Keyboard shortcuts

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