public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (GateServerIp.Length != 0)
            {
                hash ^= GateServerIp.GetHashCode();
            }
            if (GateServerPort != 0)
            {
                hash ^= GateServerPort.GetHashCode();
            }
            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (UserAccount.Length != 0)
            {
                hash ^= UserAccount.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
 public static RetornoTrataImagem EliminaArquivo(string[] lstArquivo)
 {
     try
     {
         foreach (string strArquivo in lstArquivo)
         {
             File.Delete(@strArquivo);
         }
         return(RetornoTrataImagem.Rok);
     }
     catch (Exception Err)
     {
         ManipulaErro.MostraErro("EliminaArquivo():", Err.GetHashCode(), Err.Message, false);
         ManipulaErro.GravaEventLog("EliminaArquivo" + Err.Message, Err.GetHashCode());
         return(RetornoTrataImagem.RArquivoNaoApagado);
     }
 }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (err_ != null)
            {
                hash ^= Err.GetHashCode();
            }
            hash ^= skills_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #6
0
 public static bool CriaPath(string strPath)
 {
     try
     {
         if (Directory.Exists(strPath))
         {
             return(true);
         }
         else
         {
             Directory.CreateDirectory(strPath);
             return(true);
         }
     }
     catch (Exception Err)
     {
         ManipulaErro.MostraErro("EliminaArquivo():", Err.GetHashCode(), Err.Message, false);
         ManipulaErro.GravaEventLog("EliminaArquivo" + Err.Message, Err.GetHashCode());
         return(false);
     }
 }