package com.ssyf.task.models;

import com.ssyf.module.robot.domain.entity.RConfigRelation;
import com.ssyf.module.robot.domain.entity.RRobotAccount;

import java.time.LocalDateTime;

/**
 * 登录任务类
 */
public class LoginTask {
    RConfigRelation configRelation;
    RRobotAccount robotAccount;
    int retryCount;
    LocalDateTime lastAttemptTime;

    public LoginTask(RConfigRelation configRelation, RRobotAccount robotAccount) {
        this.configRelation = configRelation;
        this.robotAccount = robotAccount;
        this.retryCount = 0;
        this.lastAttemptTime = LocalDateTime.now();
    }
}