CalDavSynchronizer.Implementation.Common.CommonEntityMapper.MapPriority2To1 C# (CSharp) Метод

MapPriority2To1() публичный статический Метод

public static MapPriority2To1 ( int value ) : OlImportance
value int
Результат OlImportance
    public static OlImportance MapPriority2To1 (int value)
    {
      switch (value)
      {
        case 6:
        case 7:
        case 8:
        case 9:
          return OlImportance.olImportanceLow;
        case 0:
        case 5:
          return OlImportance.olImportanceNormal;
        case 1:
        case 2:
        case 3:
        case 4:
          return OlImportance.olImportanceHigh;
      }

      throw new NotImplementedException (string.Format ("Mapping for value '{0}' not implemented.", value));
    }