@@ -0,0 +1,2682 @@
+/*%0A * Copyright (C) 2015 Square, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A// Kyler Conena%0A// Comp490%0A%0Apackage retrofit2;%0A%0Aimport java.io.IOException;%0Aimport okhttp3.Request;%0A%0A/**%0A * An invocation of a Retrofit method that sends a request to a webserver and returns a response.%0A * Each call yields its own HTTP request and response pair. Use %7B@link #clone%7D to make multiple%0A * calls with the same parameters to the same webserver; this may be used to implement polling or%0A * to retry a failed call.%0A *%0A * %3Cp%3ECalls may be executed synchronously with %7B@link #execute%7D, or asynchronously with %7B@link%0A * #enqueue%7D. In either case the call can be canceled at any time with %7B@link #cancel%7D. A call that%0A * is busy writing its request or reading its response may receive a %7B@link IOException%7D; this is%0A * working as designed.%0A *%0A * @param %3CT%3E Successful response body type.%0A */%0Apublic interface EventCall%3CT%3E extends Call%3CT%3E %7B%0A  /**%0A   * Synchronously send the request and return its response.%0A   *%0A   * @throws IOException if a problem occurred talking to the server.%0A   * @throws RuntimeException (and subclasses) if an unexpected error occurs creating the request%0A   * or decoding the response.%0A   */%0A  Response%3CT%3E execute() throws IOException;%0A%0A  /**%0A   * Asynchronously send the request and notify %7B@code callback%7D of its response or if an error%0A   * occurred talking to the server, creating the request, or processing the response.%0A   */%0A  void enqueue(Callback%3CT%3E callback);%0A%0A  /**%0A   * Returns true if this call has been either %7B@linkplain #execute() executed%7D or %7B@linkplain%0A   * #enqueue(Callback) enqueued%7D. It is an error to execute or enqueue a call more than once.%0A   */%0A  boolean isExecuted();%0A%0A  /**%0A   * Cancel this call. An attempt will be made to cancel in-flight calls, and if the call has not%0A   * yet been executed it never will be.%0A   */%0A  void cancel();%0A%0A  /** True if %7B@link #cancel()%7D was called. */%0A  boolean isCanceled();%0A%0A  /**%0A   * Create a new, identical call to this one which can be enqueued or executed even if this call%0A   * has already been.%0A   */%0A  Call%3CT%3E clone();%0A%0A  /** The original HTTP request. */%0A  Request request();%0A%7D%0A

Create EventCall.java