Example #1
0
 public static bool Equals(ESigninPriority type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
 public static string GetText(ESigninPriority type)
 {
     if (type == ESigninPriority.Lower)
     {
         return("低");
     }
     if (type == ESigninPriority.Normal)
     {
         return("普通");
     }
     if (type == ESigninPriority.High)
     {
         return("高");
     }
     throw new Exception();
 }
Example #3
0
 public static string GetValue(ESigninPriority type)
 {
     if (type == ESigninPriority.Lower)
     {
         return("1");
     }
     if (type == ESigninPriority.Normal)
     {
         return("2");
     }
     if (type == ESigninPriority.High)
     {
         return("3");
     }
     throw new Exception();
 }