// IsSameActivity returns true when activities' relevant fields are equal
IsSameActivity returns true when activities' relevant fields are equal
// IsSameActivity returns true when activities ' relevant fields are equal
func IsSameActivity(a1, a2 *Activity) bool {
	return a1.Provider == a2.Provider &&
		a1.ProviderID == a2.ProviderID &&
		a1.Name == a2.Name &&
		a1.Type == a2.Type &&
		a1.Datetime.Unix() == a2.Datetime.Unix() &&
		a1.Distance == a2.Distance &&
		a1.MovingTime == a2.MovingTime &&
		a1.ElapsedTime == a2.ElapsedTime
}
func IsSameActivity ( a1 , a2 * Activity ) bool { return a1 . Provider == a2 . Provider && a1 . ProviderID == a2 . ProviderID && a1 . Name == a2 . Name && a1 . Type == a2 . Type && a1 . Datetime . Unix ( ) == a2 . Datetime . Unix ( ) && a1 . Distance == a2 . Distance && a1 . MovingTime == a2 . MovingTime && a1 . ElapsedTime == a2 . ElapsedTime }
IsSameActivity returns true when activities' relevant fields are equal
IsSameActivity returns true when activities ' relevant fields are equal