mirror of
https://github.com/czp3009/bilibili-api.git
synced 2024-12-21 20:30:28 +08:00
增加公用服务器错误码定义
This commit is contained in:
parent
e6037e6c02
commit
4db58a5889
@ -2,6 +2,13 @@ package com.hiczp.bilibili.api;
|
||||
|
||||
//不知道为什么错误码都要加负号
|
||||
public class ServerErrorCode {
|
||||
public static class Common {
|
||||
public static final int NO_LOGIN = -101;
|
||||
public static final int BAD_REQUEST = -400;
|
||||
public static final int NOT_FOUND = -404;
|
||||
public static final int INTERNAL_SERVER_ERROR = -500;
|
||||
}
|
||||
|
||||
public static class Passport {
|
||||
public static final int NO_LOGIN = -101;
|
||||
public static final int BAD_REQUEST = -400;
|
||||
|
@ -9,7 +9,17 @@ import com.hiczp.bilibili.api.live.socket.BulletScreenListenerAdaptor;
|
||||
import com.hiczp.bilibili.api.live.socket.LiveClient;
|
||||
import com.hiczp.bilibili.api.live.socket.PackageRepository;
|
||||
import com.hiczp.bilibili.api.live.socket.Utils;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.*;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.DanMuMSGEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.LiveEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.PreparingEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.SendGiftEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.SysGiftEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.SysMSGEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.WelcomeEntity;
|
||||
import com.hiczp.bilibili.api.live.socket.entity.WelcomeGuardEntity;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.nio.channels.SocketChannel;
|
||||
import org.junit.FixMethodOrder;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
@ -20,10 +30,6 @@ import retrofit2.Call;
|
||||
import retrofit2.Callback;
|
||||
import retrofit2.Response;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.nio.channels.SocketChannel;
|
||||
|
||||
@Ignore
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
public class LiveRoomTest {
|
||||
@ -82,6 +88,7 @@ public class LiveRoomTest {
|
||||
socketChannel.close();
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void _1liveClientTest() throws IOException {
|
||||
int roomId = CONFIG.getRoomId();
|
||||
|
Loading…
Reference in New Issue
Block a user