classdef SelectedRunsTranslator < fxptui.Web.TranslationService.TranslatorInterface
    % SELECTEDRUNSTRANSLATOR Handles translation for the 'selectedRuns'
    % Translation for this property simply returning the client's
    % selectedRuns value

    % Copyright 2018 The MathWorks, Inc.
    
    methods
        
        function translation = translate(~, clientMessage)
            if isempty(clientMessage.selectedRuns)
                translation = {};
            else
                translation = clientMessage.selectedRuns;
            end
        end
    end
    
end