public MoviePage(string movieName, string originalMovieName, string relativeLink, int year, DegreeOfMatch match) { MovieName = movieName; OriginalMovieName = originalMovieName; RelativeLink = relativeLink; Year = year; Match = match; }
public static string GetWebPageHeader(DegreeOfMatch degree) { switch (degree) { case DegreeOfMatch.Exact: return "Exakte Ergebnisse"; case DegreeOfMatch.NearlyExact: return "Sehr ähnliche Ergebnisse"; case DegreeOfMatch.Possible: return "Ungefähre Ergebnisse"; default: throw new NotImplementedException (); } }
public static string GetText(DegreeOfMatch degree) { switch (degree) { case DegreeOfMatch.Exact: return "Exakt"; case DegreeOfMatch.NearlyExact: return "Sehr ähnlich"; case DegreeOfMatch.Possible: return "Ungefähr"; default: throw new NotImplementedException (); } }
public MatchDegrees(int index, DegreeOfMatch degree) { Index = index; Degree = degree; }