/// <summary> /// Sets the seeking value based upon the provided int value. The original type of seeking was an int. I changed /// it to an enum to give it a little more clarity for me. Doing so required this additional method that I was not /// anticipating. The sign of an angle was used to determine the seeking direction. With a Java enum one could /// build all the logic into the enum. /// </summary> /// <param name="value"></param> public void SetNumericSeeking(int value) { if (value == 0) { this.seeking = SeekingType.None; } else { this.seeking = value > 0 ? SeekingType.Right : SeekingType.Left; } }
private string ConvertSeekingTypeToText(SeekingType type) { switch (type) { case SeekingType.Casual: return("Casual"); case SeekingType.Friends: return("Friends"); case SeekingType.LongTerm: return("Long-term"); case SeekingType.ShortTerm: return("Short-term"); default: return("Friends"); } }