// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.maven.server;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

public class MavenServerResponse<T extends Serializable> implements Serializable {
  private final @NotNull T result;
  private final @NotNull LongRunningTaskStatus status;

  public MavenServerResponse(@NotNull T result, @NotNull LongRunningTaskStatus status) {
    this.result = result;
    this.status = status;
  }

  public @NotNull T getResult() {
    return result;
  }

  public @NotNull LongRunningTaskStatus getStatus() {
    return status;
  }

}
