Example #1
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
}