Beispiel #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);
        }
Beispiel #2
0
        public virtual UDPBaseResponse <T> Execute(AniDBConnectionHandler handler)
        {
            Command = BaseCommand.Trim();
            PreExecute(handler.SessionID);
            UDPBaseResponse <string> rawResponse = handler.CallAniDBUDP(Command);
            var response = ParseResponse(rawResponse.Code, rawResponse.Response);

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

            PostExecute(handler.SessionID, response);
            return(response);
        }
Beispiel #4
0
 protected virtual void PostExecute(string sessionID, UDPBaseResponse <T> response)
 {
 }