/// 重试 Domain 实体
class Retry {
  final int? id;
  final int? uid;
  final String apiType;
  final String endPoint;
  final String requestData;
  final int? synced;
  final String callbackFun;
  final int? expired;
  final int? replace;
  final int? expireTime;
  final int? createTime;
  final int? addIndex;

  const Retry({
    this.id,
    this.uid,
    this.apiType = '',
    this.endPoint = '',
    this.requestData = '',
    this.synced,
    this.callbackFun = '',
    this.expired,
    this.replace,
    this.expireTime,
    this.createTime,
    this.addIndex,
  });

  Retry copyWith({
    int? id,
    int? uid,
    String? apiType,
    String? endPoint,
    String? requestData,
    int? synced,
    String? callbackFun,
    int? expired,
    int? replace,
    int? expireTime,
    int? createTime,
    int? addIndex,
  }) {
    return Retry(
      id: id ?? this.id,
      uid: uid ?? this.uid,
      apiType: apiType ?? this.apiType,
      endPoint: endPoint ?? this.endPoint,
      requestData: requestData ?? this.requestData,
      synced: synced ?? this.synced,
      callbackFun: callbackFun ?? this.callbackFun,
      expired: expired ?? this.expired,
      replace: replace ?? this.replace,
      expireTime: expireTime ?? this.expireTime,
      createTime: createTime ?? this.createTime,
      addIndex: addIndex ?? this.addIndex,
    );
  }
}
