parent
e8d1c806fc
commit
5037c728bc
1 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,7 @@ type TitleInfo struct {
|
||||||
printObjectName string
|
printObjectName string
|
||||||
titleName string
|
titleName string
|
||||||
publicationDate time.Time
|
publicationDate time.Time
|
||||||
|
issueReference string
|
||||||
countryCode string
|
countryCode string
|
||||||
printObjectColor string
|
printObjectColor string
|
||||||
additionalInfo string
|
additionalInfo string
|
||||||
|
@ -97,12 +98,24 @@ func (ti *TitleInfo) Payload() string {
|
||||||
data := ti.PrintObjectName()
|
data := ti.PrintObjectName()
|
||||||
data += ti.TitleName()
|
data += ti.TitleName()
|
||||||
data += ti.PublicationDate()
|
data += ti.PublicationDate()
|
||||||
|
data += ti.IssueReference()
|
||||||
data += ti.CountryCode()
|
data += ti.CountryCode()
|
||||||
data += ti.PrintObjectColor()
|
data += ti.PrintObjectColor()
|
||||||
data += ti.AdditionalInfo()
|
data += ti.AdditionalInfo()
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ti *TitleInfo) SetIssueReference(issueReference string) {
|
||||||
|
ti.issueReference = issueReference
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ti *TitleInfo) IssueReference() string {
|
||||||
|
if ti.issueReference == "" {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return fmt.Sprintf("+99195%8s", ti.issueReference)
|
||||||
|
}
|
||||||
|
|
||||||
// PrintObjectName returns the print object name segment (+93) FERAG-formatted
|
// PrintObjectName returns the print object name segment (+93) FERAG-formatted
|
||||||
func (ti *TitleInfo) PrintObjectName() string {
|
func (ti *TitleInfo) PrintObjectName() string {
|
||||||
if ti.printObjectName == "" {
|
if ti.printObjectName == "" {
|
||||||
|
|
Loading…
Reference in a new issue