public void ClacStarsFromAnalisis(eStarsParameters i_eParameter) { List <int> allParameters = new List <int>(); const bool pictureInteraction = true; if ((i_eParameter & eStarsParameters.Checkin) == eStarsParameters.Checkin) { allParameters.Add(NumberOfCheckinInteraction()); } if ((i_eParameter & eStarsParameters.Events) == eStarsParameters.Events) { allParameters.Add(NumberOfInteractionInEvents()); } if ((i_eParameter & eStarsParameters.Posts) == eStarsParameters.Posts) { allParameters.Add(NumberOfInterctionInPosts()); } if ((i_eParameter & eStarsParameters.Tagged) == eStarsParameters.Tagged) { allParameters.Add(NumberOfTagged()); } MyStars.CalulateStars(!pictureInteraction, allParameters.ToArray()); }
public void CalcStars(int i_LikeCount, int i_CommentCount) { const bool pictureInteraction = true; MyStars.CalulateStars(pictureInteraction, i_LikeCount + (i_CommentCount * k_CommentValue)); }