protected bool Equals(EmotionScores other) { return(Anger.Equals(other.Anger) && Contempt.Equals(other.Contempt) && Disgust.Equals(other.Disgust) && Fear.Equals(other.Fear) && Happiness.Equals(other.Happiness) && Neutral.Equals(other.Neutral) && Sadness.Equals(other.Sadness) && Surprise.Equals(other.Surprise)); }
public override int GetHashCode() { unchecked { var hashCode = Anger.GetHashCode(); hashCode = (hashCode * 397) ^ Contempt.GetHashCode(); hashCode = (hashCode * 397) ^ Disgust.GetHashCode(); hashCode = (hashCode * 397) ^ Fear.GetHashCode(); hashCode = (hashCode * 397) ^ Happiness.GetHashCode(); hashCode = (hashCode * 397) ^ Neutral.GetHashCode(); hashCode = (hashCode * 397) ^ Sadness.GetHashCode(); hashCode = (hashCode * 397) ^ Surprise.GetHashCode(); return(hashCode); } }
public Dictionary <string, string> GetPropertiesAsDictionary() { return(new Dictionary <string, string> { ["Contempt"] = Contempt.ToString(), ["Threads"] = Threads.ToString(), ["Ponder"] = Ponder.ToString(), ["MultiPV"] = MultiPV.ToString(), ["Skill Level"] = SkillLevel.ToString(), ["Move Overhead"] = MoveOverhead.ToString(), ["Slow Mover"] = SlowMover.ToString(), ["UCI_Chess960"] = UCIChess960.ToString(), }); }
public override string ToString() { string result = Timestamp.ToString(); result += ";" + Neutral.ToString(); result += ";" + Happy.ToString(); result += ";" + Sad.ToString(); result += ";" + Angry.ToString(); result += ";" + Surprised.ToString(); result += ";" + Scared.ToString(); result += ";" + Disgusted.ToString(); result += ";" + Contempt.ToString(); result += ";" + Valence.ToString(); result += ";" + Arousal.ToString(); return(result); }