df
Alejandro Acuña
2024-09-16 f56295b7f2c7282783589fb4903529b09e161daa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package art.servers.bannerserver.controller;
 
import art.library.interop.InteropParameters;
import art.library.interop.InteropResponse;
import art.library.interop.serialization.SerializationException;
import art.servers.ServerException;
import art.servers.bannerserver.Shared;
 
 
 
public class ListenerImplementation extends art.servers.controller.ListenerImplementation
{
 
    // <editor-fold defaultstate="collapsed" desc="Commands">
 
 
    
    public InteropResponse sendCommands(InteropParameters parameters) throws SerializationException
    {
        String language = (String)parameters.getParameterValue("language");
        
        
        try
        {
            String identifier = (String)parameters.getParameterValue("device");
            ControllerBanner controller = (ControllerBanner)Shared.getDeviceController(identifier);
            InteropResponse response = new InteropResponse(controller.sendCommands(parameters));
            return(response);
        }
        catch (ServerException exception)
        {
            throw new SerializationException(Shared.getMessage(language, exception.getMessage()));
        }
        catch (Exception exception)
        {
            throw new SerializationException(Shared.getMessage(language, exception.getMessage()), exception);
        }
    }
 
    // </editor-fold>  
    
    
}