-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcertification.go
More file actions
27 lines (23 loc) · 865 Bytes
/
certification.go
File metadata and controls
27 lines (23 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package golinkedmin
import "github.com/tamboto2000/golinkedin"
type Certification struct {
DateRange *DateRange `json:"dateRange,omitempty"`
URL string `json:"url,omitempty"`
Authority string `json:"authority,omitempty"`
CertificateName string `json:"certificateName,omitempty"`
LicenseNumber string `json:"licenseNumber,omitempty"`
Company *Company `json:"company,omitempty"`
Source string `json:"source,omitempty"`
}
func composeCertification(c *golinkedin.Certification) *Certification {
cert := &Certification{
DateRange: composeDateRange(&c.DateRange),
URL: c.URL,
Authority: c.Authority,
CertificateName: c.Name,
LicenseNumber: c.LicenseNumber,
Company: composeCompany(&c.Company),
Source: c.DisplaySource,
}
return cert
}