package com.ecep.contract.task;

import com.ecep.contract.MessageHolder;
import com.ecep.contract.WebSocketClientTasker;
import com.ecep.contract.vo.CompanyVo;

import lombok.Setter;

public class CompanyRkUpdateTasker extends Tasker<Object> implements WebSocketClientTasker {

    @Setter
    CompanyVo company;

    @Override
    public String getTaskName() {
        return "CompanyRkUpdateTasker";
    }

    @Override
    public void updateProgress(long workDone, long max) {
        super.updateProgress(workDone, max);
    }

    @Override
    protected Object execute(MessageHolder holder) throws Exception {
        updateTitle("合并更新 " + company.getName());
        return callRemoteTask(holder, getLocale(), company.getId());
    }

}
