Example #1
0
func dsocialWorkHistoryToGooglePlus(c *WorkHistory, g *googleplus.Organization, orgHasPrimary bool) bool {
	g.Name = c.Company
	if c.IsCurrent && !orgHasPrimary {
		g.Primary = true
		orgHasPrimary = true
	} else {
		g.Primary = false
	}
	return orgHasPrimary
}
Example #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
}
Example #3
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
}