package com.proxerme.library.connection;

import android.support.annotation.IntDef;

import com.proxerme.library.connection.ProxerConnection.MessagesRequest;
import com.proxerme.library.connection.ProxerConnection.SendMessageRequest;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.proxerme.library.connection.ProxerConnection.ConferencesRequest;
import static com.proxerme.library.connection.ProxerConnection.LoginRequest;
import static com.proxerme.library.connection.ProxerConnection.LogoutRequest;
import static com.proxerme.library.connection.ProxerConnection.NewsRequest;
import static com.proxerme.library.connection.ProxerConnection.ProxerRequest;

/**
 * Class which holds all the different tags for request.
 * @see ProxerRequest
 *
 * @author Ruben Gees
 */
public class ProxerTag {

    /**
     * Tag for the asynchronous {@link NewsRequest}.
     */
    public static final int NEWS = 0;

    /**
     * Tag for the synchronous {@link NewsRequest}.
     */
    public static final int NEWS_SYNC = 1;

    /**
     * Tag for the asynchronous {@link LoginRequest}.
     */
    public static final int LOGIN = 2;

    /**
     * Tag for the synchronous {@link LoginRequest}.
     */
    public static final int LOGIN_SYNC = 3;

    /**
     * Tag for the asynchronous {@link LogoutRequest}.
     */
    public static final int LOGOUT = 4;

    /**
     * Tag for the synchronous {@link LogoutRequest}.
     */
    public static final int LOGOUT_SYNC = 5;

    /**
     * Tag for the asynchronous {@link ConferencesRequest}.
     */
    public static final int CONFERENCES = 6;

    /**
     * Tag for the synchronous {@link ConferencesRequest}.
     */
    public static final int CONFERENCES_SYNC = 7;

    /**
     * Tag for the asynchronous {@link MessagesRequest}.
     */
    public static final int MESSAGES = 8;

    /**
     * Tag for the synchronous {@link MessagesRequest}.
     */
    public static final int MESSAGES_SYNC = 9;

    /**
     * Tag for the asynchronous {@link SendMessageRequest}.
     */
    public static final int SEND_MESSAGE = 10;

    /**
     * Tag for the synchronous {@link SendMessageRequest}.
     */
    public static final int SEND_MESSAGE_SYNC = 11;

    /**
     * An annotation, specifying the different tags of a request.
     */
    @IntDef({LOGIN, LOGIN_SYNC, NEWS, NEWS_SYNC, LOGOUT, LOGOUT_SYNC, CONFERENCES,
            CONFERENCES_SYNC, MESSAGES, MESSAGES_SYNC, SEND_MESSAGE, SEND_MESSAGE_SYNC})
    @Retention(value = RetentionPolicy.SOURCE)
    @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
    public @interface ConnectionTag {
    }
}

@@ -82,158 +82,8 @@
 f;%0A%0A
-import com.proxerme.library.connection.ProxerConnection.MessagesRequest;%0Aimport com.proxerme.library.connection.ProxerConnection.SendMessageRequest;%0A%0A
 impo
@@ -244,401 +244,8 @@
 t;%0A%0A
-import static com.proxerme.library.connection.ProxerConnection.ConferencesRequest;%0Aimport static com.proxerme.library.connection.ProxerConnection.LoginRequest;%0Aimport static com.proxerme.library.connection.ProxerConnection.LogoutRequest;%0Aimport static com.proxerme.library.connection.ProxerConnection.NewsRequest;%0Aimport static com.proxerme.library.connection.ProxerConnection.ProxerRequest;%0A%0A
 /**%0A
@@ -309,16 +309,33 @@
  * @see 
+ProxerConnection.
 ProxerRe
@@ -434,32 +434,49 @@
 chronous %7B@link 
+ProxerConnection.
 NewsRequest%7D.%0A  
@@ -566,16 +566,33 @@
  %7B@link 
+ProxerConnection.
 NewsRequ
@@ -688,32 +688,49 @@
 chronous %7B@link 
+ProxerConnection.
 LoginRequest%7D.%0A 
@@ -822,16 +822,33 @@
  %7B@link 
+ProxerConnection.
 LoginReq
@@ -946,32 +946,49 @@
 chronous %7B@link 
+ProxerConnection.
 LogoutRequest%7D.%0A
@@ -1082,16 +1082,33 @@
  %7B@link 
+ProxerConnection.
 LogoutRe
@@ -1208,32 +1208,49 @@
 chronous %7B@link 
+ProxerConnection.
 ConferencesReque
@@ -1354,16 +1354,33 @@
  %7B@link 
+ProxerConnection.
 Conferen
@@ -1490,32 +1490,49 @@
 chronous %7B@link 
+ProxerConnection.
 MessagesRequest%7D
@@ -1630,16 +1630,33 @@
  %7B@link 
+ProxerConnection.
 Messages
@@ -1760,32 +1760,49 @@
 chronous %7B@link 
+ProxerConnection.
 SendMessageReque
@@ -1908,16 +1908,33 @@
  %7B@link 
+ProxerConnection.
 SendMess
@@ -2280,16 +2280,8 @@
 ion(
-value = 
 Rete

Fix warnings