Exemple #1
0
        public override UDPBaseResponse <Void> Execute(AniDBUDPConnectionHandler handler)
        {
            UDPBaseResponse <string> rawResponse = handler.CallAniDBUDPDirectly(BaseCommand, false, true, true);
            var response = ParseResponse(rawResponse.Code, rawResponse.Response);

            return(response);
        }
Exemple #2
0
        public override UDPBaseResponse <ResponseLogin> Execute(AniDBUDPConnectionHandler handler)
        {
            Command = BaseCommand;
            PreExecute(handler.SessionID);
            // LOGIN commands have special needs, so we want to handle this differently
            UDPBaseResponse <string> rawResponse = handler.CallAniDBUDPDirectly(Command, false, true, false, true);
            var response = ParseResponse(rawResponse.Code, rawResponse.Response);

            PostExecute(handler.SessionID, response);
            return(response);
        }