response

package
v0.0.0-...-d5107d6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XmlHeader string = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n"
)

Variables

This section is empty.

Functions

func NewResponseReport

func NewResponseReport(message string, start time.Time, reportID, authorID int64) (string, error)

func NewResponseReports

func NewResponseReports(success bool, start time.Time, reports []*data.Report) (string, error)

func StatusMsg

func StatusMsg(message string, start time.Time) string

Types

type Comment

type Comment struct {
	DateCreated data.CustomTime `json:"DateCreated" xml:"DateCreated"`
	Comment     string          `json:"Text" xml:"Text"`
}

type Comments

type Comments struct {
	CommentCount int       `xml:"CommentCount"`
	Comments     []Comment `json:"Comment,omitempty" xml:"Comment,omitempty"`
}

type Report

type Report struct {
	ID             int64           `json:"Id" xml:"Id"`
	DateCreated    data.CustomTime `json:"DateCreated" xml:"DateCreated"`
	DateUpdated    data.CustomTime `json:"DateUpdated" xml:"DateUpdated"`
	RequestType    string          `json:"RequestType" xml:"RequestType"`
	Description    string          `json:"Description" xml:"Description"`
	Votes          int64           `json:"Votes" xml:"Votes"`
	City           string          `json:"City" xml:"City"`
	State          string          `json:"State" xml:"State"`
	ZipCode        string          `json:"ZipCode" xml:"ZipCode"`
	Latitude       float64         `xml:"Latitude" json:"Latitude"`
	Longitude      float64         `xml:"Longitude" json:"Longitude"`
	Directionality string          `json:"Directionality" xml:"Directionality"`
	ImageUrl       string          `json:"ImageUrl" xml:"ImageUrl"`
	ImageUrlXl     string          `json:"ImageUrlXl" xml:"ImageUrlXl"`
	ImageUrlLg     string          `json:"ImageUrlLg" xml:"ImageUrlLg"`
	ImageUrlMd     string          `json:"ImageUrlMd" xml:"ImageUrlMd"`
	ImageUrlSm     string          `json:"ImageUrlSm" xml:"ImageUrlSm"`
	ImageUrlXs     string          `json:"ImageUrlXs" xml:"ImageUrlXs"`
	UrlDetail      string          `json:"UrlDetail" xml:"UrlDetail"`
	UrlShortened   string          `json:"UrlShortened" xml:"UrlShortened"`
	StatusType     string          `json:"StatusType" xml:"StatusType"`
	TicketSLA      string          `json:"TicketSla" xml:"TicketSla"`
	Comments       Comments        `json:"Comments,omitempty" xml:"Comments,omitempty"`
}

type Response

type Response struct {
	XMLName      xml.Name `xml:"CsResponse"`
	Message      string   `xml:"Message"`
	ResponseTime string   `xml:"ResponseTime"`
}

type ResponseAddress

type ResponseAddress struct {
	Response
	Address string `xml:"Address"`
}

==============================================================================================================================

Address

==============================================================================================================================

type ResponseNewReport

type ResponseNewReport struct {
	XMLName      xml.Name `xml:"CsResponse"`
	Message      string   `xml:"Message"`
	ReportID     int64    `xml:"ReportId"`
	AuthorID     int64    `xml:"AuthorId"`
	ResponseTime string   `xml:"ResponseTime"`
}

type ResponseReport

type ResponseReport struct {
	Response
	Reports ResponseReports `xml:"Reports"`
}

==============================================================================================================================

REPORTS

==============================================================================================================================

type ResponseReports

type ResponseReports struct {
	ReportCount int       `xml:"ReportCount"`
	Reports     []*Report `xml:"Report"`
}

Jump to

Keyboard shortcuts

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