Пример #1
0
        private static bool OnClientRequestError__(ByteArray byteArray, IUpdaterReportServerService serverService)
        {
            int errorCode = byteArray.readDynamicsInt();

            if (ClientRequestErrorHandler__ != null)
            {
                ClientRequestErrorHandler__(errorCode);
            }
            return(true);
        }
Пример #2
0
        public static bool IntepretMessage(ByteArray byteArray, IUpdaterReportServerService serverService)
        {
            byteArray.BypassHeader();
            int  methodID = byteArray.readInt();
            bool mtdrst__ = false;

            switch (methodID)
            {
            case EnumUpdaterReportMethods.CLIENT_REQUESTERROR_HASH:
                byteArray.EncryptKey = EnumUpdaterReportMethods.CLIENT_REQUESTERROR_HASH;
                byteArray.readDynamicsInt();
                OnClientRequestError__(byteArray, serverService);
                byteArray.EncryptKey = 0;
                return(true);
            }

            // recover the header
            byteArray.Rewind();
            return(false);
        }