Exemple #1
0
        public Proxy_Task ToProxy()
        {
            Proxy_Task result_ = new Proxy_Task();

            result_.uuid               = (uuid != null) ? uuid : "";
            result_.name_label         = (name_label != null) ? name_label : "";
            result_.name_description   = (name_description != null) ? name_description : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_task_allowed_operations(current_operations);
            result_.created            = created;
            result_.finished           = finished;
            result_.status             = task_status_type_helper.ToString(status);
            result_.resident_on        = (resident_on != null) ? resident_on : "";
            result_.progress           = progress;
            result_.type               = (type != null) ? type : "";
            result_.result             = (result != null) ? result : "";
            result_.error_info         = error_info;
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            result_.subtask_of         = (subtask_of != null) ? subtask_of : "";
            result_.subtasks           = (subtasks != null) ? Helper.RefListToStringArray(subtasks) : new string[] {};
            return(result_);
        }
Exemple #2
0
        public Proxy_Task ToProxy()
        {
            Proxy_Task result_ = new Proxy_Task();

            result_.uuid               = uuid ?? "";
            result_.name_label         = name_label ?? "";
            result_.name_description   = name_description ?? "";
            result_.allowed_operations = allowed_operations == null ? new string[] {} : Helper.ObjectListToStringArray(allowed_operations);
            result_.current_operations = Maps.convert_to_proxy_string_task_allowed_operations(current_operations);
            result_.created            = created;
            result_.finished           = finished;
            result_.status             = task_status_type_helper.ToString(status);
            result_.resident_on        = resident_on ?? "";
            result_.progress           = progress;
            result_.type               = type ?? "";
            result_.result             = result ?? "";
            result_.error_info         = error_info;
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            result_.subtask_of         = subtask_of ?? "";
            result_.subtasks           = subtasks == null ? new string[] {} : Helper.RefListToStringArray(subtasks);
            result_.backtrace          = backtrace ?? "";
            return(result_);
        }