Ejemplo n.º 1
0
func dsocialEducationToGooglePlus(c *Education, g *googleplus.Organization, orgHasPrimary bool) bool {
	g.Title = c.Label
	g.Name = c.Institution
	g.StartDate = dsocialDateToGoogleString(c.AttendedFrom)
	g.EndDate = dsocialDateToGoogleString(c.AttendedTill)
	if c.IsCurrent && !orgHasPrimary {
		g.Primary = true
		orgHasPrimary = true
	} else {
		g.Primary = false
	}
	return orgHasPrimary
}
Ejemplo n.º 2
0
func dsocialWorkPositionToGooglePlus(c *WorkPosition, g *googleplus.Organization, orgHasPrimary bool) bool {
	g.Title = c.Title
	g.Description = c.Description
	g.StartDate = dsocialDateToGoogleString(c.From)
	g.EndDate = dsocialDateToGoogleString(c.To)
	g.Location = c.Location
	g.Department = c.Department
	if c.IsCurrent && !orgHasPrimary {
		g.Primary = true
		orgHasPrimary = true
	} else {
		g.Primary = false
	}
	return orgHasPrimary
}